Jetter AG
509
JC-120MC
Programming
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 the structure refer to document DS301
by CiA e.V., CAN ID 0x100:
CAN_TIME_PRODUCER_SEND = 1 (for sending
TIME_OF_DAY once)
Introduction
Function declaration
Function parameters
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......