Professional Documents
Culture Documents
ARL-500 PLC Module Guide - en PDF
ARL-500 PLC Module Guide - en PDF
1. PLC Program:
All program lines are executed every 0.1 seconds. Execution starts at line-00 and ends
at line-20.
Every program line is a logical operation having 2 operands and the result of the
operation (either 0 or 1) is written into the “result” field.
0 : Logical 0 constant
1 : Logical 1 constant
in1..in16 : Input-1..16
me1..me8 : Memory bit-1..8
to1..to4 : Timer-1..4 output
rtc1..rtc4: Realtime-clock-1..4 output
out1..out8: Output-1..8
me1..me8 : Memory bit-1..8
ti1..ti4 : Timer-1..4 input
---- : No operation
PLC module contains 4 timers. Every timer has 1 input and 1 output.
Timers are used to On-delay and/or Off-delay signals. On-delay and Off-delay times
may be adjuested independently.
3. PLC Inputs:
PLC module can get its 16 available inputs from two sources.
1. PLC inputs may be connected internally to ARL-500 output functions by using the
“Inputs” page in the PLC Module. So that, for example, the Car Light output
function of ARL-500 may be used as an input to the PLC module.
Note: If a PLC input is set to more than one physical input, its value will be the logical
OR of all input signals.
4. Realtime Clock:
PLC module has 4 realtime clock timers which can be set to be active between chosen
times of a day and inactive at other times.
For example: If we want an output to be active between 06.30 in the morning to 22.00
in the evening. We may use a rtc with the settings 06 00 22 00.
The first entry is the time of day when the rtc output will activate.
The second entry is the time of day when the rtc output will deactivate.
5. PLC Outputs:
The 8 available PLC outputs may be sent to any physical programmable output by
using the programmable output functions of ARL-500:
Using this method, PLC outputs may be sent to any programmable outputs of devices
connected to the CANbus.
Note: A PLC output may be sent to many outputs at the same time.
Note: If PLC inputs and outputs are connected to devices other than ARL-500
mainboard, slight delays may occur due to CANbus communication.
So they should not be used in this way for safety critical purposes.
Examples:
1. Negating an input:
Block diagram:
Program:
00: ti1 <= to1 == 0
01: out1 <= to1 && in1