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

L-force | PLC Designer
Lenze Specific Functions
DMS 4.1 EN 03/2011 TD29
51
Example
FUNCTION_BLOCK L_IO1000_EPMS640_RS232Send
VAR_INPUT
xExecute: BOOL; (*Trigger request on positive edge / enable transmission of data
to RS232 module*)
xReset: BOOL; (*Trigger reset / reset block*)
pbyInput_address: POINTER TO BYTE; (*Start address of input area in process
image*)
pbyOutput_address: POINTER TO BYTE; (*Start address of output area in process
image*)
pbyData_address: POINTER TO BYTE; (*Start address of data area to be
transferred*)
wLength_of_telegram: WORD; (*Number of bytes to be transferred. 1 <= LEN <=
1024*)
wNumber_of_IOBytes: WORD; (*Number of bytes available in process image 8/
20/ 60*)
END_VAR
VAR_OUTPUT
xDone: BOOL; (*Request completed without errors, data sent STATUS parameter
= 00h*)
xBusy: BOOL; (*Information on processing status*)
xError: BOOL; (*Request completed with error, STATUS parameter contains error
information*)
wStatus: WORD; (*Specification of the error if ERROR = 1 /information on
processing status, request is being processed 0x8181h*)
END_VAR