L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 52

Advertising
background image

L-force | PLC Designer

Lenze Specific Functions

50

DMS 4.1 EN 03/2011 TD29

Designator / Data type

Info / Setting options
The address must be transferred with the ADR operator.
Example: "… pbyData_address:=ADR(%MB0) , …"

wLength_of_telegram / WORD

Number of bytes to be transmitted starting from the start address
"pbyData_address". The valid length is between 1 and 1024 bytes.

wNumber_of_IOBytes / WORD

Number of bytes available in the process image. The valid values
depend on the bus system used and the module configuration:
CAN: 8 bytes
Profibus: 8, 16, 32, 60 bytes
EtherCat: 60 bytes


Outputs (VAR_OUT)

Designator / Data type

Value / Meaning

xDone / BOOL

The bit is set if a transmit request or a reset has been executed
correctly.

xBusy / BOOL

The bit is set as long as a request (transmit/reset) is being processed.
After the processing has been completed or if an error occurs, the bit
is reset and xDone or xError is set.

xError / BOOL

The bit is set if an error occurs. "wStatus" provides detailed
information about the error.

wStatus / WORD

No error (xError not set):
0x0000: no request being processed / request executed correctly
0x8181: transmit request being processed
Error ("xError" set):
0x0202: invalid value for wNumber_of_IOBytes
0x0517: invalid value for wLength_of_telegram
0x070A: transmission failed
0x0301: no addresses transferred (pbyInput_address, pbyOut-
put_address, pbyData_address)

Note: Pointers to wrong addresses or to data areas with insufficient length can
cause program errors or even a crash of the PLC!

Advertising