Programmable Controllers FAQ


Frequently asked questions and answers for Programmable Controllers - Industrial Automation


PLC Different Operating Modes


Question

What is the difference between the different operating modes of the Programmable Controller's CPU Unit (i.e., PROGRAM mode, RUN mode, and MONITOR mode)?


Answer
PROGRAM Mode

In PROGRAM mode, the CPU Unit is stopped. User programming can be created or modified, memory can be cleared, programs can be checked, programs can be debugged, and I/O memory tables can be created or modified.


MONITOR Mode

In MONITOR mode the CPU Unit is running. I/O is processed in the same way as in RUN mode. The operating status of the CPU Unit can be monitored, bits can be force-set/reset, the set values and present values of timer and counter instructions can be modified, and the present values of word data can be modified. MONITOR mode is used for system adjustments during trial operation.


RUN Mode

RUN mode is used for normal system operation. The operating status of the CPU Unit can be monitored, however bits cannot be force-set/reset, and present values and set values cannot be modified using Programming Devices.


The operating mode can be changed using a Programming Device or by sending a command using Host Link communications.


Turn OFF an Output Bit


Question

Is there an instruction that can be used in a subroutine to turn OFF an output bit that was turned ON in the main program?


Answer

Yes, the RESET instruction (RSET) or Always OFF Flag can be used in a subroutine to turn OFF a bit that was turned ON in the main program


Using the RESET Instruction (RSET)



*A = The output you want to turn OFF


Using the Always OFF Flag



Interrupt Tasks / Subroutines


Question

Will interrupt tasks and interrupt subroutines work properly during overhead processing, I/O refreshing, and peripheral servicing if C200HS-INT01 Interrupt Input Units are used in CS1 or CS200HX/HG/HE Programmable Controllers?


Answer

Yes, if an interrupt occurs, the interrupt task will be started even during I/O refreshing or peripheral servicing.


Two Ruled Lines on Programming Console Display


Question

When I turn ON the power to Programmable Controllers, two ruled lines appear on the Programming Console display. What is the problem?


Answer

The CPU error display (= = = =) means that a communications error has occurred between Programmable Controllers and the Programming Console.


Sometimes the CPU error display will appear even when the CPU Unit and the Programming Console are functioning normally. The possible reasons for this follow. Check each point to identify the problem.


When the Power to an Expansion Rack Has Been Interrupted

  • If using an Expansion Rack, disconnect the Expansion Rack and turn ON the power to only the CPU Rack.
  • Check to be sure the power supply to the Expansion Rack is operating properly.

    • When the Switch Setting Is Incorrect

      • Check whether the pin 7 on the DIP switch on CQM1H Programmable Controllers are OFF.
      • Check whether the pin 4 on the DIP switch on CS/CJ-series Programmable Controllers are OFF.

      Other CPU Unit models do not have switch settings, so this does not need to be checked.


      When There Is a Power Supply Failure

      • Check the power supply on the primary side. If there is no problem, change the Power Supply Unit and check again.

      Of course, it is possible that the Programming Console itself has failed, so check to see whether or not it will operate properly on another CPU Unit.


      This applies to C200H-PRO27-E, CQM1-PRO01-E, and CQM1H-PRO01-E Programming Consoles.


Power Supply Voltage Drops Momentarily


Question

How will Programmable Controllers behave if the power supply voltage drops momentarily?


Answer

The Programmable Controllers behaves in the following ways if the power supply is interrupted or the power supply voltage drops.

  • If the power supply falls below 85% of the rated voltage, the CPU Unit will detect a momentary power interruption, will stop operation, and will turn OFF the outputs depending on the length of the interruption.
  • The CPU Unit will not respond to the power interruption and will continue to run unconditionally if the power is interrupted for less than 10 ms
  • If the power interruption lasts more than 10 ms but less than 25 ms, the CPU Unit may or may not respond to the power interruption. In this case, the operation of the CPU Unit cannot be predicted.
  • The CPU Unit will stop unconditionally if the power interruption lasts more than 25 ms.

Battery for EEPROM Memory Backup


Question

Is a battery for EEPROM memory backup required when using an EEPROM Memory Cassette with C200HS or C200HX/HG/HE Programmable Controllers?


Answer

No, the EEPROM Memory Cassette does not require a battery.


NT-AL1001-E Conversion


Question

Can NT-AL001-E RS-232C/RS-422 Link Adapter be used to convert the peripheral port on a CPU Unit of Programmable Controllers to RS-422?


Answer

No, the peripheral port on the CPU Unit of Programmable Controllers do not supply 5 V, so the NT-AL001-E cannot be connected. Use an RS-232C port.


CQM1-CIF01/02 Peripheral Port Connecting Cable


Question

Can I continue to use CQM1-CIF01 or CQM1-CIF02 Peripheral Port Connecting Cable that I am currently using with CQM1 even if I change to CQM1H Programmable Controllers?


Answer

Yes, but you will need to connect CS1W-CN114 Connecting Cable to the CQM1-CIF01 or CQM1-CIF02 to connect to the CQM1H.


DM Area in CS1 PLC


Question

Can the contents of the DM Area in CS1 or C200HX/HG/HE Programmable Controllers CPU Units be written to or read from a personal computer even when the CPU Unit is operating?


Answer

The DM Area can be written to or read from a computer even while the CPU Unit is operating. When the CPU Unit is in MONITOR mode, both reading from the CPU Unit to the computer, and writing from the computer to the CPU Unit are possible. When the CPU Unit is in RUN mode, only reading from the CPU Unit to the computer is possible. The DM Area can be written to or read using WS02-CXPC1-J FA Integrated Tool Package (CX-Programmer), or using user programming on the computer.


Incorrect PLC Setting with SYSMAC Support Software


Question

What problems will occur if I mistakenly set CQM1 Programmable Controllers as the device type when programming CPM2C Programmable Controllers using the SYSMAC Support Software?


Answer

CPM2C memory contains the following:
Input bits: CIO 0 to CIO 9, output bits: CIO 10 to CIO 19, word bits: CIO 20 to CIO 49 and CIO 200 to CIO 227. Therefore a memory error will occur if a program uses CIO 50 to CIO 199, which do not exist in the CPM2C. (Programs created using the CX-Programmer FA Integrated Tool Package will check for the useable memory areas. However, the device type is set to CQM1 when using the SYSMAC Support Software, so the check for the usable memory areas, which is normally performed when using CPM2C, will not be performed. Memory areas that are not supported by CPM2C can be inadvertently used for programming and data transfer.)


If a memory error occurs, check the programming to see whether a memory area that is not supported by CPM2C is being used.
( Check for the following: CIO 50 to CIO 199, HR 20 to HR 99, and LR 16 to LR 63, as well as addresses in the TIM, CNT, and DM areas.)
After correcting any errors, transfer the corrected program to the CPU Unit.


Comparison between Host Link and Tool Bus Communications


Question

When we communicate with Personal Computer at Programmable Controller Peripheral Port, which is faster between Host Link and Tool bus?


Answer

Host Link communicates with ASCII code but Tool bus uses Binary code.
Data quantity by binary is double than that of Host link even when the communication speed are same


PLC Simulation Software


Question

Is there Programmable Controller simulation software?


Answer

Yes by CX-Simulator for SYSMAC CS1 only.


Convert SYSMAC Support Software File SP1 by CX-Programmer


Question

How can we convert SYSMAC Support Software file SP1 by CX-Programmer FA Integrated Tool Package?


Answer

After CX-Programmer Ver.2.1
Able to read it directly.
Select the FILE OPEN function on menu, then we can save as SP1 file: SYSMAC support soft ladder program (*SP1).


Before CX-Programmer Ver.2.1
File Conversion Utility convert SP1 file specifying CXT file to read SP1 File.
Then we can save as CXT file. Then we can open CXT file by CX-Programmer.


.CXT and .CXP Extension


Question

What is the difference between files with the extension .CXT and .CXP that can be converted using the CX-Programmer FA Integrated Tool Package conversion utility?


Answer

CXT files (.CXT extension) are created when data from the older Support Software is imported into the CX-Programmer. CXT files are saved in text format, which can be easily read by the CX-Programmer and other utilities and applications.


Files that were created with the CX-Programmer are saved as CXP files (.CXP extension). The contents of CXP and CXT files are the same, but CXP files are compressed binary files. CXP files have a smaller file size allowing them to be easily saved on disks, and they can be processed at high speed.


Sysmac Studio: Maximum Number of Variables


Question

Programming Support Software for C500


Answer

SYSMAC Support Software supports programming function for C500 Cable and units combination is:


(1) Interface unit C200H-IP007 + Cable CQM1-CIF01 (PC98), CQM1-CIF02 (DOS/V)


(2) Host Link Unit C120-LK201-V1 + Cable XW2Z-200P (2m), XW2Z-500P (5m)


*The XW2Z-500P is a PC98 Type Cable. The XW2Z-500P-V is a DOS/V Type cable.


PLC Software and HMI Software Connection with PLC via USB Port


Question

Can Factory Automation System Integrated Tool Package "CX-One CX-Programmer" and Drawing Tool for CX-One NS Series "NS-Designer" be connected with the Programmable Controllers (PLC) by using a USB port built into the personal computer?


Answer

Use the D-sub to USB-Serial Conversion Cable "CS1W-CIF31". This cable can connect the Programmable Logic Controller "SYSMAC" and/or the Programmable Terminal "NT/NS Series" with the support software.
Please consult your OMRON representative about the execution times for individual instructions.


Since Windows softwares including the CX-Programmer and the NS-Designer use the Windows COM port which does not depend on its physical configuration: RS-232C or USB port, either connector can be used. However, since the performance of a commercially-available simple USB-RS232C conversion connector for hobby use may not meet the high-speed communication, utilize a USB conversion cable suitable for FA use


* "Windows" is a registered trademark of Microsoft Corporation.


CX-Protocol Device Type Setting


Question

What is the correct device type setting in the Support Soft Ware "CX-Protocol" when creating send/receive sequences for protocol macros for CQM1H Programmable Controllers?


Answer

Select C200HG Programmable Controllers for the device type, select CPU43 for the model, and turn ON pin 8 on the DIP switch on the front panel of CQM1H.


What are FINS commands?


Question

What are FINS commands?


Answer

"FINS" stands for Factory Interface Network Service, which is protocol for sending messages between controllers on OMRON FA networks. The user can provide measures (e.g., in the user application) such as retry processing to ensure that transmitted messages arrive at the destination node.


PLC: I/O Memory Data Monitoring in Excel Files


Question

What is the best way to monitor I/O Memory Data of the CS1, C200HX/HG/HE, CPUs in Excel files?


Answer

Programmable Controller reporter provides Data collection at Excel loading the input data from CIO or DM area of Programmable Controller pasted at the cells of excel file only by settings.


It is also possible to download (writing) data from the cells to the Programmable Controller.


Applied OS is the Windows95/98, and supported Excel is the Excel97 and Excel 2000.


Supported communication between Personal Computer and Programmable Controller is Host Link (1:N), Controller Link, SYSMAC LINK, and Ethernet


Models are the SDKY-95HLK-E97 for Host Link and the SDKY-95MLT-E97 for other network.


* "Windows" is a registered trademark of Microsoft Corporation.


Access PLC I/O Memory via Ethernet


Question

Without using FINS Communication, can we access Programmable Controller I/O memory via Ethernet?


Answer

FTP server function of Ethernet Unit provides Data read or write for Memory card or EM File Memory. TCP/IP, UDP/IP Protocol provided Socket service. Socket service provides sending or receiving data and further processing by ladder program to change the memory at Programmable Controller.


Command of Writing from Computer to DM Area


Question

Is there a command that can write 100 words of data at once from a computer to the DM Area in the CPU Unit?


Answer

Yes, a FINS (Factory Interface Network Service) command is supported for CS1-series and CVM1/CV-series Programmable Controllers. This command is used to write 100 words of data all at one time. However, only the CS1-series and CVM1/CV-series support this command. When using C-series Programmable Controllers, the data must be written 4 times, writing 30 words each time. Therefore 100 words of data cannot be written simultaneously when using C-Series.


I/O Memory of CPU Unit


Question

What part of I/O memory in the CPU Unit is allocated to CS1W-SCU21 Serial Communications Unit and CS1W-CLK21 Controller Link Unit?


Answer

CS1W-SCU21 and CS1W-CLK21 are both CPU Bus Units. Words are allocated to CPU Bus Units according to the unit numbers set on the front of the Units. The first Word that is allocated is "n" and corresponds to CIO 1500 + 25 x unit number. For setting details, refer to the relevant manual.


SYSMAC Link Unit


Question

When using a SYSMAC LINK Unit with a C1000H/C2000H Programmable Controllers CPU Unit that already has a 3G2A5-LK201-EV1 Host Link Unit, is it necessary to replace 3G2A5-LK201-EV1 with a C500-LK203 Host Link Unit?


Answer

Yes. The 3G2A5-LK201-EV1 cannot be used together with the SYSMAC LINK Unit, so switch to the C500-LK203.


C120-LK201-EV1 and C60P


Question

When I use C120-LK201-EV1 Host Link Units with C60P Programmable Controllers, a communications error occurs. Why?


Answer

C120-LK201-EV1 cannot be used with C60P. Use 3G2C7-LK201-EV1 Host Link Units instead.


Connection between PLC and Single Sensor Output


Question

Can a single sensor output be connected to multiple Programmable Controllers Input Units in parallel?


Answer

The conditions for setting up this type of connection are as follows:


  1. The sum of the total input currents of the Input Units must be below the maximum switching capacity of the transistor in the sensor output.
  2. The leakage current from the transistor in sensors output may prevent the inputs to the Input Units from turning OFF. You must be sure that the inputs will turn OFF when sensors output turns OFF. As a condition for this, the input impedance of the Input Unit and the leakage current can be used to calculate the voltage when the sensor output is OFF. You must be sure that this voltage is less than the OFF voltage of the Input Unit.
  3. Sensors signal must be long enough to be detected by the Input Units. The ON/OFF signal from Sensors must be longer than the Programmable Controllers' scan time.

The following formula must be satisfied by the above conditions.


  • Sum of all leakage currents < Maximum switching capacity of transistor in sensors output
  • The leakage currents of the pulse output for the transistor in the sensor pulse output when it is turned OFF will not cause the Programmable Controllers input circuit to turn OFF (i.e., satisfies the following condition). Leakage current of output transistor when OFF x Input impedance of input circuit on Programmable Controllers < Voltage at which Programmable Controllers input turns OFF
  • The Programmable Controllers must be able to detect the sensor’s ON/OFF signal. Shorter of ON or OFF signal for sensor/pulse output > Length of one Programmable Controllers scan

Distinguishing Sink Type and Source Type using PLC Transistor Output


Question

How can we use Programmable Controller Transistor Output distinguishing Sink Type or Source Type?


Answer

Plus common or Minus common depends on the connected equipment. Sink Type has Minus COM, Current flows from Load to Unit when turned on. Source Type is reversed, COM is plus, Current flows from Unit to Load when turned on.


Allowable Momentary Power Interruption Time


Question

What is the allowable momentary power interruption time for the CQM1-PA203/-PA206/-PA216/-PD026 Power Supply Units?


Answer

If the power is interrupted for less than 10 ms when using a CQM1-PA203/-PA206/-PA216, the Programmable Controller will continue to run normally.
If the power is interrupted for more than 25 ms, the power interruption will be detected, the CPU Unit will stop, and the outputs will turn OFF.
A power interruption that lasts more than 10 ms but less than 25 ms may or may not be detected. Operation in this case cannot be predicted.


If the power is interrupted for longer than 5 ms when using a CQM1-PD026, the power interruption will be detected, the CPU Unit will stop, and the outputs will turn OFF.


Retaining DM Area Contents


Question

How long are the contents of the DM Area in a CS1 Programmable Controllers or C200HX/HG/HE Programmable Controllers CPU Unit retained?


Answer

CS1 and C200HX/HG/HE include a battery as a standard feature. The contents of the DM Area will be retained as long as the battery retains its charge.
The contents of the DM Area will be backed up for at least 5 minutes.


Group 2 High-density and Special I/O Units


Question

What is the difference between Group-2 High-density I/O Units and Special I/O Units used with the CS1 Programmable Controllers and C200HX/HG/HE Programmable Controllers?


Answer

Both have limits on the maximum number of Units that can be mounted according to the CPU Unit model. Group-2 High-density I/O Units can be mounted to the CPU Rack or Expansion Racks, but cannot be mounted to SYSMAC BUS Slave Racks.
The Special I/O Units can be used on CPU Racks, Expansion Racks, and the SYSMAC BUS Slave Racks.


RUN Output on C200HW-PA204R


Question

When will the RUN output on C200HW-PA204R Power Supply Units for CS1 Programmable Controllers and C200HX/HG/HE Programmable Controllers turn ON?


Answer

The RUN output on C200HW-PA204R will turn ON when the CPU Units are in MONITOR Mode or RUN Mode as long as a fatal error has not occurred.


Normally, the RUN output turns ON approximately one second after the CPU Units power is turned ON. The RUN output will turn OFF when the CPU Units enter PROGRAM Mode or a fatal error occurs.


Connect PLC via Ethernet Using CX-Programmer


Question

Using CX-Programmer FA Integrated Tool Package, how can we connect Programmable Controller via Ethernet?


Answer
  1. Personal Computer Ethernet setting by IP Address and Subnet Mask.
  2. Ethernet Unit: IP Address, Node No., Unit No.
  3. CX-Programmer and CS1 Programmable Controller is connected with Tool bus Cable.
  4. CX-Programmer I/O table Window: Unit Setting (CPU bus unit System Setting) is required to be set for Ethernet [IP Address Conversion] by Automatic generation, [Sub net mask] is set.
  5. CX-Programmer (CX-Net): FINS Local Routing table is created and transferred to CS1.
  6. Personal Computer issues PING Command to check if Ethernet connection is OK.
  7. CX-Programmer Communication Setting

1) Personal Computer Model Change / [Network Type] is set [Ethernet].
2) Click [Setting], set FINS destination address [Network] / [Node]
(Node = Ethernet Unit Node Number, Network = Network address set in Routing table)
3) Check Automatic generation method at [Driver] tab / Workstation node Address. Port Number = 9600.


C200H-PR027-E and CQM1H PLC Connection


Question

I have connected a C200H-PRO27-E Programming Console to a CQM1H Programmable Controllers peripheral port and am running the CPU Unit in MONITOR mode. However, when I turn OFF power supplies to CPU Units, remove Programming Console, and then turn ON power supplies again, CPU Units do not enter RUN Mode. What is the cause of this, and how can I resolve this problem?


Answer

If you turn OFF power supplies to CPU Units while the pin 7 on the DIP switch on the front of CPU Units are OFF, CPU Units will enter PROGRAM Mode when power supplies are turned ON again. Therefore, be sure to turn OFF the power to the CPU Unit with pin 7 on the DIP switch turned ON. Alternatively, you can set the operating mode in Programmable Controllers Setup to enter RUN Mode (set DM6600 to 0202) when power supplies are turned ON.


Difference between CS1W-NC_13 and CS1W-MC221


Question

What is the difference between CS1W-NC[]13 Position Control Units and CS1W-MC221 Motion Control Units?


Answer

The differences between CS1W-NC[]13 and CS1W-MC221 are as follows:


CS1W-NC[]13

Control target: Stepping Motor Drivers
Servo Motors with pulse strings
Direct Drive Motor Drivers
Control language: Ladder programming is good for simple ladder operations (direct operation or memory operation), however complex operations place a heavy load on the ladder program.


CS1W-MC221

Control target: Servo Drivers with analog inputs
Can connect to OMRON Servo Drivers that support absolute values.
Control language: Multitask G-language (G-language program is started from the ladder program.)
Multitask G-language allows for simple programming and is widely used for NC machine tools and position control. The load on the ladder program is light.
Others: Can be connected to a manual pulse generator (MPG).


DRV X-Y Connector XSOUT Signal


Question

I have C200H-MC221 Motion Control Units connected to a servo driver from another company. What is required for the DRV X-Y Connector XSOUT signal (SEN signal), and what timing is required?


Answer

The XSOUT signal (SEN signal) is used to load the present motor position when connecting OMRON Drivers that support absolute values (R88).
(By using Motion Controllers with OMRON Servo Drivers/Servomotors, an absolute system that does not need to search for the origin can be easily constructed.)


Therefore, the XSOUT signal (SEN signal) is not required when connecting servo drivers from another company. As for the timing, the SEN signal will turn ON when Motion Control Units power supplies are turned ON (i.e., when power supplies for Programmable Controllers are turned ON). The SEN signal will turn OFF when Servomotors are locked.


C200H Group-2 High-density I/O Units


Question

Can C200H Group-2 High-density I/O Units be used with C200H-RT201 SYSMAC BUS Remote I/O Slave Unit?


Answer

No, C200H Group-2 High-density I/O Units cannot be mounted to a Slave Rack created with the C200H-RT201. Use 16-point I/O Units instead.


Program Compatibility of CQM1 and CQM1H


Question

Can CQM1 Programmable Controllers programs be used on CQM1H Programmable Controllers without modification?


Answer

Yes, CQM1 programs can be used on CQM1H without modification. When transferring data from the Support Software, a different device type must be set.


Power Interruption Detection Conditions


Question

What are the conditions under which a C200HX/HG/HE Programmable Controllers will detect a power interruption when used with C200HW-PA204 Power Supply Units at 100 VAC?


Answer

A power interruption to C200HX/HG/HE will be detected under the following conditions. If the power supply voltage drops below 85% of the rated voltage, the CPU Unit will stop and the outputs will turn OFF depending on the length of the interruption.
The CPU Unit will not respond to the power interruption and will continue to run unconditionally if the power is interrupted for less than 10 ms.
If the power interruption lasts more than 25 ms, the system will stop, and outputs will turn OFF.
If the power interruption lasts more than 10 ms but less than 25 ms, the CPU Unit may or may not respond to the power interruption. In this case, the operation of the CPU Unit cannot be predicted.
The time it takes to detect a power interruption can be extended using a setting in the Programmable Controllers Setup (DM 6605).


Calendar and Time Data of CS1 PLC


Question

How do I use the calendar and time data with CS1 Programmable Controllers and C200HX/HG/HE Programmable Controllers CPU Units?


Answer

CS1 and C200HX/HG/HE CPU Units support clock functions (excluding the C200HE-CPU11-E) as a standard feature. Use the words containing the clock data for programming. The words used for click data depends on the model, so refer to the operation manual.


Comparison Instructions


Question

Are there comparison instructions that can be used as the input condition for other instructions in a ladder program?


Answer

In a CS/CJ-series Programmable Controllers CPU Unit, compare instructions can be used as input conditions by using Symbol Comparison Instructions.
Symbol Comparison instructions come in the three forms, LD, AND, and OR.
The AND-type symbol comparison instruction can be used with the CVM1-V2 Programmable Controllers and C200HX/HG/HE-Z Programmable Controllers CPU Unit.
The C-series Programmable Controllers CPU Units do not support Symbol Comparison Instructions.


LD (LOAD) Type (CS1/CJ1 Only)

AND (Series) Type (CS1/CJ1, C200HX/HG/HE-Z, and CVM1-V2)

OR (Parallel) Instruction (CS1/CJ1 Only)

Connection of Two CPM1A PLCs


Question

Is it possible to connect two CPM1A Programmable Controller Units with a RS-232C cross cable through an adapter, process an input to one CPM1A Unit, and output the result from the other CPM1A Unit?


Answer

Data in the LR Area can be transferred using a CPM1A 1:1 link. Transfer the necessary data to the LR Area to use this function. DM 6650 must be set to use a 1:1 link. In this case, the baud rate will be set to 19,200 bps and cannot be changed.


C120-LK201-EV1 and C20P Connection


Question

When I used C120-LK201-EV1 Host Link Units with C20P Programmable Controllers a communications error occurred. How should I handle this?


Answer

C120-LK201-V1 cannot be used with C20P. Use the 3G2C7-LK201-EV1 instead.


Lost of PLC Program if Backup Battery is Not Replaced


Question

Will a CS1-series Programmable Controller's program be lost if its backup battery is not replaced after its 5-year service life has expired?


Answer

The program will not be lost as long as the Programmable Controller's power supply does not go OFF.

The battery service life is 5 years, so replace the battery every 5 years to prevent problems such as electrolyte leakage.


Send String Data from PLC RS-232C


Question

Can we send string data from the Programmable Controllers via the RS-232C interface?


Answer

Yes. We can use the TXD instruction to send out string data from RS-232C Port by no protocol communication function.

TXD Instruction can be used with the CQM1/CQM1H, C200HX/HG/HE/HS, and CS1.


Number of C200H SYSMAC LINK Units


Question

Is there a restriction on the number of C200H Programmable Controllers SYSMAC LINK Units that can be mounted when a Host Link Unit is also mounted? Is it different than with C1000H Programmable Controllers?


Answer

With C200H, the SYSMAC LINK Units use the Bus Connection Units to exchange data with the CPU Unit.Therefore, there is no restriction on the number that can be mounted for Units that do not use Bus Connection Units (i.e., Host Link Units).


This is different for the C1000H, as shown below.

  • C200H: Two SYSMAC LINK Units and two Host Link Units.
  • C1000H: One SYSMAC LINK Unit and one Host Link Unit.

Backplane Upgrade of C200H_ Series


Question

What upgrades were made to the Backplanes for C200H/HS/HE/HG/HX Programmable Controllers?


Answer
C200H/HS Backplanes

C200H-BC[][]1
(next)
C200H-BC[][]1-V1:Supports 16-point Output Units.
(next)
C200H-BC[][]1-V2:Supports the C200HS-INT01 Interrupt Input Units.


C200HX/HG/HE Backplanes

C200HW-BC[][]1
(next)
C200HW-BC[][]1-V1:Supports the C200HW-PA209R Power Supply Units.


CX-Programmer with C200H CPU


Question

Can we use the CX-Programmer with the C200H CPU?


Answer

Yes. The CX-Programmer Ver.3.0 ( The WS02-CXPC1-JV3/-EV3) is worked for Windows95/98/NT4/Me/2000/XP.


Connection Cable between Personal Computer and Programmable Controllers :
Peripheral interface C200H-IP007: CQM1-CIF02
Host link unit C120-LK201-V1: XW2Z-200S-V


*"Windows" is a registered trademark of Microsoft Corporation.


Online Editing to Delete PLC Instructions


Question

Why is it that when I use online editing to delete instructions that cause an output on Programmable Controllers to be turned ON, the output does not turn OFF?


Answer

If you use the online editor to delete a bit that is ON, the bit will remain ON. This is because the program needed to turn OFF the bit has been removed.


Communication Error When CX-Programmer Get Online with PLC


Question

Why communication error occurs during CX-Programmer FA Integrated Tool Package get online with Programmable Controller?


Answer

Possible cause to be checked as follows:


  1. Power Management is to be set disabled at BIOS setting.
    RS-232C is activated by the power from DC-DC converter sourced at 5vdc at Personal Computer. Notebook type Personal Computer default setting is disable DC-DC converter in order to maximize the battery life.
    When COM port is used, power management has to be disabled.
  2. Power management at Windows control panel is to be set power is always supplied.
  3. Set not to use Active Desktop function.
    Active desktop function use overlay memory and CPU load is consumed.
  4. Disable Screen saver.
    RS232C operation may be delayed when screen saving starts.
  5. No virus check software runs.
    The latest virus check software always checks the data from serial port. This may cause timeout.

Sinking and Sourcing Outputs of CPM2C PLC


Question

What is the difference between CPM2C Programmable Controllers CPU Units with sinking outputs and sourcing outputs?


Answer

With sinking outputs, current flows in the following order:
"Positive power supply line" to "Load" to "CPM2C" to "Negative power supply line". This is the same as for an NPN transistor.


With sourcing outputs, current flows in the following order:
"Positive power supply line" to "CPM2C" to "Load" to "Negative power supply line". This is the same as a PNP transistor.


The device being output to will determine whether a sinking or sourcing output should be used.


Indirect DM Addressing


Question

What is indirect DM addressing?


Answer

Indirect DM addressing involves reading the contents of a specified DM word and using it as the address of another word in the DM Area, e.g., to read the contents of the second word.


In a program, this operates as follows:


The constant 0000 is not moved to DM 0100, but rather the contents of DM 0100, which is 0500, is taken as an address in the DM Area and the constant 0000 is moved to DM 0500.

PLC: Display Contents of 4-digit Decimal Data Memory


Question

What system configuration is necessary to display the contents of 4-digit decimal data memory in Programmable Controllers on an external 7-segment digital display?


Answer

There are two types of digital display units, static output models and dynamic output models. If the data from only one 4-digit decimal display needs to be displayed, it is recommended to use static models to make system maintenance easier.


Also, among static models, there are models with positive logic and models with negative logic. Negative logic (see note) is much more common among Output Units for Programmable Controllers, so we recommend using models with negative logic.


Note:C200H Programmable Controllers Output Units with negative logic include the C200H-OD215, C200H-OD218, and C200H-OD219. Select a M7E Digital Display Units with negative logic.


Protocol Macro


Question

What is a protocol macro?


Answer

A protocol macrois macro containing a communications protocols designed for the communications specifications of an external device that has a serial communication port.


The following two main functions are provided for protocol macros.

  1. Creating communications frames (messages)
  2. Creating the procedures to send and receive communications frames

The Boards and Units are equipped with communications protocols to send and receive data with OMRON CompoNet components (e.g., Temperature Controllers, Digital Panel Indicators, Barcode Readers, and Modems). Therefore, data communications with OMRON components can be achieved by simply setting the data to be sent or received, and executing the PMCR(260) instruction.


The following products support protocol macros.



C200H-NC and CS1 PLC


Question

Can a C200H-NC111/112/211 Position Control Units be used in a CS1-series Programmable Controllers? Are there any restrictions?


Answer

Yes, the C200H-NC111/112/211 can be used in CS1-series Programmable Controllers.
The NC112 and NC111 are allocated 10 words, and the NC211 is allocated 20 words. The unit number range for the NC112 and NC111 is 0 to 9. The unit number range for the NC211 is 0 to 8.


OMRON PLC and PC Connection


Question

How can the Programmable Controller "SYSMAC" be connected to a personal computer through a serial port or an Ethernet? Is the FinesGateway necessary?


Answer

In the case of serial interface


There are two ways: using the FinsGateway Ver.3 or not using it.


In the case when an application to be developed with the VisualC++ or the VisualBasic may be used through other interface methods, it is better to utilize the FinsGateway Ver.3.


On the other hand, in the case when the connection is done only through a higher-level link, it is possible to open a COM port directly from the VisualC++ or to issue a higher-level link command disclosed in the manual by using the VisualBasic and the ActiveX Control for commercially available serial access without using the FinsGateway Ver.3.


In the case of Ethernet interface


There are two ways: using the FinsGateway Ver.3 or not using it. In the case when an application to be developed with the VisualC++ or the VisualBasic may be used through other interface methods, it is better to utilize the FinsGateway Ver.3.


On the other hand, in the case when the connection is done only through an Ethernet interface, it is possible to call up the WinSock2 library directly from the VisualC++ or to issue FINS/UDP/IP commands disclosed in the manual by using the VisualBasic and the ActiveX Control for commercially available WinSock2 without using the FinsGateway Ver.3.


Cable for CS1 PLC and NT-AL001


Question

Is there a cable available that will connect the built-in RS-232C port of CS-series Programmable Controllers CPU Unit to NT-AL001 Option of Programmable Controllers?


Answer

Yes, XW2Z-070T-1 (70 cm) and XW2Z-200T-1 (2 m) Cables.
These cables can also be used to connect the C200HX/HG/HE or CQM1H Programmable Controllers to the NT-AL001 RS-232C/RS-422A Link Adapter.


Difference between C200H-ID216 and C200H-ID218


Question

What is the difference between C200H-ID216 Programmable Controllers' input Units and C200H-ID218 Programmable Controllers' input Units?


Answer

The C200H-ID216 and C200H-ID218 have different input impedances. The input impedance of each Unit follows.
C200H-ID218: 3.9 kΩ
C200H-ID216: 5.6 kΩ


Therefore, their input currents are also different.


C200H-ID218: 6 mA
C200H-ID216: 4.1 mA


Choose Units based on the leakage current of the connected devices.


Program Transfer


Question

With the CX-Programmer FA Integrated Tool Package, what is the procedure to transfer a program to a C200HX/HG/HE-Z Programmable Controllers or C200HS Programmable Controllers Memory Cassette? What is the procedure to verify the data?


Answer

The procedure to write data to a Memory Cassette and perform verification follows.


  1. Set SW1 on the Memory Cassette to OFF (write-enabled) before turning ON power supplies to the C200HX.
  2. Turn ON power supplies to C200HX and then connect online.
  3. Set the operating mode of the CX-Programmer to PROGRAM Mode.
    Select "View" - "Window" - "Watch Window", right-click in the Watch Window, and select "Add" from the menu. Set the address to A270.00.
    Right-click the Programmable Controllers name (New Programmable Controller 1) displayed in the Watch Window, and select Set from Set/Reset in the menu.
  4. To verify the data, set the address to A270.02, right click on the Programmable Controllers name (New Programmable Controller 1) displayed in the Watch Window, and select Set from Set/Reset in the menu.
  5. To check the verification result, set the address to A270.03 and check the value.
    The verification result is stored in A270.03 in the following manner.
    1: Memory Cassette data and user memory data are different.
    Or verification is not possible because CPU Unit is not in PROGRAM mode.
    0: Memory Cassette data and user memory data are the same.

Baud Rate of RS-232C Built into CS1 PLC


Question

What is the baud rate of the RS-232C communications port built in to CS1 Programmable Controllers CPU Unit?


Answer

The maximum baud rate when CS or RS control wires are wrapped at ends of the cable is 19,200 bps. When CS or RS control wires and hardware flow control are being used, the maximum achievable baud rate is 38,400 bps in most cases.


When, for example, using a baud rate of 56,000 or 115,200 bps on a laptop computer with the CX-Programmer FA Integrated Tool Package, the hardware chipset, Windows version, installed drivers and application software are all factors that may affect the system, causing stable operations at times and communications errors at other times.


*Windows is a registered trademark of Microsoft Corporation.


CX-Programmer and Windows XP


Question

What is the minimum version of the CX-Programmer FA Integrated Tool Package required to operate in a Windows XP environment?


Answer

CX-Programmer Ver.3 is compatible with Windows XP.


The following table shows which CX-Programmer versions are compatible with each Windows operating system.



Note:Windows is a registered trademark of Microsoft Corporation.


Models Used with CPM2C-CIF21


Question

Which OMRON products (general-purpose communications components) can the CPM2C-CIF21 Simplified Communications Unit communicate with?


Answer

CPM2C-CIF21 can perform simplified communications if the connected device is an OMRON Temperature Controllers, Digital Panel Indicators, or Timers.


Communications with general-purpose devices is done using SYSWAY or CompoWay/F commands using a command/response method. Therefore, a connection cannot be established when information flows one-way from the connected device, such as with barcode readers.


Only the following models can be connected:


  • Temperature Controllers
    E5GN, E5CN, E5EN, E5AN, E5CK, E5EK, E5AK, E5EJ, E5AJ, E5AF, and E5ZN
  • Digital Panel Indicators
    K3GN, K3NX, K3NV, K3NR, K3NP, K3NC, K3NH, and K3TS
  • Timers H8GN

Using C200H-CT001/002/021


Question

When using C200H-CT001-V1/CT002/CT021 High-speed Counter Units, the RUN indicator does not light even when I turn ON power supplies to Programmable Controllers. Is the Unit malfunctioning?


Answer

The RUN indicator on High-speed Counter Units lights when count operations begin. The conditions under which count operation will begin depend on the operating mode.


Example:

Using C200H-CT001-V1 in Linear Operating Mode


When bit 00 of word n allocated to the High-speed Counter Unit turns ON, the counting operation will begin, and the RUN indicator will light.


n = 100 +10 x Unit number for the C200HX/HG/HE, C200HS, or C200H
n = 2000 + 10 x Unit number for a CS1-series Programmable Controllers


PLC: Using Index Register


Question

What is the advantage of using index registers?


Answer

The most beneficial use of index registers is to reduce the number of steps required in ladder programming.


When processing a continuous or uniformly spaced list of addresses in a ladder program, the exact same programming pattern may appear 10 to 20, or even hundreds of times. This can be true for sequence control (bit processing) and data processing (word processing) as well. In these situations, the number of steps used in a ladder program can be greatly reduced by using an index register in a FOR-NEXT loop.


The CVM1, CV500/CV1000/CV2000, and CS1/CJ1 Programmable Controllers' support index registers.


PLC: Creating I/O Tables


Question

Is it necessary to create I/O tables when using CJ1 Programmable Controllers?


Answer

There are two ways to allocate I/O with CJ1.


  • Automatic I/O Allocation When Power Is Turned ON
    The I/O tables will be automatically created when the power is turned ON based on the information on the Units that are actually installed in Programmable Controllers.
  • User Allocation
    The user creates the I/O tables using Programming Devices.

If a Unit connection check (using Programming Devices to verify that the Units registered in the I/O tables are actually present) or word reservations are required, the user must create the I/O tables or the user must transfer them to the CPU Unit.


Difference between C1000H/C2000H and the V1


Question

What is the difference between C1000H/C2000H-CPU01 Programmable Controllers and C1000H/C2000H-CPU01-V1?


Answer

C1000H/C2000H-CPU01-V1 supports SYSMAC LINK.
C1000H-SLK21-V1 SYSMAC LINK Units can be used for coaxial cable, and C1000H-SLK11 can be used for fiber optic cable.
With C1000H/C2000H-CPU01-V1, up to two of the following Units can be used: Host Link Units (C500-LK203 and C500-LK103), SYSMAC NET Units (C500-SNT31-V4), and SYSMAC LINK Units (C1000H-SLK21-V1 and C1000H-SLK11).


PLC: Input 2-Digit BCD Data


Question

How do I create a program to input 2-digit BCD data from a digital switch to CIO 0.08 to CIO 0.15 and then move the data to specified DM Area words?


Answer

Assuming that CIO 0.00 to CIO 0.07 are allocated to other input bits, the following two conditions must be met to create the program.


  1. Only the digital switch value from CIO 0.08 to CIO 0.15 is to be extracted from CIO 0.
  2. The 8 bits extracted in the previous step must be moved to the lower 8 bits of a word so that they can be used in processing in the next program rung.

Use the MOVE DIGITS instruction (MOVD) to Meet Conditions 1 and 2 Above

The MOVE DIGITS instruction (MOVD) can be used to meet the conditions described in items 1 and 2 above.


Additional Information
What Is a Digit?
A "digit" is a single numeral. In this case, the instruction name MOVE DIGITS comes from the meaning to send a BCD value in digit (4-bit) increments.


Program



Operation





Note:For details on the MOVE DIGITS instruction (MOVD), refer to the Instructions Reference Manual for the relevant Programmable Controllers.


PLC: Create Program to Input 1.5-Digit BCD Data


Question

How do I create a program to input 1.5-digit BCD data to CIO 0.00 to 0.05 BCD from a digital switch and move it to a specified DM Area word?


Answer

Assuming that CIO 0.06 to CIO 0.15 are allocated to other inputs, only the data in the 6 bits in from CIO 0.00 to CIO 0.05 should be extracted to create this program. If the extracted number of bits were integral multiples of 4 bits (1-digit BCD) the MOVE DIGITS instruction (MOVD) could have be used, but this time 6 bits have been extracted so the MOVD instruction cannot be used. Instead, the LOGICAL AND instruction (ANDW) will be used.


Programming



Operation



Note:For details on the LOGICAL AND operation (ANDW), refer to the Instructions Reference Manual for the relevant Programmable Controllers.


PLC: Program to Transfer a 2.5-Digit BCD Data


Question

How do I make a program to transfer a 2.5-digit BCD data stored in the DM Area to display it on a static-input digital display (CIO 2.00 to CIO 2.09)?


Answer

We will assume that CIO 2.10 to CIO 2.15 are allocated to other output bits. The main point of this program is how to process the combination with the other output bits. This time, we will combine the bits using the LOGICAL AND (ANDW) instruction and LOGICAL OR (ORW) instruction.


Note:The display data storage area is D100.


Program and Operation Explanation




Error Message When Transfering a Program to CPM1A


Question

When I transfer the program to CPM1A Programmable Controllers using the SYSMAC Support Software, a message saying to turn ON the Programmable Controllers' DIP switch and try again was displayed. Why?


Answer

The default CQM1 Programmable Controllers function codes for expansion instructions must be used on the CPM1A. They cannot be changed. The message will appear if the function code for any of the eighteen expansion instructions has been changed when a program is transferred. If this message appears, return to the CQM1 default function codes for expansion instructions and use them in programming.


PLC: Program A Time Switch


Question

How do I program a time switch to turn ON and OFF a machine at specific time daily?


Answer

A time switch like the one you described can be easily programmed using the clock built into the CPU Unit.


Program and Operation Explanation


Store the desired times to turn ON or OFF a particular machine in DM Area words of your choice. Then use the DOUBLE AREA RANGE COMPARE instruction (ZCPL) to continuously compare the time on the clock built into the CPU Unit to the time stored in the DM Area, the turning ON and OFF of machines and devices can be controlled individually.


Note:When using CS1/CJ1 Programmable Controllers, the output words for the current time from the calendar time (A352/A351) are shown as the word address. Refer to the Programming Manual for the relevant Programmable Controllers.




PLC: Performing Online Editing


Question

A message saying that the new code is too large and cannot be transferred to Programmable Controllers due to an online editor limitation was displayed while I was performing online editing. What should I do?


Answer

When performing online editing with the CX-Programmer FA Integrated Tool Package, there is no limit to the number of rungs, but the maximum number of words (number of steps) is limited. If the number of words is too great, select a smaller range (thus reducing the number of words) and start online editing again.
With CX-Programmer Ver. 3.1 or higher, the maximum program size that can be handled while online editing is checked not only at file transfer, but it is checked while editing as well. Therefore, a warning message will be displayed if the maximum program size is exceeded during editing.


The SYSMAC Support Software can only simultaneously edit one rung at a time. If that rung exceeds the program size limit, a "program over" error will occur and you will not be able to edit the program.


Limitations for CS/CJ Series Programmable Controllers and CVM1/CV Series Programmable Controllers


The program size limit for CS/CJ Series depends on the communications settings and is 247 steps for toolbus. The program size limit for CVM1/CV Series depends on the communications settings and is 263 words for toolbus. Do not edit the program in a way that would cause the maximum cycle time set in Programmable Controllers Setup to be exceeded. If the maximum cycle time is exceeded, a cycle time exceeded error will occur and operation will stop.


Limitations for C Series Programmable Controllers


C Series has a program size limit of 128 words.
A cycle time exceeded error (non-fatal error) will occur for C200H. If this happens, clear the error.


PLC: Step Ladder Control


Question

Can I program Programmable Controllers so that all of the outputs in a ladder program step will not turn OFF, even after proceeding to the next step (i.e., will retain the output status in future steps) when using step ladder program instructions to perform step ladder control?


Answer

When proceeding to the next step of a ladder program, the OUT instructions will turn OFF all outputs that were turned ON. Therefore, use the SET instruction so that the status of the outputs bits is maintained after proceeding to the next step of a ladder program. When required, turn OFF the outputs using the RSET instruction.



PLC: Incremental Count of N Pulse Input


Question

How do I write a program that uses index registers and increment instructions to do an incremental count of N pulse inputs?


Answer

The following introduces a method to count 32 pulse input bits within a loop program using FOR-NEXT instructions and an index register. (FOR-NEXT instructions can be used on CS1 and CJ1 Programmable Controllers (PLC).)


Key Points About This Program

Under basic operating principles, differentiated instructions and instructions with the @ option cannot be used within loop programs. Therefore the program in the following figure has been used.


Basic Structure of a Program to Generate Differentiated Bit



Program



Count input bits: CIO 0.00 to CIO 1.15 (32 bits): Processed with index register IR0
BCD, 4 digits, incremental counter: D100 to D131 (32 bits): Processed with index register IR1
Differentiated Bit Generated Flag: W0.00 to W1.15 (32 bits): Processed with index register IR2



PLC: Wiring for CJ1W-ID231


Question

Which Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables can be used with CJ1W-ID231 DC Input Units?


Answer

The combinations of Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables that can be used with CJ1W-ID231 are shown in the following table.
The following models can be used with CJ1W-ID231: XW2D-20G6, XW2B-20G5, XW2B-20G4, XW2D-40C6, XW2D-40G6, XW2D-40G6-RF, XW2B-40G5, XW2B-40G5-T, XW2B-40G4, XW2C-20G6-IO16, XW2C-20G5-IN16, XW2E-20G5-IN16, and G7TC-IA16/ID16.



PLC: Wiring for C200H-OD219


Question

Which Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables can be used with C200H-OD219 Transistor Output Units?


Answer

The combinations of Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables that can be used with C200H-OD219 are shown in the following table.
The following models can be used with C200H-OD219: XW2D-40G6, XW2B-40G5, XW2B-40G4, XW2D-40C6, XW2D-20G6, XW2B-20G5, XW2B-40G5-T, XW2B-20G4, XW2C-20G6-IO16, G7TC-OC16/08, G70C-SOC16/VSOC16, and G70A-ZOC16-3.



PLC: Wiring for C200H-ID217


Question

Which Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables can be used with C200H-ID217 DC Input Units?


Answer

The combinations of Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables that can be used with C200H-ID217 are shown in the following table.
The following models can be used with C200H-ID217: XW2D-20G6, XW2B-20G5, XW2B-20G4, XW2D-40C6, XW2D-40G6, XW2D-40G6-RF, XW2B-40G5, XW2B-40G5-T, XW2B-40G4, XW2C-20G6-IO16, XW2C-20G5-IN16, XW2E-20G5-IN16, and G7TC-IA16/ID16.



PLC: Wiring for C200H-ID215


Question

Which Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables can be used with C200H-ID215 DC Input Units?


Answer

The combinations of Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables that can be used with C200H-ID215 are shown in the following table.
The following models can be used with C200H-ID215: XW2D-20G6, XW2B-20G5, XW2B-20G4, XW2C-20G6-IO16, XW2C-20G5-IN16, XW2E-20G5-IN16, XW2D-20C6, and G7TC-IA16/OD16.



PLC: Program to Operate A Motor


Question

How do I write a program to operate a motor for a time directly proportional to the 1 to 5 VDC signal?


Answer

The water level signal (1 to 5 VDC) from the Liquid Level Indicator is an analog signal, so first it must be converted into a digital signal using an Analog Input Unit. The following introduces programming that will convert the digital value into a stirring time (***.* seconds) using the SCALING instruction (SCL).


A/D Conversion for Analog Input Units

Relationship between Water Level, Measurement Signal, and Stirring Time

Program and Operation

PLC: Data Search (SRCH) Instruction


Question

How do I create programming to use a DATA SEARCH (SRCH) instruction to find a certain product code from within the production instruction master table and extract the related production instruction data?


Answer

There are many applications that use the product code as a search key to extract the related production instruction data. The following explains how to use the DATA SEARCH (SRCH) instruction to accomplish this.


Work Flow to Extract Production Instruction Master and Data

Figure1. Production Instruction Master
*File size: 320 words (80 records at 4 words per record)
*Code specifications: The product code and instruction data cannot have the same code.


Program and Operation

The following programming is designed for the CS/CJ Programmable Controllers. When using a C200H Programmable Controllers or other smaller Programmable Controllers, the usage of the DATA SEARCH (SRCH) instruction is slightly different. Before programming, refer to the Instructions Reference Manual for the relevant Programmable Controllers (PLC).




*1. What is &320?
Direct Decimal Input/Hexadecimal Data Formal
When &320 is written, the decimal 320 is converted to hexadecimal 0140 and used as the parameter for the first operand.


PLC: Program to Read Input Signals


Question

How do I write a program that will read input signals from ten-key keypad connected to a CS/CJ Programmable Controllers and convert them to numeral data?


Answer

There are two types of ten-key switches, one that uses binary code and strobe signals, and another that uses decimal code. This document introduces programming for the ten-key switch that uses decimal code.


Program and Operation
1. Ten-key Input Allocations and the Data Storage Area

System Specifications

  • Up to 4 digits of model data from the ten-key switch is input to CIO 0 bits 00 to 09 and moved to D102.
  • The numbers stored in D102 are shifted 1 digit (4 bits) to the right whenever numbers are input using the ten-key. If 5 or more digits are input, then the numbers stored in D102 will be deleted one-by-one sequentially for every digit input starting with the leftmost bit.


2. Ladder program

3. Operation

Note:
1.If 5 or more digits are input using the ten-key, then by changing the second operand (shift leftmost word) of the ONE DIGITS SHIFT LEFT (SLD) instruction, the number of useable digits can be extended in 4 digits units.
2.Using the TEN KEY INPUT instruction with the CQM1H Programmable Controllers or C200HX/HG/HE Programmable Controllers will allow a maximum of 8 digit to be input from the ten-key.

PLC: BCD with and without CARRY Instruction


Question

What is the difference in the way that the BCD ADD WITHOUT CARRY instruction and BCD ADD WITH CARRY instructions are used?


Answer
The Carry Flag (CY)

Most Programmable Controllers support double-length math instructions, but for example, what should be done if the result of a BCD double-length addition operation exceeds the upper-limit of double-length data, which is 9999 9999?
BCD Double-length Data Range
0 to 9999 9999


Now for the Carry Flag (CY)!

Figure1

How the Carry Flag (CY) Works
The result of the addition operation shown in Figure1 cannot be expressed with only 8 digits, so an overflow (i.e., a "carry") occurs. In this case the Carry Flag (CY) will turn ON.



Figure2


Here, the Carry Flag can be used to pass the carry to the calculation for the upper digits, enabling calculations for more than 8 digits.


Difference between BCD ADD WITHOUT CARRY and BCD ADD WITH CARRY

The information from Figure1 and Figure2 is summarized here.



Figure3

Calculation A:
Use the ADD WITHOUT CARRY instruction for rightmost digit calculations in which there is no carry from the lower digit.

Calculation B:
Use the ADD WITH CARRY instruction for upper digit calculations in which a carry from the lower digit must be considered.

The ADD WITH CARRY instruction, as shown in Figure3, is an addition instruction that includes the Carry Flag in the addition operation.

Program and Operation

1. Ladder Program



2. Operation



Summary
  1. Difference between ADD WITHOUT CARRY and ADD WITH CARRY
    ADD WITHOUT CARRY instruction:
    Used for rightmost digit calculations in which there is no carry signal from a lower digit.
    ADD WITH CARRY instruction:
    Used for upper digit calculations in which a carry signal from the lower digit must be considered.
  2. About the Number of Digits in Addition Results
    The ladder program above is capable of handling an addition result of 12 digits in length. However, if the result will exceed 12 digits, make the upper digit calculation instruction a Double Add Instruction, or connecting multiple operations with ADD WITH CARRY Instructions.
  3. Addition Operations with Smaller Models
    The CPM2A Programmable Controllers and other smaller Programmable Controllers only have the ADD WITH CARRY Instruction, so when doing calculations with lower digits, be sure to use the CLEAR CARRY (CLC) instruction to turn OFF the Carry Flag (CY) before executing Addition Instructions. If the Carry Flag (CY) is not property reset, in other steps where the Carry Flag (CY) is turned ON, arithmetic mistakes such as 1 + 1 = 3 will occur.
  4. The logic works the same for Binary Addition instructions and other Math Instructions.
    This document explained the carry procedure as related to the BCD Addition instruction, but the same logic applies to the Binary Addition instructions as well.
    When dealing with subtraction operations, the Carry Flag (CY) and carry operation simply changes to a borrow operation and the calculation can be done in the same way.

PLC: Using SYSMAC BUS and DeviceNet


Question

Can C200H, C200HX/HG/HE, or CS Programmable Controllers use the C200H-RM[][][] (SYSMAC BUS) and C200HW-DRM21-V1 (DeviceNet) at the same time?


Answer

Normally, C200H-RM[][][] (SYSMAC BUS) and C200HW-DRM21-V1 (DeviceNet) cannot be used together. The DeviceNet Master Unit checks for the existence of Remote Master Units. If Remote Master Units are detected, an E4 error is output, and communications are stopped. Other than communications, the system will operate normally.
A Configurator can be used to solve this problem, allowing C200H-RM[][][] (SYSMAC BUS) and C200HW-DRM21-V1 (DeviceNet) to be used together.


When using a Configurator with C200H or C200HX/HG/HE, do not use the same I/O Area words for C200H-RM[][][] and C200HW-DRM21-V1.
When using the CS, read the master parameters using a Configurator and rewrite them to the CPU Unit to clear the E4 error. The E4 error will be cleared just by writing the parameters to Master Units using the Configurator.


When using the CS, the problem can be solved by using CS1W-DRM21-V1 DeviceNet Unit.
When using together with a SYSMAC BUS Unit, it is recommended to use CS1W-DRM21-V1.


PLC: RUN Output on a Power Supply Unit Turn ON


Question

In what cases will the RUN output on a Power Supply Unit turn ON?


Answer

The RUN output will turn ON when the CPU Unit is in MONITOR Mode or RUN Mode as long as a fatal error has not occurred.


Normally, the RUN output turns ON approximately one second after the CPU Unit power is turned ON. The RUN output will turn OFF when the CPU Unit enters PROGRAM Mode or a fatal error occurs. The RUN output is enabled only for the Power Supply Unit on the CPU Rack.


PLC: Wiring for CJ1W-ID261


Question

Which Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables can be used with CJ1W-ID261 Programmable Controllers?


Answer

The combinations of Connector-Terminal Block Conversion Units, I/O Relay Terminals, and Connecting Cables that can be used with CJ1W-ID261 are shown in the following table.
The following models can be used with CJ1W-ID261: XW2D-20G6, XW2B-20G5, XW2B-20G4, XW2D-40C6, XW2D-40G6, XW2D-40G6-RF, XW2B-40G5, XW2B-40G5-T, XW2B-40G4, XW2C-20G6-IO16, XW2C-20G5-IN16, XW2E-20G5-IN16, and G7TC-IA16/ID16.



Difference between C200H[] and The Z Version


Question

What are the differences in Support Software, instructions, and the way Extended Data Memory is handled between the C200HX/HG/HE Programmable Controllers and C200HX/HG/HE-Z Programmable Controllers?


Answer
  1. The C200HX/HG/HE can be supported with pre-Windows DOS-based and Windows-based Support Software. The C200HX/HG/HE-Z is supported only by Windows-based Support Software.
  2. The C200HX/HG/HE supports expansion instructions. Some instructions do not have function codes. To make the C200HX/HG/HE-Z compatible with the C200HX/HG/HE, expansion instructions can be set, or 3-digit function codes can be used. Also, symbol instructions can also be used.
  3. Extended Data Memory on the C200HX/HG/HE can only be used with certain instructions. On the C200HX/HG/HE-Z, Extended Data Memory can be used with almost every instruction.

Refer to the following for information on the instructions that have been added to the C200HX/HG/HE-Z.


Differences between the C200HX/HG/HE and C200HX/HG/HE-Z



Note:Microsoft Windows is a registered trademark of Microsoft Corporation.


PLC: Difference between Open Collector and Line Driver


Question

What is the difference between the open collector and line driver used with a High-speed Counter Unit?


Answer

The encoder specifications determine if an open collector or line driver is needed. Generally the open collector and line driver have the following characteristics.


Open Collector

The open collector operates depending on whether standard voltage is high or low compared to the input voltage. The effect of noise will cause the open collector signal to turn ON or OFF. Noise immunity can be improved by shortening the cable distance, using a shielded cable, or by using a capacitor.


Line Driver

The differential line driver sends a reference voltage along with the voltage as a signal. Because the noise is spread across two lines (both the positive and negative sides), even if there is noise on the cable, the input circuit will not be easily affected. In environments that are easily affected by noise or situations in which the distance the cable must travel is great, it is useful to use a line driver.


PLC: CPU Error and WDT Error


Question

What is a CPU error and a WDT error (watchdog timer error)?


Answer

A CPU error will occur when the microcomputer in the CPU Unit does not operate properly.
The watchdog timer can be used to check whether the CPU Unit is operating properly.
The watchdog timer is just one way to check whether the CPU Unit is operating properly.
The watchdog timer is a normal processing routine that runs a timer that will be reset if an instruction is executed within a set period of time. If the set period of time passes and the timer is not reset, it is determined that the program has entered an abnormal routine, and an interrupt is generated to detect the error. This is the method generally used to detect hardware errors.
Take, for example, a program that executes an instruction, and 100 ms later executes the same instruction again. If 130 ms pass and the instruction has not been executed, a hardware error will be detected and program execution will be stopped.
The timer that monitors this time is known as the watchdog timer, and when a specified time has passed, it interrupts program execution and sends notification.


PLC: Instruction to Reverse Status of Specific Bits


Question

What instruction can I use to reverse the status of specific bits?


Answer

Use the EXCLUSIVE OR instruction (XORW) to reverse the status of specific bits in a specific word.


EXCLUSIVE OR Instruction (XORW) Specifications
  1. An EXCLUSIVE OR of the corresponding bits in input 1 and input 2 are taken and the results are output to the result word, R.
  2. As can be seen in the truth table on the right, when the EXCLUSIVE OR is executed, the bits with different status in inputs S1 and S2 will be 1 in the result word, while the bits with the same status will be 0.

Program and Operation

By using this basic specification of the EXCLUSIVE OR instruction (XORW), specific bits in a specific word can be inverted.


1. Ladder Programming



2. Operation



PLC: Store Changeover Data in CSV Format


Question

How do I store changeover data in the file memory in CSV format, and use the FREAD instruction to copy the data to specific words in the DM Area?


Answer

Refer to control data specifications for the FREAD instruction in the CS/CJ Series Programmable Controllers Instructions Reference.


The file format to read from the Excel file is specified.

  • The delimiter is specified with bits 12 to 15.
  • The carriage return is specified with bits 8 to 11.

    • The above settings are relevant to the data specifications.


      When specifying the CSV format, you specify the number of digits in each data cell when you specify the delimiter.
      When using words, the delimiter is placed after every 4 digits. When using long words, the delimiter is placed after every 8 digits.
      For the carriage return specification, one field equals one cell.


      Example:
      Refer to the image of Excel as below.
      Create this type of data in Excel and save it in CSV format.



PLC Comparison Instruction


Question

Are there instructions that directly make comparisons (e.g., "equal", "less than", "more than") so that comparison results do not have to be accessed from the status of result flags for comparison instructions?


Answer

The following Programmable Controllers support symbol comparison instructions (e.g., "equal (=)", "less than (<)", "more than (>)").

  • C200HX/HG/HE-Z Series
  • CVM1-V2 Series
  • CS/CJ Series

The execution condition for the comparison instruction must be created before the comparison instruction.


PLC: Program to Delay Turning ON a Work Bit


Question

How do I write a program to delay turning ON a work bit for 1 scan after an input A turns ON and keep the work bit ON for only 1 scan when using a CS/CJ-series Programmable Controllers?


Answer

As shown in Figure 1, the program delays for 1 scan after input A turns ON, and turns ON work bit W2.00 for only 1 scan, as shown in Figure 2.



Figure 1


Ladder Programming

Figure 2


Operation: Refer to Figure 3
  1. When input A (CIO 0.00) turns ON, the execution condition created by the differentiated input instruction (--|↑|--) will turn ON for only 1 scan.
  2. When the execution condition created by the differentiated input instruction (--|↑|--) turns OFF in the next scan, the CONDITION OFF (DOWN) instruction causes the execution condition to turn ON for only one scan, resulting in work bit W2.00 turning ON for only 1 scan.
  3. Figure 3


  4. 3. ON for 1 scan only.
Data Trace Results

Figure 4
CIO 000000: Input A (CIO 0.00), W00200: Word bit (W2.00)


Applications of this Programming

This programming technique to delay turning ON a work bit for 1 scan after another bit's status changes (i.e., turns ON) and then turn on the work bit for only 1 scan can be used for time limit control between a data output signal and strobe signal in parallel transmissions.


Example of Time Limit Control in Parallel Transmissions


"Transmission request input from a terminal device turns ON" to "Parallel data (n bits) is output".


to "Strobe signal (1 bit) turns ON after 1 scan".


Application Conditions for this Programming


The signal from the device must meet the following time-related conditions.


The time period required between the parallel data and strobe signal must be less than the Programmable Controllers' shortest scan time.


PLC: Program to Delay Turning ON a Work Bit (2)


Question

How do I write a program to delay turning ON a work bit for 1 scan after an input A turns ON and keep the work bit ON for only 1 scan?


Answer

As shown in Figure 1, the program delays for 1 scan after input A turns ON, and then turns ON work bit W2.00 for only 1 scan, as shown in Figure 2.



Figure 1


Ladder Programming

Figure 2


Operation: Refer to Figure 3
  1. When input A (IR 0.00) turns ON, the DIFFERENTIATE UP (DIFU) instruction turns ON work bit IR 200.00 for only 1 scan.
  2. When IR 200.00 turns OFF in the next scan, the DIFFERENTIATE DOWN (DIFD) instruction turns ON work bit IR 200.01 for only 1 scan.
  3. Figure 3


  4. 3. ON for 1 scan only.
Data Trace Results

Figure 4
IR00000: Input A (IR 0.00), IR20000: Internal bit IR 200.00
IR20001: Internal bit IR 200.01


Applications of this Programming

This programming technique to delay turning ON a work bit for 1 scan after another bit's status changes (i.e., turns ON) and then turn on the work bit for only 1 scan can be used for time limit control between a data output signal and strobe signal in parallel transmissions.


Example of Time Limit Control in Parallel Transmissions


"Transmission request input from a terminal device turns ON" to "Parallel data (n bits) is output".


to "Strobe signal (1 bit) turns ON after 1 scan".


Application Conditions for this Programming


The signal from the device must meet the following time-related conditions.


The time period required between the parallel data and strobe signal must be less than the Programmable Controllers' shortest scan time.


Note:When using a CS/CJ-series Programmable Controller, a differentiated instruction --|↑|-- and CONDITION OFF instruction (DOWN) can also be used for the same purpose as the above instructions.


PLC: Program ON/OFF Delay


Question

How do I program ON/OFF delays?


Answer
Operation Specifications and Data Trace Results

CIO 000000: Input A (CIO 0.00)
CIO 000200: Output B (CIO 2.00)
*Output B (CIO 2.00) turns ON 3.0 s after input A (CIO 0.00) turns ON (ON delay). Output B (CIO 2.00) turns OFF 1.5 s after input A (CIO 0.00) turns OFF (OFF delay).


Ladder Programming

Programming: CS1/CJ1-series Programmable Controllers

*By changing the settings of the ON delay timer (TIM 0001) and OFF delay timer (TIM 0002), the desired delay times can be achieved.


PLC: Program Turning a Bit OFF Repeatedly


Question

How do I program repeatedly turning a bit OFF for 1 second and ON for 1.5 seconds?


Answer

If the ON and OFF time is 0.5 s or 0.1 s, a Clock Pulse Bit (P_ls and P_0_2s) can be used as an input. The following method can be used to create a flicker program that outputs a pulse-train for ON and OFF times for which Clock Pulse Bits are not provided.


Operation Specifications and Data Trace Results

CIO 000000: Flicker start bit (CIO 0.00)
CIO 000200: Flicker bit (CIO 2.00)


*When the flicker start (CIO 0.00) turns ON, the flicker bit (CIO 2.00) is turned OFF for 1 second and ON for 1.5 s. The flicker bit will stop turning ON and OFF when the start bit turns OFF.


Ladder Programming

Programming: CS1/CJ1-series Programmable Controllers


*By changing the settings of the OFF timer (TIM 0001) and ON timer (TIM0002), the desired pulse-train output can be achieved.


PLC: Program a One-Shot Output


Question

How do I program a one-shot output?


Answer

In a one-shot program, as long as the trigger input stays ON for longer than a certain time (see note), the output bit will be turned ON for a specific period of time regardless of how long the trigger input is ON.

Note:Usually this time is equal to the time of a one CPU Unit cycle.


As shown in Figure 1, when the trigger input (CIO 0.00) is ON for either 1.0 s or 2.5 s, the pulse output bit (CIO 2.00) will be turned ON for 1.5 s.


Data Trace Results

Figure 1

CIO 000000: Trigger input bit (CIO 0.00)
CIO 000200: Pulse output bit (CIO 2.00)


Ladder Programming

Programming: CS/CJ-series Programmable Controllers


Program Operation


OFF Operation of Pulse Output Bit (CIO 2.00)


  1. If the Trigger Input Bit ON Time Is Less Than the One-shot Time:
    The pulse output bit (CIO 2.00) is turned OFF by ---|/|--- T0001 programmed for the self-holding work bit (W0.00).
  2. If the Trigger Input Bit ON Time Is Greater Than the One-shot Time:
    The pulse output bit (CIO 2.00) is turned OFF by ---|/|--- T0001 programmed on the same rung as the pulse output bit.

PLC: Substitutes for C200H-CPU01


Question

What products are recommended as substitutes for the C200H-CPU01 Programmable Controller?


Answer

Select any of the following: C200HE-CPU11, C200HE-CPU32, or C200HE-CPU42.


Selection Precautions:


1. A Power Supply Unit must be purchased (e.g., the C200HW-PA204).
2. Check the Memory Unit that was used with the C200H-CPU01.

C200HE-CPU11: 3.2 Kwords (built-in RAM)


C200HE-CPU32/42: 7.2 Kwords (built-in RAM)


Points to Check:


C200H-CPU01:
C200H-MR431/MR432/ME431 Memory Unit = 2,878 words
Thus the C200HE-CPU11 is acceptable.
Memory Unit C200H-MR831/MP831/ME831 = 6,974 words
Select from the following: C200HE-CPU32 or C200HE-CPU42 (7.2 K).
C200HE-CPU42: Provides a built-in RS-232C port.


3. Purchase a Backplane, e.g., the C200HW-BC081-V1.

Select from the following: C200HW-BC101-V1, C200HW-BC081-V1, C200HW-BC051, or C200HW-BC031.


4. The C200HE/HG/HX cannot be used if the C200H-ID001/002 Input Unit (no-voltage contacts) is used with C200H-CPU01. Check the configuration and use another Unit.

(There are no substitute models with the same specifications.)


5. Support Software and a Connecting Cable are required. (No interface is required.)

CQM1-CIF01 and XW2Z-S001 (for PC98, half 14-pin RS-232C)
CQM1-CIF02 (for IBM PC/AT)


6. The user program can still be used if there are no changes in the I/O configuration.

PLC: Program an ON Delay


Question

How do I program an ON delay?


Answer
Operation Specifications and Data Trace Results

CIO 000000: Start input bit (CIO 0.00)
CIO 000001: Reset input bit (CIO 0.01)
W00000: Work bit to store start status (W0.01)
CIO 000200: Output A (CIO 2.00)


*Output A (CIO 2.00) will turn ON 2.5 seconds after the start input bit (CIO 0.00) turns ON, and it will turn OFF when reset input bit (CIO 0.01) turns ON.


Ladder Programming

Programming: CS/CJ-series Programmable Controllers


*By changing the setting of the delay timer (TIM 0001), the desired ON-delay time can be achieved.


PLC: CONDITION ON and DIFU Instruction


Question

What is the difference between the CONDITION ON instruction (UP) for the CS/CJ-series Programmable Controllers, and DIFU instruction?


Answer

Both the CONDITION ON (UP) and CONDITION OFF (DOWN) instructions were added with the introduction of the CS/CJ-Series, but here we will explain only the CONDITION ON (UP) Instruction.


CONDITION ON Instruction (UP) Operation Specifications

When the execution condition to UP turns ON, the execution condition output from UP will turn ON for 1 cycle.



Figure 1


Note:What is PF?
PF is an abbreviation for power flow. The power flow is flow of the execution condition in a ladder program. It runs from left to right, expressing the result of the logical operators (instructions) such as AND, OR, and NOT as a binary signal (ON/OFF).
With the CONDITION ON instruction (UP), you do not have to use a work bit to process the differentiated status, which is necessary with the DIFU instruction. This operation of the CONDITION OFF instruction is shown in Figure1.


Differences between CONDITION ON Instruction (UP) and Other Differentiated Instructions

The differences between --|↑|--, the DIFU instruction, and the CONDITION ON instruction (UP) are given in Table 1.



Table 1


Application Example

Figure 2


Program Operation


  1. When the Device A Run Time (D201) reaches the Device A Time for Lubrication (CIO 1), the CONDITION ON instruction (UP) causes the execution condition to turn ON for one scan, which will turn ON the Device A Reached Time for Lubrication Bit (CIO 2.00) will turn ON. The self-holding bit (CIO 2.00) will cause the warning bit to remain ON.
  2. When the Alarm Stop Pushbutton Bit (CIO. 0.01) turns ON, the self-holding bit will be reset, and the alarm output bit (CIO 2.00) will turn OFF.

Reference:
We have explained the CONDITION ON instruction (UP) here. The CONDITION OFF instruction (DOWN) is different only in that, when the input signal turns OFF, the execution condition will turn ON for one cycle. The other characteristics of the CONDITION OFF instruction (DOWN) are the same as those of the CONDITION ON instruction (UP).


PLC: Outputs in Interlocked Program Sections


Question

What outputs turn OFF with in interlocked program sections Interlock Instruction (IL/ILC) and those that do not turn OFF?


Answer

The Interlock Instructions can be used to turn OFF all the sequence outputs from a specific program block, as might be necessary to process an emergency stop for one line.


Basic Specifications of INTERLOCK Instruction (IL)

When the execution condition for IL is ON, all bits specified for the following three instructions that are located between IL and ILC instructions in the ladder program will be turned OFF.

  • OUT instruction
  • OUT NOT instruction
  • OUTB instruction (See note.)

Note:This instruction can be used on the following CPU Units: CS1-H/CJ1-H/CJ1M Programmable Controllers.


Answer

Ladder Program Sequence When Interlock Is Not Active


Refer to Figure 1.


* The execution condition for the IL instruction is ON.


The instructions between the IL and ILC instructions will be executed as normal.


Outputs A to D (CIO 2.00 to CIO 2.03) are all ON.
SINGLE BIT OUTPUT (OUTB) Instruction causes�
the bit 15 of D100 to be turned ON
(D100: 8000 hex)



Programming: CS1-H, CJ1-H, or CJ1M Programmable Controllers
Figure 1


Warning
If this document is printed in black and white, the ladder program bit status (ON/OFF) will be unreadable. Copy the bit status to the printout if required.


Ladder Program Sequence When Interlock Is Active

Refer to Figure 2.


*The execution condition for the IL instruction turns OFF.


  • The bits CIO 2.00 and CIO 2.01 in the OUT and OUT NOT instructions that are within the IL and ILC Instructions will be turned OFF.
  • The OUTB instruction will turn OFF bit 15 of D100. (D100: "8000" to "0000" hex) (See note.)
  • Bits CIO 2.02 and CIO 2.03, which kept ON using the KEEP and SET instructions, will not be turned OFF.

Note:Other bits in D100 will not be turned OFF even if they are used in instructions other than the OUTB instruction (e.g., MOV).



Figure 2


Data Trace Result

Figure 3
CIO 000000: Device interlock bit (CIO 0.00)
CIO 000200: Output A (CIO 2.00)
CIO000201: Output B (CIO 2.00)
CIO 000202: Output C (CIO 2.02)
CIO 000203: Output D (CIO 2.03)


When the device interlock bit (CIO 0.00) turns ON, outputs A and B (CIO 2.00 and CIO 2.01) turn OFF, and outputs C and D (CIO 2.02 and CIO 2.03) stay ON. D100 changes from 8000 to 0000 hex.



Note:If there are outputs that you do not want to turn OFF when the interlock is enabled in the same program block, use the KEEP instruction or SET/RESET instructions, as mentioned before.


CS1 Backplane Connection


Question

In CS1-series Programmable Controllers, can CS1W-BI[][]3 Expansion Backplane be connected to CS1W-BC[][]2 CPU Backplane? Can CS1W-BI[][]2 Expansion Backplane be connected to CS1W -BC[][]3 CPU Backplane?


Answer

No, the compatible Expansion Backplane for CS1W-BC[][]2 CPU Backplane is CS1W-BI[][]2. C200H Programmable Controllers Units cannot be mounted to CS1W-BI[][]3 Expansion Backplane. When using CS1W-BC[][]3 CPU Backplane, CS1W-BI[][]3 Expansion Backplane can be used. CS1W-BI[][]2 Expansion Backplane cannot be used.


As explained above, there are specific Expansion Backplanes that are compatible each type of CPU Backplane. If you need to mount C200H Units, you will need to use the proper combination of Backplanes.



PLC: Data Heading Not Received Properly


Question

When I send and receive data with protocol macros, occasionally the data header is not received properly. Why?


Answer

If the device that you are connected to using protocol macros has a fast processing time (the time the data is received until the time the data is returned), the protocol macro may not be able to receive all of the data.


When using protocol macros, some time is necessary after sending data from the Programmable Controllers before the Programmable Controllers will be able to receive data.


Refer to the following data; the values are guidelines.


CS1W-SCB21/41-V1 Communications Board, CS1W-SCU21-V1 Communications Unit, or CJ1W-SCU21/41 Communications Unit

C200HW-COM04-V1 to 06-V1 Communications Board, or CQM1H-SCB41 Communications Board

PLC: .OPT File


Question

What is the .opt file that is created with the .cxp file whenever I save a project?


Answer

The .opt file stores the operating environment settings of CX-Programmer FA Integrated Tool Package. It is automatically created and saved when the project file is saved.


The .opt file saves the location and size of every window, and the symbols registered in the Watch Window while using CX-Programmer.


Deleting the .opt file will not affect the program, but the settings stored in the file will be reset to their defaults.


PLC: Difference between Binary and BCD Forms


Question

What is the difference between the binary and BCD forms of math instructions?


Answer
The Internal Code of Math Instructions

When using CX-Programmer FA Integrated Tool Package, as shown in the ladder program in Figure 1, both BINARY ADD instructions and BCD ADD instructions can be input and displayed in decimal form. The data conversion function of CX-Programmer makes this possible. You can see by looking at the internal code in the Watch Window in Figure 1 or the numeral data in Figure 2, that the internal code processed by the CPU Unit is actually binary.



Programming: CS1/CJ1-series Programmable Controller
Figure1. Ladder Program and Watch Window



Figure2. DM Area Monitor Display for Programmable Controller Memory (Binary Mode)


The BINARY ADD instructions can handle a range of values 3.27 times that of the BCD ADD instructions.

Choosing an Instruction: Checkpoint 1


As previously described, the internal code for the instructions is either binary or BCD format. The value ranges for the instructions are shown in Table 1.



Table 1


As shown in Table 1, the difference between the "+" instruction and the +B instruction is whether the values are signed or unsigned. It can also be seen that the "+" instruction can handle a range of values 3.27 times that of the +B instruction even when the value range is limited to positive numbers. This difference in the range of values that can be handled is an important factor when selecting math instructions.


Considering the I/O Values of Programmable Controllers

Choosing an Instruction: Checkpoint 2


Should binary or BCD format be selected? One more important point to be considered when selecting the instruction is the form of the numeric inputs for the math instruction. Table 2 shows a list of common I/O signals used by Programmable Controllers and the main code (BCD or binary) that would be used for math processing.



Table2. I/O Signals for Programmable Controllers


Case Study of Selecting Math Instructions (Overview)

To summarize the above, the two checkpoints for math instruction selection are as follows:


  1. The difference in range of values handled by binary instructions and BCD instructions
  2. I/O format for math formulas

Here we will give some examples of how to decide math instructions using checkpoints 1 and 2.


Example 1: Relatively Simple Calculation
Use BINARY ADD

An internal offset value is added to a 4-digit BCD input value from a thumbwheel switch, and the result is output as a 4-digit BCD value to a digital display unit.


Use BINARY DIVIDE

A 12-bit binary value from an A/D conversion unit is divided by an internal variable, and a 12-bit binary value is output to a D/A conversion unit after scaling.


Example 2: Comparatively Complex Calculation with Multiple Input Parameters

When there are multiple input parameters, depending on the input device and communications control specifications, BCD data and binary data may both exist. When this occurs consider the following two questions as a general guide to select the math instruction:

  1. What is the form of the output value?
  2. What is the value range during calculation processing?

After the instruction has been decided, other data in other forms will be converted into binary or BCD using the binary or BCD conversation instructions.


PLC: Connecting C200H-NC112 to a Servo Drive


Question

What combinations of connecting cables and Servo Relay Units are required to connect C200H-NC112 Position Control Units a Servo Drive?


Answer

Refer to the following diagram.


C200H-NC112

PLC: Address Not Updated Correctly with IR1


Question

The address does not update correctly with IR1 in a program using the index register as shown in Figure 1. Why?


Answer
Ladder Program Operation Specifications

Before explaining the problems with the ladder program, we will explain the system operation specifications.


*When one of the pushbutton switches from 1 to 32 is pressed, the two words of input data (4-digit BCD data) will be stored in D100 to D131 as shown in the following example.




Programming: CS1/CJ1-series Programmable Controllers
Figure 1


The Problem with the Ladder Program
So what is the problem with the ladder program?

To get to the point, there is a problem in the usage of the auto increment option/,IR1+ in --[MOV 2,IR1+] on rung number 10 of the ladder program.


What is the ,IR1[]+ auto increment option?

,IR[]+: The contents of IR[] will be incremented by 1 immediately after accessing the contents of the address that IR[] points to.


The ladder program in Figure 1 works like this. Immediately after the -- [MOV 2 ,IR+1] instruction on rung 10 is executed, the address in IR[] is incremented by 1. In this program, when the --| |--,IR0+ input condition is OFF, the MOV instruction will not be executed. Therefore the auto-increment process will also not be executed. This is the reason why the address update process using IR1 does not function properly.


Note:This problem will not occur with instructions that are executed each scan regardless of the execution condition, such as with --||-- ,IR0+ or with -- (,IR[]+) OUT (which does not appear here).


Example of Program in Which the IR1 Address Is Updated Every Scan

Programming: CS1/CJ1-series Programmable Controllers
Figure 2


Explanation
  1. Remove the "+" option from the -- [MOV 2 ,IR1+] instruction to change the instruction to -- [MOV 2 ,IR1] as shown in Figure 2.
  2. By using a NO input condition for the Always ON Flag (P_On) together with -- [++L IR1], the address in IR[] will be incremented for every scan of the FOR-NEXT loop.

++L instruction

DOUBLE INCREMENT BINARY instruction. Increments the 8-digit hexadecimal content of two words of data by 1.


*Here, the address (32 bits) stored in IR1 is incremented by 1.


PLC: Address Not Updated Correctly with IR1


Question

The address does not update correctly with IR1 in a program using the index register as shown in Figure 1. Why?


Answer
Ladder Program Operation Specifications

Before explaining the problems with the ladder program, we will explain the system operation specifications.


*When one of the pushbutton switches from 1 to 32 is pressed, the two words of input data (4-digit BCD data) will be stored in D100 to D131 as shown in the following example.




Programming: CS1/CJ1-series Programmable Controllers
Figure 1


The Problem with the Ladder Program
So what is the problem with the ladder program?

To get to the point, there is a problem in the usage of the auto increment option/,IR1+ in --[MOV 2,IR1+] on rung number 10 of the ladder program.


What is the ,IR1[]+ auto increment option?

,IR[]+: The contents of IR[] will be incremented by 1 immediately after accessing the contents of the address that IR[] points to.


The ladder program in Figure 1 works like this. Immediately after the -- [MOV 2 ,IR+1] instruction on rung 10 is executed, the address in IR[] is incremented by 1. In this program, when the --| |--,IR0+ input condition is OFF, the MOV instruction will not be executed. Therefore the auto-increment process will also not be executed. This is the reason why the address update process using IR1 does not function properly.


Note:This problem will not occur with instructions that are executed each scan regardless of the execution condition, such as with --||-- ,IR0+ or with -- (,IR[]+) OUT (which does not appear here).


Example of Program in Which the IR1 Address Is Updated Every Scan

Programming: CS1/CJ1-series Programmable Controllers
Figure 2


Explanation
  1. Remove the "+" option from the -- [MOV 2 ,IR1+] instruction to change the instruction to -- [MOV 2 ,IR1] as shown in Figure 2.
  2. By using a NO input condition for the Always ON Flag (P_On) together with -- [++L IR1], the address in IR[] will be incremented for every scan of the FOR-NEXT loop.

++L instruction

DOUBLE INCREMENT BINARY instruction. Increments the 8-digit hexadecimal content of two words of data by 1.


*Here, the address (32 bits) stored in IR1 is incremented by 1.


PLC: Program with BCD Subtraction Operations


Question

How should I handle programs that have BCD subtraction operations that result in a negative number?


Answer

When the result of a BCD arithmetic operation is a negative number, the operation result will be output as the 10's complement (see Additional Information, below), and the Carry Flag will be turned ON. As shown in Figure 1, immediately after executing the BCD SUBTRACTION WITHOUT CARRY (-B) instruction, the status of the Carry Flag (CY) (ON or OFF) is checked.


a. When the Carry Flag (CY) Is OFF (Operation Result Is Positive)

The execution result (D202) of the BCD SUBTRACTION WITHOUT CARRY (-B) instruction is handled as an absolute value without any further manipulation.
In this case, the sign bit (CIO 2.00) turned OFF to indicate a positive number.


b. When the Carry Flag (CY) Is OFF (Operation Result Is Negative).

Subtract the execution result (D202: 10's compliment) of the BCD SUBTRACTION WITHOUT CARRY (-B) instruction from 0 to convert it to the actual value, and store it in D202.
In this case, the sign bit (CIO 2.00) is turned ON to indicate a negative number.


Additional Information
What Is a Tan's Complement?
  1. Subtract a 4-digit BCD value from 9,999 or an 8-digit BCD value from 99,999,999. The ten's complement is the result with 1 added. In Figure 1, the result of 6,666 - 9,999 is -3,333, but the result that is output is the ten's complement of 3,333 (9,999 is -3,333 + 1, or 6,667). The formula for a 4-digit BCD number is written as follows:
    Complement B = 9,999 - True value A + 1 (i)
  2. Formula (i) can be reversed to calculate the true value A
    True value A = 10,000 - Complement B (ii)
  3. The ten's complement (6,667) can be converted to the true value A (3,333) using the following formula.
    10,000 - 6,667 = 3,333. The true value of complement 6,667 is 3,333. (iii)

*[-B #0 D202 D202] in Figure 1 subtracts the complement from 0000, and stores the result in D202.


Ladder Program and Watch Window
(1) For 9,999 - 6,666 = 3,333

Programming: CS1/CJ1-series Programmable Controllers
Figure 1


Operation


The result of the first -B instruction is, 9,999 (D200) - 6,666 (D201) = 3333 (D202) and the Carry Flag (CY) is turned OFF. For this reason, the second -B instruction will not be executed, and the operation result is 3,333 is handled as an absolute value without any further manipulation. In this case, the sign bit (CIO 2.00) is turned OFF to indicate a positive number.


BCD SUBTRACT WITHOUT CARRY (-B) Instruction

Word operands and/or constants are subtracted as 4-digit BCD values.


Carry Flag (CY)

This flag is turned ON if there is a carry in the result of the subtraction.


(2) For 6,666 - 9,999 = -3,333

Figure 2


Operation


The result of the first -B instruction execution is, 6,666 (D200) - 9,999 (D201) = 6667 (the ten's compliment of 3,333 (D202)) and the Carry Flag (CY) is turned ON. The second -B instruction will be executed, and the complement of 6,667 is converted to the true value (3,333) and stored in D202. In this case, the sign bit (CIO 2.00) is turned ON to indicate a negative number.


PLC: C200H-LK201-V1 and CS1


Question

Can C200H-LK201-V1 Host Link Unit be used with CS1-series Programmable Controllers?


Answer

No, C200H-LK201-V1 cannot be used with a CS1-series.
C200H Units that use the CPU bus or C200H Host Link Units cannot be used with CS1-series.


C200H Special I/O Units That Cannot Be Used with CS1-series

*Use CS1-series products for SYSMAC LINK, Controller Link, and COM Boards, and use Serial Communications Board or Serial Communications Unit instead of Host Link Unit.


PLC: TIM Instruction


Question

My 8-second ON-delay timer program that uses a TIM instruction does not run properly. What is the problem?


Answer

The Problem Ladder Program



Figure 1


TIM instruction in diagram 1 has a timer setting of 80. To set an 8-second timer, this value must be changed to "#0080" (8.0 seconds).


If the timer setting value is set to 80, then the contents of CIO 80 when TIM0001 is executed will be used as the set time.


Connect C200H-CPU with an IBM PC/AT


Question

How can I connect a C200H Programmable Controller's CPU Unit with an IBM PC/AT or compatible computer?


Answer
  1. Mount the C200H-IP007 Peripheral Interface Unit to the C200H and connect the CQM1-CIF02 Connecting Cables.
  2. Mount the C120-LK201-V1 Host Link Unit to the C200H and connect the XW2Z-200P-V Connecting Cables.

    1. The C200H CPU Unit and the computer cannot be connected using only a cable. An interface is always necessary. In either case, the Host Link communications mode is used.


PLC: Protected Task for CS1/CJ1


Question

Can individual tasks be protected on the CS1/CJ1-series Programmable Controllers?


Answer

Individual tasks can be protected when using a CS1/CJ1-series CPU Unit with unit Ver.2.0 or later and withCX-Programmer FA Integrated Tool Package Ver.4.0 or higher.


Single or multiple tasks (programs) can be password protected, preventing them from being read or modified, which makes it possible to prevent knowledge from being leaked about a specific task.


When using a Programmable Controller with unit version earlier than 2.0 or aCX-Programmer version lower than 4.0, individual tasks cannot be protected, so the entire program must be protected instead.


Duplicate Outputs Work


Question

How do duplicated outputs work in a step program area?


Answer

If the same bit is output twice from the same program, you will get the duplicated output warning regardless, but as long as the same bit is not output twice from the same step, the output from the active step will be executed correctly.


*"One step" refers to the ladder diagram area from one step instruction to the next step instruction.


Determine Internal Connections Manually


Question

How can I manually determine internal connections between COM terminals for Programmable Controller I/O Unit?


Answer

The "number of circuits" given in the I/O Unit specifications is the same as the number of commons. Refer to C200HX/HG/HE Operation Manual and CS1 Series Programmable Controller Operation Manual.


Notation Example

For information on specific common terminals wiring and configuration, refer to the terminal connection diagram in the same manuals.


PLC: Push-on and Push-off Alternating Bits


Question

What are push-on and push-off alternating bits?


Answer

The ladder program and data trace results are as follows:


Ladder Diagram

Programming: CS1/CJ1-series Programmable Controllers
Figure 1


Data Trace Results

Figure 2
CIO000000: Pushbutton switch (CIO 0.00)
CIO000200: Alternating output (CIO 2.00)


PLC: Difference Between Program Task and Program Section


Question

What is the difference between a program task and program section when using CX-Programmer FA Integrated Tool Package with CS1/CJ1-series Programmable Controllers?


Answer

Task programming is a feature of CS1/CJ1-series. Section division is a function of CX-Programmer. Therefore, Task programming cannot be done with C200H Programmable Controller or CQM1H Programmable Controller, but by using CX-Programmer, one program can be divided up into multiple sections even when using C200H or CQM1H.


What Is Task Programming?

A specific example follows:


A task is the smallest executable program unit.
For example, take the case of soft drink purification manufacturing. The process has three operating modes: fully automatic, partially automatic, and manual. And, each perating mode has the three processes: the mixing process, the stirring process, and the brewing process. First, the three operating modes are divided into three separate program tasks. The reason for dividing the operating modes into separate tasks is that only one of the three tasks will be selected and run. Dividing the modes into tasks allows the other two tasks to remain stopped, thereby reducing the CPU Unit cycle time.


Step I: Task Programming Example


What Are Program Sections?

A specific example follows:


Using program sections makes the ladder diagram more like a segmented picture story rather than once continuous novel without chapters. Continuing with the previous mentioned soft drink example, the three processes that exist in each perating mode, the mixing process, the stirring process, and the brewing process, can each be divided into an separate program section. The reason for dividing them is that it increases the readability of the ladder programming windows.
*By clicking on the desired section name in the project tree, the requested ladder programming window will be immediately displayed.


Step II: Program Section Example


Summary
Advantages of Using Task Programming

Reduces CPU Unit cycle time.


Advantages of Using Program Sections

Increases the readability of the ladder programming windows.


PLC: Program Flickering between Two Outputs


Question

Can I program flickering back-and-forth between two outputs when a switch is ON?


Answer

The following are the time chart and ladder programming for the operation specifications.


Time Chart

Figure 1
CIO 000000: Pushbutton switch (CIO 0.00)
CIO 000200: Alternating output A (CIO 2.00)
CIO 000201: Alternating output B (CIO 2.01)


After turning ON the pushbutton switch (CIO 0.00), the two outputs (CIO 2.00 and CIO 2.01) will alternate turning ON at intervals of T1 seconds, and remain ON for T2 seconds.


Ladder Program

Flicker Programming


Programming: CS1/CJ1-series Programmable Controllers
Figure 2


Output Switching Program


Programming: CS1/CJ1-series
Figure 3


PLC: Holding Area Bit and Keep Bit


Question

What is the difference between a Holding Area bit and a keep bit or a KEEP instruction?


Answer

With a SYSMAC Programmable Controllers, a Holding Area bit is a type of bit. There is no such bit as a keep bit. The correct term is the operand bit for a KEEP instruction. First, let's look at the KEEP instruction.



Figure 1


Basic Functions of the KEEP Instruction

In Figure 1, when the set input bit (CIO 0.00) is input as a pulse signal as shown in Figure 2, the output bit (CIO 3.00) specified for the operand of the KEEP instruction will remain ON until reset input bit (CIO 0.01) turns ON. By using the KEEP instruction in this way, even after the input signal turns OFF, the output bit status can be preserved in the state it was before the input signal turned OFF.



Figure 2
CIO000000: Set input bit (CIO 0.00)
CIO000001: Reset input bit (CIO 0.01)
CIO000300: Output bit (CIO 3.00)


Function of a Holding Area Bit

What happens if there is a power interruption while the output bit (CIO 3.00) shown in the time chart in Figure 2 is ON? If this happens, all of the output bits will be reset when power resumes. If you want to preserve the ON or OFF status for a bit during a momentary or extended power interruption, you can use a Holding Area bit, as shown in Figure 3 (H3.00), as the bit controlled by the KEEP instruction.



Figure 3


Summary
  1. With a SYSMAC Programmable Controllers, a Holding Area bit is a type of bit. There is no such bit as a keep bit. The correct term is the operand bit for a KEEP instruction.
  2. By using a Holding Area bit with KEEP instructions, SET/RESET instructions, or programming that holds the status, such as for a self-holding bit, the status of the system immediately preceding a power interruption can be restored when power resumes.

PLC: NC Terminal Connection


Question

What should be connected to the NC terminals shown in I/O Unit terminal connection diagrams?


Answer

NC is an abbreviation for "No Connection," and means that the terminal does not have an internal connection (unused terminal). Therefore, nothing should be connected to these terminals.


PLC: Same DM Address


Question

Can the same DM address be used for the first and third, or second and third operand in a math instruction?


Answer

Yes. As shown in Figure 1, in a differentiated program where processing is completed with a single scan by turning ON the add command bit (CIO 0.00), there is no problem if the first (or second) operand are the same as the third operand, but after processing, the augend data stored in D100 will be deleted. For easy debugging or software maintenance, it is recommended to use a different DM Area address for the third operand.


Programming: CS1/CJ1-series Programmable Controllers
Figure 1


Explanation of Figure 1

Initially, the value 123 (BCD) is stored in D100, but when add command bit (CIO 0.00) turns ON, the addition process given below is executing in a single scan, and the value stored in D100 will be changed from 123 to 246.


123 (D100) + 123 (constant) = 246 (D100)


Note:The instruction in Figure 1 will execute each cycle. So when you want to perform the operation A + B = C in realtime when the add command bit (CIO 0.00) is turned ON, the DM address of C must be different from that of A and B. If the same address is used, the result data will be updated as many times as the instruction is scanned causing an incorrect value to be stored in the third operand.


CX-One and CQM1H


Question

When I use the CX-Programmer FA Integrated Tool Package to write a differentiated instruction to CQM1H Programmable Controllers, it results in an error. Why?


Answer

As shown in diagram 1, only the CS/CJ-series CPU Units and CVM1/CV-series Programmable Controllers CPU Units can accept the differentiation option with input commands. With other models, use DIFU/DIFD, as shown in diagram 2.




PLC: Memory Card


Question

How are Memory Cards usually used with CS1/CJ1 Programmable Controllers?


Answer

The main applications of Memory Cards are as follows:


  1. Program files, data files, and parameter files can be saved to the Memory Card and then the files can be automatically transferred from the Memory Card to RAM in the CPU Unit when the power is turned ON. This allows for highly reliable use of ROM-based operation.
  2. By turning ON a bit in the Auxiliary Area while the ladder program is being executed, the entire program can be replaced. In this way, computer programs exceeding the total amount of memory available in the CPU Unit can be stored on the Memory Card. Then, programming required for different production lots or production model control can be loaded to the CPU Unit as necessary.
  3. Using the File Write command, data files can be transferred between the CPU Unit and a Memory Card while the Programmable Controllers are operating. By using this function, up-to-date production information and quality control data can be stored temporarily in the DM or EM Area and saved to the Memory Card as a single file with unique file names. The files can also be read to the DM or EM Area to restore the same information.

Also, the Memory Card can be removed even when power is being supplied to the CPU Unit, so data can be exchanged with personal computers or spreadsheet software while the Programmable Controllers are operating.


PLC: Monitoring a Ladder Diagram


Question

When monitoring a ladder diagram, sometimes the output does not turn ON even though the input condition is ON, or the output turns ON even though the input condition is OFF. What is the reason for this?


Answer

A ladder program in which the same output bit is controlled by two different instructions can cause this type of problem. Even if the input condition is ON for one instruction, the bit may have been turned OFF by another instruction somewhere else in the program. Also, if the OUT NOT instruction is used, the status of the input condition and the output bit will be reversed causing the same thing (though in this case the operation is normal).


The way output bits are displayed in CX-Programmer FA Integrated Tool Package depends somewhat on the version, but versions higher than 2.1 display input conditions in the same was as the SYSMAC Support Software (SSS).


Output Status Monitor Display

OUT NOT Status Monitor Display

CX-One: Bit Address


Question

What does it mean when the "I" or "Q" is displayed in front of a bit address in a ladder program in CX-Programmer FA Integrated Tool Package?


Answer

CX-Programmer Ver.2.0 or higher displays "I:" and "Q:" in front of addresses in a ladder diagram to help you differentiate between inputs and outputs when reading the ladder diagram.

Note:Programmable Controllers that do not have I/O tables (i.e., CQM1H and CPM2A) do not have this feature.


When an address used in a ladder programoperand is an I/O bit, and the address is allocated to a Basic I/O Unit or to a High-density I/O Unit classified as a Special I/O Unit in the I/O tables, then "I:" will be automatically added to in front of the address for real inputs, and "Q:" will be added to the front of the address for real outputs.


In CX-Programmer Ver.3.0 or higher, the "I:" and "Q:" in front of the addresses that are used to differentiate between inputs and outputs can be changed to "X:" and "Y:". The setting can be changed on the Ladder Diagram Tab Page (Tools - Options - Ladder Diagram).


PLC and PT Connection Cable


Question

Are there any cables available to connect the Programmable Controller (PLC) or the Programmable Terminal (PT) to a personal computer's USB port?


Answer

Yes. Use the D-sub to USB-serial conversion cable.


This cable can connect the Programmable Controller "SYSMAC", Programmable Terminal "NT/NS Series", or Programmable Relay "ZEN" to a personal computer's USB port.


Model Number
CS1W-CIF31
Compatible Software Applications

Software applications using the CX-Server or Fins Gateway to communicate with the Programmable Controller


The following software applications are also compatible.


CX-Programmer, CX-Simulator, CX-Protocol, CX-Motion
CX-Position, CX-Process, DeviceNet Configuration Tool
DAIKANYAMA 32, NS-Designer, Windows Version of NT Support Tool (NTST)

*There are Communications (COM) port limitations with the NT Support Tool.


ZEN Support Software (Ver.3.0 and later)

The following OMRON Programmable controllers, Programmable Terminals and Programmable Relays which are supported by the compatible software applications


Programmable Controller
CS/CJ Series, C Series (C200HS, C200HE/HG/HX, C200H/C1000H/2000H, CQM1, CPM1, CPM1A, CPM2A, SRM1, CQM1H, SPM2C), CVM1/CV Series
Programmable Terminal
NS Series, NT Series
Programmable Relay
ZEN
Connector specifications
Personal Computer side: USB (A plug connector, male)
Programmable Controller side: RS-232C (D-sub 9-pin, male)

* "Windows" is a registered trademark of Microsoft Corporation.


PLC: Non-Procedural Communications


Question

Can CS1/CJ1-series Serial Communication Units use non-procedural communications?


Answer

Yes, the latest Serial Communication Units can use non-procedural communications.
The TXDU and RXDU instructions for non-procedural communications can be used with CS1/CJ1-series Serial Communications Units with unit Ver.1.2 or later. In this case, the CPU Unit must be unit Ver.3.0 or later.


The TXDU and RXDU instructions for non-procedural communications can be used with CS1-series Serial Communications Boards with unit Ver.1.2 or later. The unit version of the CPU Unit is not a factor.


In previous configurations, non-procedural communications were only possible using the built-in RS-232C port on a CPU Unit using the TXD and RXD commands.