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

Page 48

Advertising
background image

L-force | PLC Designer

Lenze Specific Functions

46

DMS 4.1 EN 03/2011 TD29

Function block L_IO1000_EPMS640_RS232Read
Function library: L_SM3_DriveUtil.lib
This function block coordinates the data reception of the EPM-S640 I/O compound
module via RS232.

Inputs (VAR_IN)

Designator / Data type

Info / Setting options

xExecute / BOOL

A positive edge at the input triggers a request, i.e. if the EPM-S64l I/O
compound module has received data, these are read. A reset of the
input during processing does not affect the request.
After executing the current request, the block is reset with xExecute
=FALS“ and xReset=FALS“ and prepared for a new reset / data request.

xReset / BOOL

A positive edge at the input triggers a reset of the EPM-S640 I/O
compound module which reinitialises the module. A reset of the
input during processing does not affect the reset.
After executing the current request, the block is reset with
xReset=FALSE and xExecute=FALSE and prepared for a new reset /
data request.
Notes:
Prior to the first data reception, the user has to execute a reset! This
reset is a synchronous reset, i.e. when executed on the read block, the
EPM-S640 I/O compound module will be reinitialised both for data
reception and for data transmission.
If a reset and a data request are triggered at the same time, the reset
(having the higher priority) will be executed.
A reset can also be executed during an active request. In this case, it
assumes the function of a request abort.

pbyInput_address /
POINTER_TO_BYTE

Start address of the of EPM-S640 I/O compound module's input area
in the process image.
The address must be transferred with the ADR operator.
Example :"… pbyInput_address:=ADR(%IB4800) , …"

pbyOutput_address /
POINTER_TO_BYTE

Start address of the EPM-S640 I/O compound module's output area in
the process image.
The address must be transferred with the ADR operator.
Example: "… pbyOutput_address:=ADR(%QB4800) , …"

pbyData_address /
POINTER_TO_BYTE

Start address of the data area for received data.
The address must be transferred with the ADR operator.
Example: "… pbyData_address:=ADR(%MB1024) , …"

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

Advertising