4 assignment of the user data to variables, Assignment of the user data to variables, System bus (can) for lenze plc devices – Lenze DDS System bus CAN for PLC User Manual

Page 136: Can−aux system blocks

Advertising
background image

System bus (CAN) for Lenze PLC devices

CAN−AUX system blocks

9.2

CANaux2_IO (node number: 35)

9−3

L

PLC−Systembus EN 2.0

9.2.4

Assignment of the user data to variables

Several variables of different data types are assigned to the user data to be transmitted and received.
Thus, the data in the PLC program can be optionally interpreted as:

·

binary information (1 bit)

·

status word/quasi−analog value (16 bit)

·

angle information (32 bit)

Variables for user data to be transmitted

User data

Assigned variables

Byte

Bit

Variable (1 bit)

Variable (16 bit)

Variable (32 bit)

1

0

...

7

CANaux2_bFDO0_b

...

CANaux2_bFDO7_b

CANaux2_nOutW1_a

CANaux2_dnOutD1_p

2

0

...

7

CANaux2_bFDO8_b

...

CANaux2_bFDO15_b

3

0

...

7

CANaux2_bFDO16_b

...

CANaux2_bFDO23_b

CANaux2_nOutW2_a

4

0

...

7

CANaux2_bFDO24_b

...

CANaux2_bFDO31_b

5

0...7

CANaux2_nOutW3_a

6

0...7

7

0...7

CANaux2_nOutW4_a

8

0...7

Note!

Avoid simultaneous overwriting via different variable types to ensure data consistency.

For instance, if you want to write bytes 1 and 2, only use the variable CANaux2_dnOutD1_p,
CANaux2_nOutW1_a, or only the variables CANaux2_bFDO0_b ... CANaux2_bFDO15_b for this
purpose!

Variables for received user data

User data

Assigned variables

Byte

Bit

Variable (1 bit)

Variable (16 bit)

Variable (32 bit)

1

0

...

7

CANaux2_bInB0_b

...

CANaux2_bInB7_b

CANaux2_nInW1_a

CANaux2_dnInD1_p

2

0

...

7

CANaux2_bInB8_b

...

CANaux2_bInB15_b

3

0

...

7

CANaux2_bInB16_b

...

CANaux2_bInB23_b

CANaux2_nInW2_a

4

0

...

7

CANaux2_bInB24_b

...

CANaux2_bInB31_b

5

0...7

CANaux2_nInW3_a

6

0...7

7

0...7

CANaux2_nInW4_a

8

0...7

Advertising