116
Jetter AG
6 CANopen® STX API
Result := CanOpenUploadSDO(
0
,
// CANNo
66
,
// NodeID
0x100A
,
// wIndex
0
,
// SubIndex
CANOPEN_STRING,
// DataType
sizeof
(var_Versionstring),
// DataLength
var_Versionstring,
// DataAddr
busy);
// Busy
In the following example, the manufacturer's software version is read from the
CANopen® Object Directory of the device with the addressed node ID.
Const
CANNo =
0
;
// Number of the bus line
NodeID_Node_0 =
10
;
// Device ID of node 1
NodeID_Node_0 =
66
; //
Device ID of node 2
End_Const
;
Var
busy: Int;
Versionstring: String;
Objectindex: Word;
Subindex: Byte;
Result: Int;
End_Var
;
Task
Example_UploadSDO
autorun
Var
SW_Version: String;
End_Var
;
SW_Version :=
'v4.3.0.2004'
;
// Initializing CAN 0
CanOpenInit(CANNo,
// Number of the bus line
NodeID_Node_0,
// Node ID
SW_Version);
// Manufacturer's software version
// All nodes on the CAN bus are in PREOPERATIONAL state
// Request manufacturer's software version per SDO
Objectindex :=
0x100A
;
Subindex :=
0
;
How to use this function
JetSym STX program
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......