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
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......