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

Page 49

Advertising
background image

L-force | PLC Designer

Lenze Specific Functions

DMS 4.1 EN 03/2011 TD29

47

Outputs (VAR_OUT)

Designator / Data type

Value / Meaning

xDone / BOOL

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

xBusy / BOOL

The bit is set as long as a request (receive/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
0x0301: no addresses transferred (pbyInput_address, pbyOut-
put_address, pbyData_address)
0x0407: error during reception

wLength_of_telegram / WORD

Length of the last received telegram. The RS232 module can receive
telegrams with lengths between 1 and 1024 bytes.

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

Advertising