Please enable JavaScript to view this site.

This function allows an object to be read from a specified axioline module.

Syntax

i32 axio_robj (stru_axio_pdi stru, destination)

stru

Structure name of type stru_axio_pdi

destination

Contains the received information. Must be an object compatible with the data being read (if reading a VISIBLE_STRING, destination will be of type string; if reading an OCTET_STRING, it will be a byte array or structure)

Result

Returns a result about the state of execution.

See pass-through and/or blocking mode

Validity

Task

Notes


hmtoggle_plus0Pass-through mode

Set stru.phase = 1 to initialize the read.

The read command is sent to the remote device and a response is expected. The variable stru.phase is changed.
The function returns 0.

Waiting for response.
The function continues to return 0.

Receives response with positive result. The read value is written to destination. RTE changes stru.phase = 11.
The function returns 1.

Receive response with negative result. RTE changes stru.phase = 0.
Function returns error code:

o-2, communication manager busy

o-5, command to a device not present or not axioline type ('rid')

o-6, no operation running. stru.phase not initialized

o-7, device information not yet available

o-8, internal error

o-10, illegal value

o-11, illegal value of slot

o-12, illegal value of objCode

o-13, illegal value of subIndex

o-14, illegal value of dataType

o-15, illegal value of dataLen

o-16, illegal value of phase(alarm 9900 arg 6)

o-17, error in read command (tunnel)

o-22, destination changed (phase management)

o2, command for which a positive response has already been received, value available in destination

o>2, SDO error code, see table below

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC