Programmable Controllers

This guide will describe the terminology needed for basic operation of the SYSMAC PLC (Programmable Controller), for clients new to our PLCs.

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)


Level_Controller

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.


    Normally, user programs are executed in order along with the processing of the I/O Refresh etc., within the PLC processing cycle (See "I/O Refresh").


    Interrupt Tasks however are executed in precedence to this processing cycle. In the event that certain interrupt conditions are met, the processing cycle will be suspended and the interrupt tasks will be executed first.


    (The SYSMAC PLC sometimes refers to the "Interrupt Tasks" as "Interrupt Programs", but here we shall use "Interrupt Tasks", the terminology used in the CS/CJ Series manuals)


    For example, in the case of the CS/CJ Series, Interrupt Tasks can include power Off interrupt, Scheduled Interrupts, I/O Interrupts, Periodic Interrupts based on the internal timer, and External Interrupts.


    Level_Controller

    I/O Allocation


    In order for user programs to utilize I/O signals from the I/O Units mounted to the PLC, it is necessary to first assign an address within the PLC I/O Memory.


    The assignment of I/O Memory to the input or output from these units within the PLC is known as I/O Allocation. The CPU Unit uses this I/O Allocation information in the operation of I/O Refresh with connected units.


    In the case of SYSMAC PLC, this I/O Allocation information is recorded in the PLC in the "Registered I/O Table". This "Registered I/O Table" can be created by either automatically registering online with programming tools utilizing information from the unit built-in to the PLC, or by using programming tools to design offline and then automatically registering by transmitting the I/O Table to the PLC. (Some devices may not require the creation of a Registered I/O Table, and others may not support the offline design of I/O Tables.)


    Online Automatic Registration
    Level_Controller
    Offline Automatic Registration
    Level_Controller

    CPU Unit Memory Area


    The PLC Unit utilizes a variety of different data including user programs, I/O Memory data and comments, CPU Unit and Special I/O units Parameters, and Registered I/O Table information etc.


    All of this data that is used by the PLC is stored in the memory area within the CPU Unit.


    The SYSMAC PLC has the following types of Memory Areas, which is backed up by a battery.


    In the case of the SYSMAC CS/CJ Series, the content of the Memory Area is backed up using flash memory, which means that even if battery power fails, any user programs and parameter area data will not be lost.


  • User Program Area
    This records user programs designed by the client.
  • I/O Memory Area
    This Area is accessed by command operands. It records information such as the CIO, Internal I/O Area, holding area, auxiliary area, DM Area, EM Area, Timer Completion Flags/Present Value, Completion Flag/Present Value, Task Flags, Index Register, Data Register, Condition Flags, Clock Pulse, etc. The data in the I/O Memory Area locates in or is in areas in which the contents are cleared every time the power is turned back on, and areas in which prior information is retained. (In some areas you can select whether to clear or retain.)
  • Parameter Area
    This contains all of the information regarding initial parameters used by the PLC. It records information such as the PLC System Parameters, Registered I/O Table, Routing Table, and PLC Setup for CPU Bus unit.

  • What is the OMRON PLC-based Process Control?


    OMRON PLC-based Process Control system is based on the SYSMAC CS/CJ PLC Series. By adding PLC-based Process Control units to the basic system configuration, PLC process control functions can be simply added on to the basic functions already installed in the PLC.


    Thus, it can be used for devices that it is compatible with such process control system in which DCS was used before or devices in which several controllers were used combined.


    With the PLC Installation System, analog processing is carried out by the loop control section or the loop control unit/board (hereafter "loop controller"), and ladder processing is handled by the CPU. Communication between the two sections is made using bits of memory. Since the analog processing and ladder processing can be completely separated and the program is more simple than a ladder only program, the engineering process to construct the system is facilitated.


    System Configuration of PLC-based Process Control


    The loop controller does not have an external analog I/O or an external contact I/O function.


    It is used together with such a unit that has the interface function including an analogue I/O unit, as shown in the diagram below.


    automation_system

    Also, when programming, in addition to the programming software for the CPU Unit (CX-Programmer, additional programming software (CX-Process) will be required to create Function block data. And in order to monitor and alter settings during operation, a HMI section will also be required, in combination with the application in use.


    automation_system

    Introduction


    In order to ensure the reliability and security of the system, prior to the design of the system it is important to make certain that the conditions in which it will be installed is well understood.


    Basically, the stresses on the PLC system (temperature, humidity, vibrations, shocks, corrosive gases, overcurrent, noise etc.) need to be reduced as much as possible. However, the extent to which measures need to be taken in this regard will depend upon the likelihood of problems arising, the conditions in which the system is installed, and the cost of implementing measures. By taking advanced measures to prevent problems, the reliability of the system can be improved, and in the long-term the operation rate can also be increased.


    For the individual specifications of each unit, please see the respective user manuals.


    Installation/Conditions of PLC Control Panel


    The following describes the environmental conditions and measures to be taken for the installation of the PLC control panel (hereafter, "the panel")


    Temperature

    Based on the operating temperature of the element parts of the PLC, the operating temperature for the system is generally between 5°C and 40°C. At the same time, with both forced and natural cooling of the panel, the fact that it is miniaturized to save space means that from our experience the temperature of the panel is sometimes 10°C to 15°C higher than the ambient temperature of the room. As such, it is important that the following measures be taken depending on the installation site and the temperatures being generated to make certain that the panel's internal temperature does not exceed the range of the unit operating temperature, and to provide a sufficient margin for the range of operating temperature.


    ? High Temperature (see Figure 1)


    (1) Natural Cooling (Natural draft at the top and bottom of Panel) When installing the panel, it is optimal not to make use of cooling devices such as fans and coolers. The following are important points in the installation of the PLC.

  • Do not install in the upper part where the warm air in the panel stagnates
  • In order to ensure ventilation space, maintain a sufficient distance from other machinery, wiring ducts etc around the panel
  • Do not install in positions other than those specified (for example upside down), which can lead to the generation of abnormal heat within the PLC
  • Do not install directly above devices that generate heat such as heaters, transformers and high-capacity resistors etc.
  • Avoid direct sunlight

  • (2) Forced Ventilation (forced ventilation by use of a fan directly mounted at Top of Panel)


    (3) Controlled Circulation (controlled circulation by means of a fan in the airtight enclosure panel)


    (4) Full Room Cooling (Use a cooler to cool the entire room in which the panel is installed)


    Note:

    Environmental conditions and cooling system should be as follows.


  • Panel installed in room with low dust ? (1) or (2)
  • Panel installed in room with dust ? (3) or (4)

  • When using a fan:


  • Attach an air filter to the suction mouth to prevent the entry of dust
  • Periodically wash the air filter in water.
  • Temperature sensors should be attached near the PLC to emit an alarm in the event that the fan or air conditioner break down etc.

  • automation_system

    ? Low Temperature


    In cold areas where the morning temperature falls below 0°C at the time of start-up, attach a small space heater inside the panel to heat the internal temperature to about 5°C. In order for the PLC power supply to generate heat, don't turn off the power.


    Humidity

    In order to maintain the insulating properties of the PLC, relative humidity should be kept within the range of 35% to 85%. In particular in the winter, when heaters are turned on and off, sudden changes in temperature may be experienced resulting in condensation which can lead to shorts or malfunctions. Where there is danger of such a change in temperature, power should be kept on during the night and condensation should be prevented through such measures as installing a small heater inside the panel to maintain low heat. (See Figure 2)


    automation_system

    Figure 2. Examples of Measures against Condensation


    Vibrations/Shocks

    The PLC is tested in accordance with the environmental (electricity and electrons) the sine wave vibration test method (JIS C0040/IEC68-2-6) and the shock test method (JIS C0041/IEC68-2-27), so that vibrations and shocks in the general specifications will not cause malfunctions.


    However, the system should not be installed in a place where it will be subject to regular vibrations or shocks, especially to the PLC and the panel.


    The following methods may be used to reduce the effect of vibrations and shocks.


    (1) For vibrations and shocks that originate externally, the panel should be removed from the source. Alternatively, the PLC and the panel should be protected with the use of rubber.


    (2) Isolate vibrations such as through the construction of the building, flooring etc.


    (3) Regarding shocks experienced during magnetic contactor operation in the panel, the source of the shock or the PLC should be protected by rubber so that the shock is not felt.


    Atmosphere

    When using the system in any of the following kind of places, connections may be loosened or elements and parts may experience corrosion, and an air purge should be implemented to avoid this.


    (1) Places where dust, salt, particles, soot or organic solvents etc are common, and where the enclosure is sealed in such a way that the internal temperature does not increase very much.


    (2) Where corrosive gases are common, an air purge (air purification) of the panel should be performed, to pressurize the panel and prevent the intrusion of air from outside.


    (3) Places with flammable gases may be a cause of ignition. The system should not be used without a fire prevention mechanism in place.


    Work Space

    When installing the PLC and the panel, please consider their use, operability and maintenance, and pay particular attention to the following.


    (1) Make sure that there is sufficient space to operate programs and to replace the unit. Further, for the sake of safety and maintenance, installation should be as far as possible from high pressure or high power devices.


    (2) Mount the PLC and I/O unit in a position in which the use of the debugging tool and the connection and operation of peripheral devices will be possible.


    (3) The PLC and I/O unit generally has a maintenance light, and this should be easy for the operator to see, and in a position where it can easily be reached.


    (4) For systems using the PLC as a control system, it is likely that there will be future additions and alterations to the system, so approx. 10-20% extra space should be allowed for this.


    (5) Where necessary, about 600 mm of space should be kept behind the panel for the purpose of performing maintenance.


    PLC Control Panel Electrical Conditions


    The power supply, grounding, and noise make up the main elements of the electrical conditions. In the installation and wiring of the device, great care must be taken to ensure that there is no danger to the human body, and that electrical signals are not obstructed (noise).


    PLC Installation Site

    For the sake of safety in maintenance and operation, installation should not be near high current (more than 600V) or high power devices. Where this cannot be avoided, installation should be as far away from such devices as possible. (See Figure 3)


    automation_system

    Figure 3. Examples of Equipment Arrangement in Panel with High-voltage Device


    ? Arrangement of PLC and Each Unit (See Figure 4)


    (1) The CPU and other adjoining units should be special or input units where noise generation is limited.


    (2) The coils and contacts in electromagnetic contactors and relays in an external circuit are sources of noise. Locate them at least 100 mm away from the PLC.


    automation_system

    Figure 4. Example of built-in type


    Power System Wiring (See Figure 5)

    (1) The power supply for the PLC and I/O devices should be separate, and a noise filter should be installed to the PLC power supply.


    (2) Noise between the PLC and the ground can be greatly reduced by adding an isolating transformer. In such an event, do not ground the secondary coil of the transformer.


    (3) Keep the wiring between the transformer and the PLC as short as possible, twist the wires well, and keep the wiring separate from high-voltage and power lines.


    automation_system

    Figure 5. Power Supply System Diagram


    Wiring External I/O Signal Lines

    (1) To absorb reverse electromotive force when an inductive load is connected to an output signal, connect a surge protector near the inductive load in an AC circuit, and connect a diode near the inductive load in a DC circuit. (See Figure 6 and 7)


    automation_system

    Figure 6. Input Signal Noise Countermeasures


    automation_system

    Figure 7. Output Signal Noise Countermeasures


    (2) The output signal line should not be near or parallel with high current or power lines. When nearby, they should be separated by a duct, and an alternative wiring pipe should be established. In this event, the duct and wiring pipe must be grounded. (See Figure 8)


    automation_system

    Figure 8. I/O Cable Wiring


    (3) Connect the shield to the ground terminal at the PLC, and leave it unconnected at the input device.


    (4) Wire the lines so that common impedance does not occur. Such wiring will increase the number of wires, so use common return circuits. Use thick wires with sufficient allowance for the return circuits, and bundle them with lines of the same signal level.


    (5) For long I/O lines, wire the input and output signal lines separately.


    (6) Use twisted-pair wires for pilot lamps (and particularly lamps with filaments).


    (7) Using a CR surge absorber or diode etc is effective in reducing noise sources from input devices or output load devices.


    External Wiring

    The wiring method can have a large impact on creating a system that is strong against noise and a system that can operate with a high degree of reliability. Wiring, and noise countermeasures in particular, are based on experience, and it is necessary to closely manage wiring based on experience and information in the manuals.


    ? Preventing Faulty Wiring


    (1) By attaching marker bands to cables showing their direction, faulty wiring can be prevented, and wiring checks and maintenance can be facilitated.


    (2) Use different colors during wiring.


    (3) Place wires that transmit the same kind of signal into the same ducts, and separate them into groups.


    ? General Precautions


    (1) Do not join wires between terminals.


    (2) Support and fix the power line so that its end does not pull at the ends of multi-conductor cable.


    (3) Use flexible wires for the movable places such as doors etc. Install them one part on the panel body and the other on the door so that they may not be damaged by the movement of a door.


    (4) Connect crimp terminals to the end of the wire and use a torque driver for connection to the terminal, and screw in at an appropriate pressure. For terminal connection to an AC power unit, a round-type crimp terminal should be used instead of a U shaped terminal, for safety purposes.


    (5) The dust protection cover attached to the PLC unit should be kept in place until the wiring is completed to prevent dust from the wiring from entering. Further, as the internal temperature will increase greatly when the unit is in operation, the dust protection cover should be removed once wiring is completed to prevent loss in functionality.


    (6) All wiring for the power circuit should be twisted.


    (7) The primary or secondary noise filter should not be bundled, as this reduces its effectiveness.


    ? Wiring Route


    For the following combination, since signal types, properties, or levels of the signal differs, in principle different cables should be used or different routes should be used. Otherwise, the S/N (signal-to-noise ratio) resulting from electrical induction can fall. Also, by classifying and arranging the wiring, later maintenance or system changes can be simplified.


    (1) Power lines and signal lines


    (2) Input and output signals


    (3) Analog and Digital Signals


    (4) High level and low level signals


    (5) Communication lines and Power line


    (6) DC signals and AC signals


    (7) High frequency apparatus (inverters etc.) and signal lines (communication)


    ? Wiring Method


    (1) Isolate signal cables with different characteristics when routed in the same duct.


    (2) Routing more than one power line in the same duct should be avoided as much as possible. Where this cannot be avoided, place a partition in the duct and ground it. (See Figure 9)


    automation_system

    Figure 9. Isolating Signal and Power Cables


    (3) When using conduits in the course of wiring, the wires from one circuit should not place wires for a single circuit in separate conduits as the pipes heat up. (See Figure 10)


    automation_system

    Figure 10. Parallel use of Electrical Wires (single phase)


    (4) Do not install power cables and signal cables in parallel as they will adversely affect each other.


    (5) When high-voltage devices are installed in the panel, due to noise, this should be separated as much as possible from high voltage and power lines when wiring. (See Figure 3)


    (6) Install the PLC at least 200 mm from any high voltage or power lines, or make sure that the high current and power lines are contained within metal tubing, and ground to a resistance of 100 W. (See Figure 11)


    automation_system

    Figure 11. Example of Isolating PLC from Power Line


    ? Other Precautions


    (1) I/O modules have plus and minus commons, so be careful of polarity when wiring.


    (2) The outside of a fibre optic cable looks similar to a regular communication or power cable, but inside the cable there is the fibre and protective tension members and separators, so care should be taken when using them. Installation should be performed by the prescribed or standard methods, and care should be taken to not apply excessive shock, bend, twist, or excessive pulling.


    The following manuals have been prepared for wiring using fiber optic cables.


    (1) SYSMAC C/CV Series Hard Plastic Clad Fiber
    Manual for laying Fibre Optics Cables (H-PCF)


    (2) Controller Link Unit Fibre Optical Ring User Manual


    Grounding

    ? Purpose of Grounding


    There are two purposes for grounding.


    (1) Protective grounding which prevents electrocution to people by maintaining an grounding against leakage, induction and occasional accidents.


    (2) Grounding, including that to prevent external noise or noise which emanates from other devices or equipment, or noise that could disturb other devices or equipment, and that is necessary to protect device and system functions.


    These grounding issues may need to be resolved through experience and experimentation. It is important to take great care and consideration before performing the grounding.


    ? Grounding Method and Precautions


    (1) Principles of One-point Grounding


    It would be best to consider that it is grounding that "determines electrical potential". Do not use common return circuits to return currents for grounding. Under normal conditions, do not send current through grounding lines (Do not use common return circuits to return currents for grounding.).


    (2) As much as possible use independent ground (keep grounding pole at least 10m away from other grounding poles).


  • Use Ground to 100 W or less, and use independent ground which is separated from the grounding of other devices (See Figure 12 (a))
  • If using an independent ground is not possible, then use a common ground as shown in Figure 12 (b). Connect to the ground pole of the other device.
  • Never connect to the same ground as a device that draws a large amount of power, such as a motor or inverter. Ground the devices separately to avoid mutually adverse influences.
  • To prevent electrical shock, do not connect to ground poles (especially steel frames) to which multiple devices are connected.
  • As much as possible keep the grounding pole close to the PLC, and keep the grounding line short.

  • automation_system

    Figure 12. Grounding Methods


    (3) Grounding Precautions


    1. If the same ground is used for both the signal lines and the enclosure, isolate the channel base (a grounded metal plate inside a control panel) with an insulating material. (See Figure 13)


    CS/CJ-series PLCs have an isolated (floating) mounting structure to make it more difficult to be affected by noise from the installation conditions such as a control panel.


    automation_system

    Figure 13. Example: Insulating and Grounding an Enclosure


    2. The panel which contains the PLC must be insulated from other electrical devices. This is to prevent the effect of the leakage of current from other electrical devices.


    3. When there is high frequency equipment nearby, please be sure that the panel which holds the PLC is grounded, in addition to the high frequency equipment.


    4. When grounding the shield conductor in the event of shielded cable used in the wiring of input and output, connect the shield near the PLC to the enclosure ground terminal, as shown in Figure 14. For communication cables, please be sure to maintain shield processing in the communications unit manual.


    automation_system

    Figure 14. Shield Cable Grounding


    (4) PLC Protective Ground Terminal


    The PLC contains the following two ground terminals.


    Protective ground terminal that is always connected to the PLC chassis for the prevention of electric shock.


    Functional ground terminal: Connected to a neutral point in the noise filter to provide a ground when power supply noise causes malfunctioning.


    When properly grounded, the terminals will serve to reduce common mode noise from the power supply, but sometimes the grounding can result in picking up more noise, so care should be taken when using the terminals.


    automation_system

    Figure 15. PLC Grounding Terminal


    (5) Grounding for AC Power Supply Units When wiring to an AC Power Supply Unit. If one power supply phase of the equipment is grounded, always connect the grounded phase to the L2/N (or L1/N) terminal.


    automation_system

    Bibliography


    (1) Programmable Controller Maintenance/Inspection Handbook May 2002 NECA


    (2) SYSMAC CS Series User Manual Setup Edition


    Connecting Cables for CJ2


    automation_system
    automation_system

    Connecting Cables for CS1/CJ1


    automation_system
    automation_system

    Reference: USB-Serial Conversion Cable (CS1W-CIF31)


    automation_system
    automation_system

    Connecting Cables for CP1H/CP1L/CP1E


    automation_system
    automation_system

    Connecting Cables for C200HS/HX/HG/HE


    automation_system
    automation_system

    Connecting Cables for CQM1H


    automation_system
    automation_system

    Connecting Cables for CQM1


    automation_system
    automation_system

    Connecting Cables for CPM1, CPM1A and CPM2A


    automation_system
    automation_system

    Connecting Cables for SRM1


    automation_system
    automation_system

    Connecting Cables for CPM2C


    automation_system
    automation_system
    automation_system

    Connecting Cables for C1000H, C2000H, C200H


    automation_system
    automation_system

    Connecting Cables for CVM1/CV


    automation_system
    automation_system

    Connecting Cables for C500


    automation_system
    automation_system

    Connecting Cables for C120


    automation_system
    automation_system

    Connecting Cables for C20P/C28P/C40P/C60P*1, C20K/C28K/C40K/C60K*2


    automation_system
    automation_system

    Connecting Cables for NSJ


    automation_system
    automation_system