Jetter JC-120MC User Manual page 523

Table of Contents

Advertisement

JC-120MC
Return value
CANNo parameter
CANID parameter
Default CAN identifier
distribution
Jetter AG
Parameter
EventTime
Time lag between two telegrams
(> InhibitTime)
InhibitTime
Minimum time lag between two
telegrams to be sent
(< EventTime)
Paramset
Bit-coded parameter
This function sends the following return values to the higher-level program.
Return value
0
OK
-1
Error when checking parameters
-3
DataType is greater than DataLength
-4
Insufficient memory
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.
The CANID parameter is used to transfer the CAN identifier. The CAN
identifier is generated with a macro. The CAN identifier depends on the node
ID of the other communicating user and on whether it is a PDO1, PDO2,
PDO3 or PDO4 message.
Macro definitions:
CANOPEN_PDO1_RX (NodeID)
#Define
CANOPEN_PDO2_RX (NodeID)
#Define
CANOPEN_PDO3_RX (NodeID)
#Define
CANOPEN_PDO4_RX (NodeID)
#Define
CANOPEN_PDO1_TX (NodeID)
#Define
CANOPEN_PDO2_TX (NodeID)
#Define
CANOPEN_PDO3_TX (NodeID)
#Define
CANOPEN_PDO4_TX (NodeID)
#Define
Example for calling up the macro:
CANOPEN_PDO2_RX (64)
The resulting CAN identifier is: 2C0h = 40h + 280h
For CANopen® the following CAN identifier distribution is predefined. In this
case, the node number is embedded in the identifier.
Description
((NodeID) +
((NodeID) +
((NodeID) +
((NodeID) +
((NodeID) +
((NodeID) +
((NodeID) +
((NodeID) +
Programming
Value
)
0x180
)
0x280
)
0x380
)
0x480
)
0x200
)
0x300
)
0x400
)
0x500
523

Advertisement

Table of Contents
loading

Table of Contents