138
Jetter AG
6 CANopen® STX API
The declaration of the emergency message Rx consists of the following
elements:
CanOpenAddEmergencyRx(
CANNo:Int,
// Number of the bus line
NodeID:Int,
// Node ID
// Status, number of valid messages
ref stCanOpenEmergencyStat:CanOpenEmergencyStat,
// Array holding the emergency messages
ref CanOpenEmergencyMSG:CanOpenEmergencyArray,
):int
Example:
The above program lines must be included into the corresponding tasks of
your application program.The example below shows an emergency message
from a device with node ID 21.
...
// Initializing the CAN bus once.
...
// Defining global variables
Var
stCanOpenEmergencyMsg : ARRAY[5] of CanOpenEmergencyMsg;
stCanOpenEmergencyStat : CanOpenEmergencyStat;
End_Var
;
stCanOpenEmergencyStat.lBuffer :=
sizeof
(stCanOpenEmergencyMsg);
iRet:= CanOpenAddEmergencyRx(0,
// CANNo.
21,
// NodeID
stCanOpenEmergencyStat,
// Status
stCanOpenEmergencyMsg);
// Array
...
The above program lines produce the following result:
When the device with node ID 21 receives an emergency message, the value
in register 400100 switches from 0 to 1 (true).
Reset this value always to 0 (false). In doing so, you make sure that new
emergency messages are displayed.
Emergency message Rx
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......