Jetter AG
111
JVM-407B
CANopen® STX API
STX function: CanOpenSetCommand()
The function
CanOpenSetCommand()
lets you change the heartbeat status of
the device itself and of all other devices (NMT slaves) on the CAN bus.
Function CanOpenSetCommand(
CANNo:Int,
iType:Int,
Value:Int,
) :Int;
The function
CanOpenSetCommand()
has got the following parameters:
Parameter
Description
Value
CANNo
CAN bus number
0 ... CANMAX
iType
Command selection
See table below.
iType
Description: Value
CAN_CMD_HEARTBEAT Only the own heartbeat status is changed. Selecting
heartbeat states:
CAN_HEARTBEAT_STOPPED (0x04)
CAN_HEARTBEAT_OPERATIONAL (0x05)
CAN_HEARTBEAT_PREOPERATIONAL (0x7F)
CAN_CMD_NMT
The heartbeat status is changed for all other devices or
for a specific device on the CAN bus. Selecting
heartbeat states (NMT master):
CAN_NMT_OPERATIONAL (0x01) or
CAN_NMT_START (0x01)
CAN_NMT_STOP (0x02)
CAN_NMT_PREOPERATIONAL (0x80)
CAN_NMT_RESET (0x81)
CAN_NMT_RESETCOMMUNICATION (0x82)
CAN_CMD_TIME_CONS
UMER
This command lets you set the device to
ready-to-receive state to allow time synchronization via
CAN bus (CAN ID 0x100). Refer to document by CiA
e.V. DS301 V402
Selecting Synchronization
, page 59.
CAN_TIME_CONSUMER_DISABLE = 0
CAN_TIME_CONSUMER_ENABLE = 1
CAN_CMD_TIME_PROD
UCER
The time is published on the CAN bus. For more
information on structure refer to document DS301 by
CiA e.V., CAN ID 0x100:
CAN_TIME_PRODUCER_SEND = 1 (for sending
TIME_OF_DAY once)
The macro function
CAN_CMD_NMT_Value(NodeID, CAN_CMD_NMT)
is
used to select the command CAN_CMD_NMT.
Introduction
Function declaration
Function parameters
Note
Содержание 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: ......