Programming in TwinCAT
KL85xx und KL9309
58
Version: 2.1.0
byState:
Status byte
byAutoManual:
Data byte 1: Switch position "auto" for output 1 to 8 (the output is set via the PLC)
byOnOff:
Data byte 2: Switch position "on" for output 1 to 8 (the output is set independently of the PLC)
4.3.7
ST_KL8528OutData
Process image of the outputs for the KL8528
Linked to the terminals in the System Manager.
TYPE ST_KL8528OutData :
STRUCT
byCtrl : BYTE;
byOut : BYTE;
byData : BYTE;
byLEDOutGreen : BYTE;
byLEDOutYellow : BYTE;
END_STRUCT
END_TYPE
byCtrl:
Control byte
byOut:
Data byte 1: sets output 1 to 8 via the PLC if the respective switch is set to "auto".
byData:
Data byte 2: reserved for register communication
byLEDOutGreen:
Data byte 3: sets LED 1 to 8 to green (must be enabled via
byDisCh
)
byLEDOutYellow:
Data byte 4: sets LED 1 to 8 to yellow (must be enabled via
byDisCh
)
4.3.8
ST_KL8548InData
Process image of the inputs for the KL8548
Linked to the terminals in the System Manager.
TYPE ST_KL8548InData :
STRUCT
byState : BYTE;
byDummy : BYTE;
wDataIn : WORD;
END_STRUCT
END_TYPE
byState:
Status byte: Bit 0 is TRUE if the automatic switch is set to "man" (Status byte=1).
byDummy:
Dummy byte.
wDataIn:
Data word 1: position of the potentiometer (0x0000=0V, 5V, 10V)
4.3.9
ST_KL8548OutData
Process image of the outputs for the KL8548
Linked to the terminals in the System Manager.
TYPE ST_KL8548OutData :
STRUCT
byCtrl : BYTE;
byDummy : BYTE;
wDataOut : WORD;
END_STRUCT
END_TYPE
byCtrl:
Control byte
byDummy:
Dummy byte.
Summary of Contents for KL85 Series
Page 2: ......