112
Jetter AG
6 CANopen® STX API
Values from 0 to 127 are permitted for the node ID parameter. 1 to 127 is the
node ID for a specific device. If the command is to be sent to all devices on
the CAN bus, use the parameter
CAN_CMD_NMT_ALLNODES(0)
.
This parameter specifies the number of the CAN interface. CANNo = 0 is
assigned to the first interface. The number of CAN interfaces depends on the
device. For information on the maximum number of CAN interfaces
(CANMAX) refer to the chapters
Technical Specifications
and
Quick
Reference
in the corresponding manual.
This function sends the following return values to the higher-level program.
Return value
0
OK
-1
Error when checking parameters
Command not known
Task: Set the own heartbeat status to
operational
.
Result := CanOpenSetCommand(
0
, CAN_CMD_HEARTBEAT,
CAN_HEARTBEAT_OPERATIONAL);
Task: Set the own heartbeat status and the status of all other devices on the
CAN bus to
operational
.
Result := CanOpenSetCommand(
0
, CAN_CMD_NMT,
CAN_CMD_NMT_Value(CAN_CMD_NMT_ALLNODES, CAN_NMT_OPERATIONAL));
Task: Set the heartbeat status of the device with the node ID 60 (0x3C) to
operational
.
Result := CanOpenSetCommand(
0
, CAN_CMD_NMT, CAN_CMD_NMT_Value(60,
CAN_NMT_OPERATIONAL));
Task: Enable time synchronization via CAN bus (CAN ID 0x100).
Result := CanOpenSetCommand(
0
, CAN_CMD_TIME_CONSUMER,
CAN_TIME_CONSUMER_ENABLE);
Task: Publish the time on the CAN bus.
Result := CanOpenSetCommand(
0
, CAN_CMD_TIME_PRODUCER,
CAN_TIME_PRODUCER_SEND);
Parameter CANNo
Return value
How to use this function
(example 1)
How to use this function
(example 2)
How to use this function
(example 3)
How to use this function
(example 4)
How to use this function
(example 5)
Содержание 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: ......