System bus (CAN) with Servo PLC & Drive PLC
LenzeCanDrv.lib – Functions
8.3
Driver state (L_CanGetState)
8-5
L
PLC-Systembus EN 1.1
8.3
Driver state (L_CanGetState)
DWORD
L_CanGetState
(wDrvNr)
This function is used to ascertain the status of the CAN driver.
L_CanGetState
wDrvNr
Fig. 8-4
Driver state (L_CanGetState)
Transfer parameters
Identifier
Data type
Possible settings
Info
wDrvNr
Word
10
11
System bus
FIF CAN (in preparation)
Return value
Data type
Bit
Value Meaning
Priority
Double word
0
0
Driver is initialised.
-
1
Error
•
In this case, bits 1 ... 31 are all set to 1 and therefore invalid.
1-15
Reserved for future extensions (bits are set to 0).
16-31
CAN driver version
Format: main version/subversion (e. g. 0103hex = version 1.03)
Example
Calling the function in ST:
g_dwCanDrvState:=
L_Can_GetState
(10);
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...