Quick Introduction
Operating Manual XCx 300 / 500 / 540 Version 09/08
49
5.5.4
The first I/O access by the PLC program
For the demonstration of I/O access, the first 8 inputs (non-
debounced) on the RIO 16 I should be assigned to the first 8 outputs
on the RIO 16 O.
A POU named
XRIODemo
already exists, and an instance of the POU
is inserted in the
XRIOTsk
task.
The worksheets of the POU are empty. They will accept the local I/O
variable declaration and the PLC program.
First the I/O variables have to be declared. Click on
XRIODemoV
and make the following entries.
It is important to describe usage with VAR_EXTERNAL, because
the I/O variables are predefined as global variables. You can also
easily copy and paste (<Ctrl+C>,<Ctrl+V>) the entries from the
Global_Variables
worksheet to this worksheet.
In the next step you can create the PLC program on the
XRIODemo worksheet.
After the project has been compiled and downloaded you can start the
XCx.
After startup the green RUN and ACCESS LEDs on the XRIO coupler
light up. Inputs 0 to 7 on the RIO 16 I can be controlled with DC 24 V.
The corresponding output on the RIO 16 O is then set.