![Jetter JC-120MC Скачать руководство пользователя страница 514](http://html1.mh-extra.com/html/jetter/jc-120mc/jc-120mc_user-manual_3870525514.webp)
514
Jetter AG
10 Programming
STX function: CanOpenDownloadSDO()
The function
CanOpenDownloadSDO()
lets you access a particular object in
the Object Directory of the message recipient and specify the value of the
object. Data is exchanged in accordance with the SDO upload protocol.
Supported transfer types are
segmented
or
block
(more than 4 data bytes)
and
expedited
(up to 4 data bytes).
Function
CanOpenDownloadSDO(
CANNo:Int,
// Number of the bus line
NodeID:Int,
// Device ID
wIndex:Word,
SubIndex:Byte,
DataType:Int,
// Type of the data to be sent
// Data length of the global variable DataAddr
DataLength:Int,
// Global variable holding the value to be sent
const ref
DataAddr,
ref
Busy: Int,
// Status of the SDO transmission
) :Int;
The
CanOpenDownloadSDO()
function has got the following parameters:
Parameter
Description
Value
CANNo
CAN bus number
0 ... CANMAX
NodeID
Node ID of the message recipient
1 ... 127
wIndex
Index number of the object
0 ... 0xFFFF
SubIndex
Subindex number of the object
0 ... 255
DataType
Type of data to be sent
2 ... 27
DataLength
Data length of the global variable
DataAddr
DataAddr
Global variable into which the value to
be sent is to be entered
Busy
Status of the SDO transmission
This function sends the following return values to the higher-level program.
Return value
0
OK
-1
Error when checking parameters
-2
Device in
Stop
status (own heartbeat status)
-3
DataType is greater than DataLength
-4
Insufficient memory
Introduction
Function declaration
Function parameters
Return value
Содержание JC-120MC
Страница 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Страница 18: ......
Страница 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Страница 160: ......
Страница 186: ......
Страница 196: ......
Страница 395: ...Jetter AG 395 JC 120MC Programming Result When initializing the JX2 system bus the adjusted baud rate values were used...
Страница 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Страница 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Страница 586: ......
Страница 604: ......
Страница 633: ......