Programming in TwinCAT
KL85xx und KL9309
57
Version: 2.1.0
byLEDoutRed_1:
Data byte 3: red LED 1 to 8 (must be enabled via
wDisCh
)
byLEDoutRed_2:
Data byte 4: red LED 9 to 16 (must be enabled via
wDisCh
)
4.3.4
ST_KL8524InData
Process image of the inputs for the KL8524
Linked to the terminals in the System Manager.
TYPE ST_KL8524InData :
STRUCT
byState : BYTE;
byAutoManual : BYTE;
bySwitchMode : BYTE;
byOnOff : BYTE;
END_STRUCT
END_TYPE
byState:
Status byte
byAutoManual:
Data byte 1: Position of the auto/man switch (bit 0 = channel 1, bit 3 = channel 4)
bySwitchMode:
Data byte 2: Position of the three-step switch (bit 0 = channel 1 position 1, bit 1 = channel 1
position 2 .. , bit 6 = channel 1 position 1, bit 7 = channel 4 position 2)
byOnOff:
Data byte 3: State of the physical outputs (bit 0 = channel 1 output 1, bit 1 = channel 1
output 2, ..., bit 6 = channel 1 output 1, bit 7 = channel 4 output 2)
4.3.5
ST_KL8524OutData
Process image of the outputs for the KL8524
Linked to the terminals in the System Manager.
TYPE ST_KL8524OutData :
STRUCT
byCtrl : BYTE;
bySwitchModeOut : BYTE;
byData : BYTE;
byLEDGreen : BYTE;
byLEDYellow : BYTE;
END_STRUCT
END_TYPE
byCtrl:
Control byte
bySwitchModeOut:
Data byte 1: sets the outputs of the three-step switch via the PLC if the automatic
switch is set to "auto"
byData:
Data byte 2: reserved for register communication
byLEDGreen:
Data byte 3: sets the output LEDs to green (must be enabled via
byDisCh
)
byLEDYellow:
Data byte 4: sets the output LEDs to yellow (must be enabled via
byDisCh
)
4.3.6
ST_KL8528InData
Process image of the inputs for the KL8528
Linked to the terminals in the System Manager.
TYPE ST_KL8528InData :
STRUCT
byState : BYTE;
byAutoManual : BYTE;
byOnOff : BYTE;
END_STRUCT
END_TYPE
Содержание KL85 Series
Страница 2: ......