System bus (CAN) with Servo PLC & Drive PLC
LenzeCanDrv.lib - Function blocks
9.1
Transmit CAN object (L_CanPdoTransmit)
9-2
L
PLC-Systembus EN 1.1
Identifier
Info
Possible settings
Type of variable
Data type
nState
Integer
VAR_OUTPUT
-
Indicates the current transmission state.
•
See below table “Transmission state (nState)”
wNrOfCallsToSend
Word
VAR_OUTPUT
-
Shows how many FB calls were required to send
the object.
•
”Time measurement” starts when the
transmission request is entered in the
transmission request memory and ends when
the object is transmitted.
Note!
When selecting the CAN identifier (dwCobId), please make sure that the identifier is not yet used
by another CAN object CAN1_IO ... CAN3_IO to prevent bus errors/bus overloading!
Transmission state (nState)
Data type
Value
Meaning
Priority
Integer
-150
CAN bus is not in operating state
operational
.
1 (high)
g
-121
Wrong driver number (
wDrvNr
)
2
-120
Driver has not been initialised
3
-119
The transmission request memory is full. The transmission request could not be entered.
Remedy:
•
Reduce the number of transmission objects.
•
Increase the cycle time of the transmission objects.
•
Increase the baud rate.
Basically, an object is transmitted every 250
µ
s.
4
-118
There is no free CAN channel available.
Remedy:
•
Do not use one of the CAN objects CAN1_IN ... CAN3_IN or CAN1_OUT ... CAN3_OUT.
•
Set C2118 to “1” (parameters write over SDO2).
IMPORTANT: If C2118 = “1”, the SDO2 channel is no longer available!
•
Deactivate the Sync object generation (C0369 = “0”).
5
-12
The set message identifier (COB-ID) is beyond the permissible area (0 ... 2047).
6
-11
pIOAdress
pointer is not positioned over PLC RAM.
7 (low)
* If errors are due to more than one error cause, the error cause with the highest priority sends back
the appropriate return value.
0
The transmission request has been executed and data has been transmitted.
1
The transmission request has not yet been completed and is still in the transmission request memory.
10
The value of the telegram length
byLen
is higher than 8. The telegram length was limited to 8 bytes.
Show/Hide Bookmarks
Содержание 9300 Servo PLC
Страница 1: ...L Global Drive System bus CAN with 9300 Servo PLC Drive PLC Manual Show Hide Bookmarks...
Страница 38: ...System bus CAN with Servo PLC Drive PLC Configuration 3 12 l PLC Systembus EN 1 1 Show Hide Bookmarks...
Страница 112: ...System bus CAN with Servo PLC Drive PLC Index 10 4 l PLC Systembus EN 1 1 Show Hide Bookmarks...