CAN TASTATURMODUL
CPM 100
S
EITE
22
■
Datenstruktur:
CR1500 InOutStruct
■
Zweck:
Aktuelle E/A-Daten werden
gelesen bzw. geschrieben.
Die Datenstruktur wird dem
Funktionseingang „IO_DATA“
über den ADR-Operator
zugewiesen.
■
Strukturkomponenten (Funktionstasten)
Name
Datentyp
Taste
Bit-Status im ...
Taster-Betrieb
Toggle-Betrieb
Byte Bit
Key1_Direct
BOOL
1
TRUE, wenn gedrückt
TRUE, wenn geschaltet
0
0
Key1_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
1
Key2_Direct
BOOL
2
TRUE, wenn gedrückt
TRUE, wenn geschaltet
2
Key2_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
3
Key3_Direct
BOOL
3
TRUE, wenn gedrückt
TRUE, wenn geschaltet
4
Key3_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
5
Key4_Direct
BOOL
4
TRUE, wenn gedrückt
TRUE, wenn geschaltet
6
Key4_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
7
Key5_Direct
BOOL
5
TRUE, wenn gedrückt
TRUE, wenn geschaltet
1
0
Key5_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
1
Key6_Direct
BOOL
6
TRUE, wenn gedrückt
TRUE, wenn geschaltet
2
Key6_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
3
Key7_Direct
BOOL
7
TRUE, wenn gedrückt
TRUE, wenn geschaltet
4
Key7_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
5
Key8_Direct
BOOL
8
TRUE, wenn gedrückt
TRUE, wenn geschaltet
6
Key8_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
7
Key9_Direct
BOOL
9
TRUE, wenn gedrückt
TRUE, wenn geschaltet
2
0
Key9_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
1
Key10_Direct
BOOL
10
TRUE, wenn gedrückt
TRUE, wenn geschaltet
2
Key10_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
3
Key11_Direct
BOOL
11
TRUE, wenn gedrückt
TRUE, wenn geschaltet
4
Key11_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
5
Key12_Direct
BOOL
12
TRUE, wenn gedrückt
TRUE, wenn geschaltet
6
Key12_Delay
BOOL
TRUE, nach Ablauf d. Zeit
TRUE, wenn geschaltet
7
TYPE CR1500 InOutStruct
STRUCT
Key1_Direct: BOOL;
(BinIn)
Key1_Delay: BOOL;
(BinIn)
Key12_Delay: BOOL;
(BinIn)
KeyLeft1_Direct: BOOL;
(BinIn)
KeyLeft1_Delay: BOOL;
(BinIn)
KeyRight1_Direct: BOOL; (BinIn)
KeyRight1_Delay: BOOL; (BinIn)
KeyRight2_Delay: BOOL; (BinIn)
Led1_1: BOOL;
(BinOut, LowBit)
Led1_2: BOOL;
(BinOut, HighBit)
Led12_2: BOOL;
(BinOut, HighBit)
LedBar1_Value: BYTE;
(AnalogOut)
LedBar2_Value: BYTE;
(AnalogOut)
END_STRUCT
END_TYPE