Technical Guide for PLC Basic
Introduction
This guide will describe the terminology needed for basic operation of the SYSMAC PLC (Programmable Controller), for clients new to our PLCs.
This guide does not cover technical details regarding the setting of the FA System or PLC programming after purchase.
I/O Refresh
With the PLC (Programmable Controller), commands from user programs designed by the client are executed one by one and processed by
reading and writing information in the internal PLC memory area (At OMRON, we call this the "I/O Memory").
At the same time, packages of data from sensors/switches that are directly connected to the basic I/O unit are exchanged with data in the PLC
internal I/O Memory, at specific times. This process to totally exchange external data and internal I/O memory data is called "I/O Refresh
Operation".
It is important to know the timing by which the I/O Refresh will be executed when considering the operation of the FA System and User Programs
designed by the client. In the case of the SYSMAC PLC, this I/O Refresh operation is performed immediately following the execution of all other
commands. (See Figure below)
Common Processing
(Self-Diagnosis)
Execute Program
PLC
Processing Cycle
I/O Refresh
Peripheral Servicing
Cycle Time
In terms of the PLC processing cycle, the cycle time is the time from the execution (commencement) of the I/O Refresh operation to the execution
(processing) of the following I/O Refresh.
The cycle time includes time for overhead processing (self-diagnosis), execution of user programs, I/O Refresh processing and the processing of
peripheral services.
• When the cycle time is long, the cycle for updating data from outside of the PLC and the I/O response time are also longer, making it impossible
to implement changes that are input at a rate faster than the cycle time.
• When the cycle time is short, I/O response time is also shortened, which allows high speed processing.
• As the cycle time changes, the command execution cycle and I/O response times also change.
In the case of the SYSMAC PLC, the cycle time can be requested in the following manner:
Cycle Time = Overhead Processing Time + Total Command Execution Time + I/O Refresh Time + Peripheral Service Time
The calculation methods for each execution time for the SYSMAC PLC are included in the product manual.
Inside PLC (CPU Unit)
I/O Memory
0 0 0 0 0 0 0 0
Read/Write
0 0 0 0 0 0 0 0
1 1 0 1 1 0 0 0
0 0 1 1 1 0 1 0
1 0 1 0 1 0 0 1
Change (after all
commands executed)
Package
0 1 0 1 0 1 0 0
Exchange
0 1 1 0 1 0 1 0
1 1 0 0 1 0 1 0
1 0 1 1 1 0 1 1
1 0 0 0 1 1 0 1
Refresh with external devices
(Sensor, Switch, Actuator etc.)
CSM_PLC Basic_TG_E_1_1
PLC
Basic I/O Unit
or built-in I/O
External Data
1