BabyLover

MrPLC Member
  • Content count

    5
  • Joined

  • Last visited

Posts posted by BabyLover


  1. Hello Mr Walsh,

    I played a little bit with data types. I created data type that consists array of boolean[64]. Then I created arrays of the data type[60] that I use in my FB. In the FB the data types are defined as IN OUT variables. I'm getting error about indexing of the arrays. Here are some pictures:

    5f07345426af7_datatype.PNG.e91ad655833d3

    5f0734635f379_Errorcode.PNG.51d42fd039e6

    errors.PNG.61f5148b6fe1258b8e03a4a155d7f

    Can you see what am I doing wrong here?


  2. Hello,

    I'm new to CX-Programming and I could really use your help.

    I want to make function block that will check the bit status from a word input variable. I made input variable and internal variable array of bool(32) and I thought I can just use the code example:

    array[1]:=word.1 etc... but it is not allowed in CX-programmer.

    My goal is rearranging  the bits status from the input word to the output word. I don't need just making the 0 to 1 or otherwise...

    Thank you in advance.