59
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
© Systeme Lauer GmbH
AEG250PX-Expander driver
○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
○
○
○ ○ ○ ○ ○
○○
D
The used AEG250PX driver is an expander driver, i.e. it replaces the data area
between programmable controller and PCS via job packages. A programmable
controller program is required for this. Programmable controller and PCS
communicate with each other using the BKOS protocol via RS-232C with 9600 or
19200 bauds, 8 bit, ODD parity and 1 stop bit.
D2.1
AEG250PX Expander block
D2.1.1 Expander block parameters
Determing the data area
A common data area must be defined for accessing the programmable controller
and the PCS. This area must be physically available and defined in the
programmable controller.
In the PCS, the send and receive area is defined via the AG driver variable. This
send and receive buffer requires 100 reserved flag words that are located after the
selected start address in the PCS. Furthermore, a data field with a size of 256 flag
words is required in which the PCS data words are stored. In the programmable
controller, the start addresses of the 2 data fields are defined in FB 201. A time-out
can appear during the operation if the specifications of these areas are too small
in the programmable controller!
Inputs:
RESET (E2.1):
Input that admits a restart after loss communication.
Outputs:
COM_ERR (A2.1):
Output that is active at communication loss.
Flag bits:
TIM_RES (M1.1):
Flag to start the time-out timer. It is cyclically set and reset
during active communication.
COM_OK (M1.2):
Flag for communication was started (only for a programmable
controller restart).
RESET_M (M1.3):
Flag for time-out reset. Flag is set after set restart input and
successful communication start.
Flag words:
P_DAT_OFF (MW1): This flag word points to the PCS data area starting
address.
P_REC_OFF (MW2): This flag word points to the start address of the send and
receive buffer.
PJOB_W (MW3):
Pointer to the current orders or data in the receive buffer.
COUNT_W (MW4): Counter of all received data.
ADR_W (MW5):
Flag word contains the current PCS data word number.
JOB_W (MW6):
Flag word contains the current order instruction.
DW_COUNT_W:
Flag word contains the number of data to be processed on
the current order (MW7).
SYNC_W (MW8):
This flag word contains a sent order number. The order
number is used for the synchronization of the communication.
PSEND (MW 9):
Pointer to the send buffer in which the data to be read are
written.
TEMP1_W - TEMP4_W (MW10 - MW 13):
These flags are used as buffers.
PLC handling software
D2.PLC handling software
Содержание PCS 091
Страница 31: ...31 Systeme Lauer GmbH AEG120DR driver B B3 2Programming cable PCS 733 PC PCS connection Communication...
Страница 34: ...34 Systeme Lauer GmbH AEG120DR driver B...
Страница 45: ...45 Systeme Lauer GmbH MODBUS 1 direct driver C C3 2Programming cable PCS 733 PC PCS Connection Communication...
Страница 52: ...52 Systeme Lauer GmbH MODBUS 1 direct driver C...