Stx Function: Canopenaddpdorx() - Jetter JC-120MC User Manual

Table of Contents

Advertisement

JC-120MC

STX function: CanOpenAddPDORx()

Introduction
Notes
Function declaration
Function parameters
Jetter AG
The function CanOpenAddPDORx() lets you specify which process data, sent
by other CANopen® devices, must be received.
Process data can be received only when a CANopen® device is sending
them.
Only if the CANopen® devices on the bus are in state operational, the
PDO telegram is transmitted.
The smallest time unit for the event time is 1 ms.
The smallest time unit for the inhibit time is 1 ms.
Function
CanOpenAddPDORx(
CANNo:Int,
CANID:Int,
// Starting position of data to be received
BytePos:Int,
DataType:Int,
// Data length of the global variable VarAddr
DataLength:Int,
// Global variable into which the received value is entered
const ref
VarAddr,
// Cycle time for receiving a telegram
// Event time
EventTime: Int,
// Minimum interval between two received messages
// Inhibit time
InhibitTime: Int,
Paramset: Int,
) :Int;
The CanOpenAddPDORx() function has got the following parameters:
Parameter
CANNo
CAN bus number
CANID
CAN identifier 11-bit
CAN identifier 29-bit
BytePos
Starting position of data to be
received
DataType
Data type of data to be received
DataLength
Data length of the global variable
VarAddr
VarAddr
Global variable into which the
received value is entered
EventTime
Time lag between two telegrams
(> InhibitTime)
// Number of the bus line
// CAN identifier
// Data type of the data to be received
// Bit-coded parameter
Description
Programming
Value
0 ... CANMAX
0 ... 0x7FF
0 ... 0x1FFFFFFF
0 ... 7
2 ... 13, 15 ... 27
517

Advertisement

Table of Contents
loading

Table of Contents