OMRON products are manufactured for use according to proper procedures
by a qualified operator and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this
manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
!DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury. Additionally, there may be severe property damage.
!WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury. Additionally, there may be severe property damage.
!CautionIndicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also
capitalized when it refers to an OMRON product, regardless of whether or not
it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON
products, often means “word” and is abbreviated “Wd” in documentation in
this sense.
The abbreviation “PLC” means Programmable Controller. “PC” is used, however, in some Programming Device displays to mean Programmable Controller.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission o
OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility
for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
The following headings appear in the left column of the manual to help you
locate different types of information.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1,2,3...1. Indicates lists of one sort or another, such as procedures, checklists, etc.
v
CJ Series
CJ2 CPU Units
CJ2H-CPU6@-EIP
CJ2H-CPU6@
CJ1-H CPU Units
CJ1H-CPU@@H-R
CJ1H-CPU@@H
CJ1G-CPU@@H
CJ1G-CPU@@P
(Loop CPU Units)
CJ1M CPU Units
CJ1M-CPU@@
CJ1 CPU Units
CJ1G-CPU@@
NSJ Series
NSJ Controllers
NSJ5-TQ@@(B)-G5D
NSJ5-SQ@@(B)-G5D
NSJ8-TV@@(B)-G5D
NSJ10-TV@@(B)-G5D
NSJ12-TS@@(B)-G5D
NSJ Controllers
NSJ5-TQ@@(B)-M3D
NSJ5-SQ@@(B)-M3D
NSJ8-TV@@(B)-M3D
CS Series
CS1-H CPU Units
CS1H-CPU@@H
CS1G-CPU@@H
CS1D CPU Units
CS1D CPU Units for
Duplex Systems
CS1D-CPU@@H
CS1D CPU Units for
Simplex Systems
CS1D-CPU@@S
CS1D Process-control CPU Units
CS1D-CPU@@P
CS1 CPU Units
CS1H-CPU@@(-V)
CS1G-CPU@@ (-V)
CP Series
CP1E CPU Units
CP1E-E@@D@-@*2
CP1E-N@@D@-@*3
CP1L CPU Units
CP1L-L @@D@-@
CP1L-M@@D@-@
CP1H CPU Units
CP1H-X@@D@-@
CP1H-XA@@D@-@
CP1H-Y@@DT-D
CP-series Expansion I/O Units
CP-series Expansion Units
CJ-series Basic I/O Units
CJ-series Special I/O Units
CJ-series CPU Bus Units
CJ-series Power Supply Units
NSJ-series Expansion Units
CS-series Basic I/O Units
CS-series Special I/O Units
CS-series CPU Bus Units
CS-series Power Supply Units
Note: A special Power Supply Unit
must be used for CS1D CPU Units.
CJ-series Special I/O Units*1
CJ-series CPU Bus Units*1
*1 Can only be used with the CP1H CPU unit.
*2 Indicated as "E-type" in some parts of this manual.
*3 Indicated as "N-type" in some parts of this manual.
This manual describes the C-series (Host Link) and FINS communications commands used with CS/
CJ-series and CP-series Programmable Controllers (PLCs) and NSJ Controllers, and includes the
sections described below.
Please read this manual and all related manuals listed in the following table and be sure you understand information provided before attempting to design or implement communications for CS/CJ-series
or CP-series Programmable Controllers (PLCs) or NSJ Controllers.
W483Describes each programming instruction in detail.
W463Provides an overview of the CX-One FA Inte-
grated Tool Package and CX-One installation procedures.
W464Describes setting and monitoring networks.
W446Describes operating procedures for the CX-Pro-
grammer Support Software running on a Windows computer.
W447Describes specifications and procedures required
to use function blocks/structured text.
W469Describes specifications and procedures required
to use SFC programming functions.
Section 1 introduces the C-mode commands and FINS commands, and explains the relationship
between them.
Section 2 provides an overview of C-mode commands.
Section 3 provides an overview of FINS commands.
Section 4 provides detailed descriptions of the C-mode commands.
Section 5 provides detailed descriptions of the FINS commands.
!WARNING Failure to read and understand the information provided in this manual may result in per-
sonal injury or death, damage to the product, or product failure. Please read each section
in its entirety and be sure you understand the information provided in the section and
related sections before attempting any of the procedures or operations given.
xi
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a
period of one year (or other period if specified) from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE
PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR
INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES,
LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS,
WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT
LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which
liability is asserted.
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS
REGARDING THE PRODUCTS UNLESS OMRON'S ANALYSIS CONFIRMS THAT THE PRODUCTS
WERE PROPERLY HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO
CONTAMINATION, ABUSE, MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.
xii
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the
combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying
ratings and limitations of use that apply to the products. This information by itself is not sufficient for a
complete determination of the suitability of the products in combination with the end product, machine,
system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not
intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses
listed may be suitable for the products:
• Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or
uses not described in this manual.
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical
equipment, amusement machines, vehicles, safety equipment, and installations subject to separate
industry or government regulations.
• Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED
FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any
consequence thereof.
xiii
Disclaimers
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on improvements and other
reasons.
It is our practice to change model numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the products may be changed
without any notice. When in doubt, special model numbers may be assigned to fix or establish key
specifications for your application on your request. Please consult with your OMRON representative at any
time to confirm actual specifications of purchased products.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when
tolerances are shown.
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in determining suitability and does
not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must
correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and
Limitations of Liability.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
xiv
PRECAUTIONS
This section provides general precautions for using the CS/CJ-series Programmable Controllers (PLCs) and related devices.
The information contained in this section is important for the safe and reliable application of Programmable
Controllers. You must read this section and understand the information contained before attempting to set up or
operate a PLC system.
This manual is intended for the following personnel, who must also have
knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
2General Precautions
The user must operate the product according to the performance specifications described in the operation manuals.
Before using the product under conditions which are not described in the
manual or applying the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide
the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be
sure to read this manual before attempting to use the Unit and keep this manual close at hand for reference during operation.
!WARNING It is extremely important that a PLC and all PLC Units be used for the speci-
fied purpose and under the specified conditions, especially in applications that
can directly or indirectly affect human life. You must consult with your OMRON
representative before applying a PLC System to the above-mentioned applications.
3Safety Precautions
!WARNING The CPU Unit refreshes I/O even when the program is stopped (i.e., even in
PROGRAM mode). Confirm safety thoroughly in advance before changing the
status of any part of memory allocated to I/O Units, Special I/O Units, or CPU
Bus Units. Any changes to the data allocated to any Unit may result in unexpected operation of the loads connected to the Unit. Any of the following operation may result in changes to memory status.
• Transferring I/O memory data to the CPU Unit from a Programming
Device.
• Changing present values in memory from a Programming Device.
• Force-setting/-resetting bits from a Programming Device.
• Transferring I/O memory files from a Memory Card or EM file memory to
the CPU Unit.
• Transferring I/O memory from a host computer or from another PLC on a
network.
xvi
!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
Safety Precautions3
!WARNING Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
!WARNING Do not attempt to disassemble, repair, or modify any Units. Any attempt to do
so may result in malfunction, fire, or electric shock.
!WARNING Provide safety measures in external circuits (i.e., not in the Programmable
Controller), including the following items, to ensure safety in the system if an
abnormality occurs due to malfunction of the PLC or another external factor
affecting the PLC operation. Not doing so may result in serious accidents.
• Emergency stop circuits, interlock circuits, limit circuits, and similar safety
measures must be provided in external control circuits.
• The PLC will turn OFF all outputs when its self-diagnosis function detects
any error or when a severe failure alarm (FALS) instruction is executed.
As a countermeasure for such errors, external safety measures must be
provided to ensure safety in the system.
• The PLC outputs may remain ON or OFF due to deposition or burning of
the output relays or destruction of the output transistors. As a countermeasure for such problems, external safety measures must be provided
to ensure safety in the system.
• When the 24-V-DC output (service power supply to the PLC) is overloaded or short-circuited, the voltage may drop and result in the outputs
being turned OFF. As a countermeasure for such problems, external
safety measures must be provided to ensure safety in the system.
!Caution Confirm safety before transferring data files stored in the file memory (Mem-
ory Card or EM file memory) to the I/O area (CIO) of the CPU Unit using a
peripheral tool. Otherwise, the devices connected to the output unit may malfunction regardless of the operation mode of the CPU Unit.
!Caution Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal lines,
momentary power interruptions, or other causes. Serious accidents may
result from abnormal operation if proper measures are not provided.
!Caution Execute online edit only after confirming that no adverse effects will be
caused by extending the cycle time. Otherwise, the input signals may not be
readable.
!Caution The CS1-H, CJ1-H, CJ1M, or CS1D CPU Unit automatically backs up the
user program and parameter data to flash memory when these are written to
the CPU Unit. I/O memory (including the DM, EM, and HR Areas), however, is
not written to flash memory. The DM, EM, and HR Areas can be held during
power interruptions with a battery. If there is a battery error, the contents of
these areas may not be accurate after a power interruption. If the contents of
the DM, EM, and HR Areas are used to control external outputs, prevent inappropriate outputs from being made whenever the Battery Error Flag (A402.04)
is ON.
!Caution Confirm safety at the destination node before transferring a program to
another node or changing contents of the I/O memory area. Doing either of
these without confirming safety may result in injury.
xvii
Operating Environment Precautions4
!Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
torque specified in the operation manual. Loose screws may result in burning
or malfunction.
!Caution Do not touch the Power Supply Unit when power is being supplied or immedi-
ately after the power supply is turned OFF. The Power Supply Unit will be hot
and you may be burned.
!Caution Be careful when connecting personal computers or other peripheral devices
to a PLC to which is mounted a non-insulated Unit (CS1W-CLK12/52(-V1) or
CS1W-ETN01) connected to an external power supply. A short-circuit will be
created if the 24 V side of the external power supply is grounded and the 0 V
side of the peripheral device is grounded. When connecting a peripheral
device to this type of PLC, either ground the 0 V side of the external power
supply or do not ground the external power supply at all.
4Operating Environment Precautions
!Caution Do not operate the control system in the following places:
• Locations subject to direct sunlight.
• Locations subject to temperatures or humidity outside the range specified
in the specifications.
• Locations subject to condensation as the result of severe changes in temperature.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salts.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
!Caution Take appropriate and sufficient countermeasures when installing systems in
the following locations:
• Locations subject to static electricity or other forms of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radioactivity.
• Locations close to power supplies.
!Caution The operating environment of the PLC System can have a large effect on the
longevity and reliability of the system. Improper operating environments can
lead to malfunction, failure, and other unforeseeable problems with the PLC
System. Be sure that the operating environment is within the specified conditions at installation and remains within the specified conditions during the life
of the system.
xviii
Application Precautions5
5Application Precautions
Observe the following precautions when using the PLC System.
• You must use the CX-Programmer (programming software that runs on
Windows) if you need to program more than one task. A Programming
Console can be used to program only one cyclic task plus interrupt tasks.
A Programming Console can, however, be used to edit multitask programs originally created with the CX-Programmer.
!WARNING Always heed these precautions. Failure to abide by the following precautions
could lead to serious or possibly fatal injury.
• Always connect to a class-3 ground (to 100 Ω or less) when installing the
Units. Not connecting to a class-3 ground may result in electric shock.
• A class-3 ground (to 100 Ω or less) must be installed when connecting the
GR and LG terminals on the Power Supply Unit.
• Always turn OFF the power supply to the PLC before attempting any of
the following. Not turning OFF the power supply may result in malfunction
or electric shock.
• Mounting or dismounting Power Supply Units, I/O Units, CPU Units, Inner Boards, or any other Units.
• Assembling the Units.
• Setting DIP switches or rotary switches.
• Connecting cables or wiring the system.
• Connecting or disconnecting the connectors.
!Caution Failure to abide by the following precautions could lead to faulty operation of
the PLC or the system, or could damage the PLC or PLC Units. Always heed
these precautions.
• The user program and parameter area data in the CS1-H, CS1D, CJ1-H,
and CJ1M CPU Units are backed up in the built-in flash memory. The
BKUP indicator will light on the front of the CPU Unit when the backup
operation is in progress. Do not turn OFF the power supply to the CPU
Unit when the BKUP indicator is lit. The data will not be backed up if
power is turned OFF.
• When using a CS-series CS1 CPU Unit for the first time, install the
CS1W-BAT01 Battery provided with the Unit and clear all memory areas
from a Programming Device before starting to program. (Not required for
CS1-H, CJ1, CJ1-H, CJ1M, or CS1D CPU Units.)
• When using the internal clock for a CS-series CS1 CPU Unit, turn ON
power after installing the battery and set the clock from a Programming
Device or using the DATE(735) instruction. The clock will not start until the
time has been set. (Not required for CS1-H, CJ1, CJ1-H, CJ1M, or CS1D
CPU Units.)
• When using a CS1-H, CJ1, CJ1-H, CJ1M, or CS1D CPU Unit, the PLC
Setup is set to specify using the mode set on the Programming Console,
and a Programming Console is not connected, the CPU Unit will start in
RUN mode. This is the default setting in the PLC Setup. A CS1 CPU Unit
will start in PROGRAM mode under the same conditions.
xix
Application Precautions5
• When creating an AUTOEXEC.IOM file from a Programming Device (a
Programming Console or the CX-Programmer) to automatically transfer
data at startup, set the first write address to D20000 and be sure that the
size of data written does not exceed the size of the DM Area. When the
data file is read from the Memory Card at startup, data will be written in
the CPU Unit starting at D20000 even if another address was set when
the AUTOEXEC.IOM file was created. Also, if the DM Area is exceeded
(which is possible when the CX-Programmer is used), the remaining data
will be written to the EM Area.
• Always turn ON power to the PLC before turning ON power to the control
system. If the PLC power supply is turned ON after the control power supply, temporary errors may result in control system signals because the
output terminals on DC Output Units and other Units will momentarily turn
ON when power is turned ON to the PLC.
• Fail-safe measures must be taken by the customer to ensure safety in the
event that outputs from Output Units remain ON as a result of internal circuit failures, which can occur in relays, transistors, and other elements.
• Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal
lines, momentary power interruptions, or other causes.
• Interlock circuits, limit circuits, and similar safety measures in external circuits (i.e., not in the Programmable Controller) must be provided by the
customer.
• Do not turn OFF the power supply to the PLC when data is being transferred. In particular, do not turn OFF the power supply when reading or
writing a Memory Card. Also, do not remove the Memory Card when the
BUSY indicator is lit. To remove a Memory Card, first press the memory
card power supply switch and then wait for the BUSY indicator to go out
before removing the Memory Card.
• If the I/O Hold Bit is turned ON, the outputs from the PLC will not be
turned OFF and will maintain their previous status when the PLC is
switched from RUN or MONITOR mode to PROGRAM mode. Make sure
that the external loads will not produce dangerous conditions when this
occurs. (When operation stops for a fatal error, including those produced
with the FALS(007) instruction, all outputs from Output Unit will be turned
OFF and only the internal output status will be maintained.)
• The contents of the DM, EM, and HR Areas in the CPU Unit are backed
up by a Battery. If the Battery voltage drops, this data may be lost. Provide
countermeasures in the program using the Battery Error Flag (A402.04)
to re-initialize data or take other actions if the Battery voltage drops.
• When supplying power at 200 to 240 VAC for CS-series PLCs, always
remove the metal jumper from the voltage selector terminals. The product
will be destroyed if 200 to 240 VAC is supplied while the metal jumper is
attached.
• Always use the power supply voltages specified in the operation manuals.
An incorrect voltage may result in malfunction or burning.
• Take appropriate measures to ensure that the specified power with the
rated voltage and frequency is supplied. Be particularly careful in places
where the power supply is unstable. An incorrect power supply may result
in malfunction.
• Install external breakers and take other safety measures against short-circuiting in external wiring. Insufficient safety measures against short-circuiting may result in burning.
xx
Application Precautions5
• Do not apply voltages to the Input Units in excess of the rated input voltage. Excess voltages may result in burning.
• Do not apply voltages or connect loads to the Output Units in excess of
the maximum switching capacity. Excess voltage or loads may result in
burning.
• Separate the line ground terminal (LG) from the functional ground terminal (GR) on the Power Supply Unit before performing withstand voltage
tests or insulation resistance tests. Not doing so may result in burning.
• Install the Units properly as specified in the operation manuals. Improper
installation of the Units may result in malfunction.
• With CS-series PLCs, be sure that all the Unit and Backplane mounting
screws are tightened to the torque specified in the relevant manuals.
Incorrect tightening torque may result in malfunction.
• Be sure that all the mounting screws, terminal screws, and cable connector screws are tightened to the torque specified in the relevant manuals.
Incorrect tightening torque may result in malfunction.
• Leave the label attached to the Unit when wiring. Removing the label may
result in malfunction if foreign matter enters the Unit.
• Remove the label after the completion of wiring to ensure proper heat dissipation. Leaving the label attached may result in malfunction.
• Use crimp terminals for wiring. Do not connect bare stranded wires
directly to terminals. Connection of bare stranded wires may result in
burning.
• Wire all connections correctly.
• Double-check all wiring and switch settings before turning ON the power
supply. Incorrect wiring may result in burning.
• Mount Units only after checking terminal blocks and connectors completely.
• Be sure that the terminal blocks, Memory Units, expansion cables, and
other items with locking devices are properly locked into place. Improper
locking may result in malfunction.
• Check switch settings, the contents of the DM Area, and other preparations before starting operation. Starting operation without the proper settings or data may result in an unexpected operation.
• Check the user program for proper execution before actually running it on
the Unit. Not checking the program may result in an unexpected operation.
• Confirm that no adverse effect will occur in the system before attempting
any of the following. Not doing so may result in an unexpected operation.
• Changing the operating mode of the PLC (including the setting of the
startup operating mode).
• Force-setting/force-resetting any bit in memory.
• Changing the present value of any word or any set value in memory.
• Do not pull on the cables or bend the cables beyond their natural limit.
Doing either of these may break the cables.
• Do not place objects on top of the cables or other wiring lines. Doing so
may break the cables.
• Do not use commercially available RS-232C personal computer cables.
Always use the special cables listed in this manual or make cables
xxi
Application Precautions5
according to manual specifications. Using commercially available cables
may damage the external devices or CPU Unit.
• Never connect pin 6 (5-V power supply) on the RS-232C port on the CPU
Unit to any device other than an NT-AL001 or CJ1W-CIF11 Adapter. The
external device or the CPU Unit may be damaged.
• When replacing parts, be sure to confirm that the rating of a new part is
correct. Not doing so may result in malfunction or burning.
• Before touching a Unit, be sure to first touch a grounded metallic object in
order to discharge any static built-up. Not doing so may result in malfunction or damage.
• When transporting or storing circuit boards, cover them in antistatic material to protect them from static electricity and maintain the proper storage
temperature to protect the LSIs, ICs, and other components.
• Do not touch circuit boards or the components mounted to them with your
bare hands. There are sharp leads and other parts on the boards that
may cause injury if handled improperly.
• Do not short the battery terminals or charge, disassemble, heat, or incinerate the battery. Do not subject the battery to strong shocks. Doing any
of these may result in leakage, rupture, heat generation, or ignition of the
battery. Dispose of any battery that has been dropped on the floor or otherwise subjected to excessive shock. Batteries that have been subjected
to shock may leak if they are used.
• UL standards required that batteries be replaced only by experienced
technicians. Do not allow unqualified persons to replace batteries.
• Dispose of the product and batteries according to local ordinances as
they apply. Have qualified specialists properly dispose of used batteries
as industrial waste.
• With a CJ-series PLC, the sliders on the tops and bottoms of the Power
Supply Unit, CPU Unit, I/O Units, Special I/O Units, and CPU Bus Units
must be completely locked (until they click into place). The Unit may not
operate properly if the sliders are not locked in place.
• With a CJ-series PLC, always connect the End Plate to the Unit on the
right end of the PLC. The PLC will not operate properly without the End
Plate.
• Unexpected operation may result if inappropriate data link tables or
parameters are set. Even if appropriate data link tables and parameters
have been set, confirm that the controlled system will not be adversely
affected before starting or stopping data links.
• CPU Bus Units will be restarted when routing tables are transferred from
a Programming Device to the CPU Unit. Restarting these Units is required
to read and enable the new routing tables. Confirm that the system will
not be adversely affected before allowing the CPU Bus Units to be reset.
xxii
SECTION 1
Introduction
This section introduces the C-mode commands and FINS commands, and explains the relationship between them.
Communications Commands Addressed to CS/CJ/CP/NSJ-series Units
A CS/CJ/CP-series CPU Unit or NSJ Controller can receive the following
communications commands.
C-mode commands via Host Link
Communications commands
FINS commands
C-mode CommandsC-mode commands are specialized Host Link communications commands.
They are issued by a host computer and sent to a CPU Unit. The devices that
can be connected for serial communications are the CPU Unit, a Serial Communications Unit, and a Serial Communications Board.
FINS CommandsFINS commands are message service communications commands. They do
not depend on a particular transmission path. They can be used for communications on various networks (Controller Link, Ethernet, etc.) and for serial
communications (Host Link). They can be issued from a CPU Unit, Special I/O
Unit, or host computer, and they can also be sent to any of these. The specific
commands that can be sent depend on the destination.
This manual explains commands sent to CS/CJ/CP-series CPU Units and
NSJ Controllers, when the commands are issued from a CPU Unit or a host
computer connected by Host Link.
Via CMND(490)/SEND(090)/RECV(098)
Via Host Link
Note When the source of the commands is a CPU Unit, the FINS commands are
sent by means of CMND(490)/SEND(090)/RECV(098). When the source is a
host computer, the FINS commands are issued using Host Link protocol.
1-2C-mode Commands
The following table lists the C-mode (Host Link) commands. For details, refer
to SECTION 4 C-mode Commands.
TypeHeader
I/O memory
reading
code
RRCIO AREA READ Reads the specified number of words beginning with the
RLLR AREA READReads the specified number of words beginning with the
RHHR AREA READReads the specified number of words beginning with the
RCTIMER/COUNTER PV READReads the specified number of words of the timer/counter
RGTIMER/COUNTER STATUS
READ
RDDM AREA READReads the specified number of words beginning with the
RJAR AREA READReads the specified number of words beginning with the
REEM AREA READReads the specified number of words beginning with the
NameFunction
designated CIO word.
designated LR word.
designated HR word.
PV beginning with the designated word.
Reads the specified number of words of the timer/counter
status beginning with the designated word.
designated DM word.
designated AR word.
designated EM word.
2
C-mode CommandsSection 1-2
TypeHeader
I/O memory
writing
Timer/counter SV
reading
Timer/counter SV
changing
CPU Unit status MSSTATUS READReads the CPU Unit’s operating conditions (operating
Forced
set/reset
PLC model code
reading
TestingTSTESTReturns, just as it is, a single block that was sent from the
Program area
accessing
code
WRCIO AREA WRITE Writes the specified data in word units beginning with the
WLLR AREA WRITEWrites the specified data in word units beginning with the
WHHR AREA WRITEWrites the specified data in word units beginning with the
WCTIMER/COUNTER PV WRITE Writes the specified timer/counter PV data in word units
WDDM AREA WRITEWrites the specified data in word units beginning with the
WJAR AREA WRITEWrites the specified data in word units beginning with the
WEEM AREA WRITEWrites the specified data in word units beginning with the
R#TIMER/COUNTER SV READ 1Reads in four digits BCD the constant SV that is written as
R$TIMER/COUNTER SV READ 2Finds the specified timer/counter instruction, beginning
R%TIMER/COUNTER SV READ 3Finds the specified timer/counter instruction, beginning
W#TIMER/COUNTER SV
CHANGE 1
W$TIMER/COUNTER SV
CHANGE 2
W%TIMER/COUNTER SV
CHANGE 3
SCSTATUS CHANGEChanges the CPU Unit’s operating mode.
MFERROR READReads the CPU Unit’s error information (i.e., all fatal or
KSFORCED SETForcibly sets one designated bit.
KRFORCED RESETForcibly resets one designated bit.
FKMULTIPLE FORCED
SET/RESET
KCFORCED SET/RESET CAN-
CEL
MMPLC MODEL READReads the model code of the CPU Unit.
RPPROGRAM READReads, in one batch, the contents of the CPU Unit’s user
WPPROGRAM WRITEWrites into the CPU Unit’s user program area the
NameFunction
designated CIO word.
designated LR word.
designated HR word.
beginning with the designated word.
designated DM word.
designated AR word.
designated EM word.
an operand of the designated timer/counter instruction.
with the designated program address, and reads the constant SV in four digits or the word in which the SV is
stored.
with the designated program address, and reads the constant SV in four digits (BCD) or the word in which the SV
is stored.
Changes the SV of the specified timer/counter instruction
to a new constant SV.
Finds the specified timer/counter instruction, beginning
with the designated program address in the user program,
and changes the constant SV in four digits (BCD) or the
word in which the SV is stored to a new constant SV or
storage word.
Finds the specified timer/counter instruction, beginning
with the designated program address in the user program,
and changes the constant SV in four digits (BCD) or the
word in which the SV is stored to a new constant SV or
storage word.
machine language (object) sent from the host computer.
3
FINS CommandsSection 1-3
TypeHeader
I/O table creationMII/O TABLE CREATECreates an I/O table with the contents of the actual I/O
I/O memory area
registration and
reading
Host Link communications
processing
code
QQMRREGISTER I/O MEMORYRegisters the I/O memory words or bits that are to be
QQIRREAD I/O MEMORYReads the registered I/O memory words/bits all at once.
XZABORT (command only)Aborts the operation being performed by a Host Link com-
**INITIALIZE (command only)Initializes the transfer control procedures for all Host Link
ICUndefined command
(response only)
NameFunction
configuration.
read.
mand, and then returns to the initial status.
Units.
This is the response when the command header code
cannot be decoded.
1-3FINS Commands
The following table lists the FINS commands. For details, refer to SECTION 5
FINS Commands.
TypeCommand
I/O memory area
access
Parameter area
access
Program area
access
Operating mode
changes
Machine configuration reading
Status reading0601CPU UNIT STATUS READReads the status of the CPU Unit.
Time data access0701CLOCK READReads the present year, month, date,
code
MRSR
0101MEMORY AREA READReads the contents of consecutive I/O mem-
0102MEMORY AREA WRITE (See
note.)
0103MEMORY AREA FILL (See note.)Writes the same data to the specified range
0104MULTIPLE MEMORY AREA READ Reads the contents of specified non-consec-
0105MEMORY AREA TRANSFER (See
note.)
0201PARAMETER AREA READReads the contents of consecutive parame-
0202PARAMETER AREA WRITE (See
note.)
0203PARAMETER AREA FILL (CLEAR)
(See note.)
0306PROGRAM AREA READReads the UM (User Memory) area.
0307PROGRAM AREA WRITE (See
note.)
0308PROGRAM AREA CLEAR (See
note.)
0401RUN (See note.)Changes the CPU Unit’s operating mode to
0402STOP (See note.)Changes the CPU Unit’s operating mode to
0501CPU UNIT DATA READReads CPU Unit data.
0502CONNECTION DATA READReads the model numbers of the device cor-
0620CYCLE TIME READReads the maximum, minimum, and average
0702CLOCK WRITE (See note.)Changes the present year, month, date,
NameFunction
ory area words.
Writes the contents of consecutive I/O mem-
ory area words.
of I/O memory area words.
utive I/O memory area words.
Copies the contents of consecutive I/O mem-
ory area words to another I/O memory area.
ter area words.
Writes the contents of consecutive parame-
ter area words.
Clears the specified range of parameter area
words.
Writes to the UM (User Memory) area.
Clears a specified range of the UM (User
Memory) area.
RUN or MONITOR.
PROGRAM.
responding to addresses.
cycle time.
minute, second, and day of the week.
minute, second, or day of the week.
4
FINS CommandsSection 1-3
TypeCommand
Message display0920MESSAGE READ/CLEARReads and clears messages, and reads
Access rights0C01ACCESS RIGHT ACQUIRE (See
Error log2101ERROR CLEAR (See note.)Clears errors or error messages.
FINS write access
log
File memory2201FILE NAME READReads file device data.
Debugging2301FORCED SET/RESET (See note.) Force-sets or force-resets bits, or releases
code
MRSR
note.)
0C02ACCESS RIGHT FORCED
ACQUIRE
0C03ACCESS RIGHT RELEASEReleases the access right that has been
2102ERROR LOG READReads the error log.
2103ERROR LOG CLEAR (See note.)Clears all error log records.
2140FINS WRITE ACCESS LOG READ The CPU Unit automatically keeps a log of
2141FINS WRITE ACCESS LOG
CLEAR (See note.)
2202SINGLE FILE READReads a specified length of file data from a
2203SINGLE FILE WRITE (See note.)Writes a specified length of file data from a
2204FILE MEMORY FORMAT (See
note.)
2205FILE DELETE (See note.)Deletes specified files stored in the file
2207FILE COPY (See note.)Copies files from one file device to another
2208FILE NAME CHANGE (See note.)Changes a file name.
220AMEMORY AREA–FILE TRANSFER
(See note.)
220BPARAMETER AREA–FILE TRANS-
FER (See note.)
220CPROGRAM AREA–FILE TRANS-
FER (See note.)
2215DIRECTORY CREATE/DELETE
(See note.)
2220MEMORY CASSETTE TRANS-
FER (CP1H/CP1L CPU Units only)
2302FORCED SET/RESET CANCEL
(See note.)
NameFunction
FAL/FALS messages.
Acquires the access right as long as no other
device holds it.
Acquires the access right even if another
device already holds it.
acquire.
any access for FINS write commands. This
command reads this log.
Clears the FINS write access log.
specified position within a single file.
specified position within a single file.
Formats (initializes) the file device.
device.
file device in the same system.
Transfers or compares data between the I/O
memory area and the file device.
Transfers or compares data between the
parameter area and the file device.
Transfers or compares data between the UM
(User Memory) area and the file device.
Creates or deletes a directory.
Transfers and verifies data between a Memory Cassette and the CPU Unit.
force-set status.
Cancels all bits that have been force-set or
force-reset.
Note These commands will not be accepted and an end code of 2102 hex (cannot
write due to protection) will be returned if the Write Protection from FINSCommands Sent to CPU Units via Networks option is selected in the PLC
Setup for a CS/CJ-series CPU Unit with unit version 2.0 or later, for a CPseries CPU Unit, or for an NSJ Controller.
5
FINS CommandsSection 1-3
6
Overview of C-mode Commands
This section provides an overview of C-mode (Host Link) commands.
C-mode (Host Link) commands form a command/response system for serial
communications (Host Link Mode) to perform various control operations
between a CPU Unit and a host computer directly connected to it. These
operations include reading from and writing to I/O memory, changing operating modes, executing forced set and forced reset operations, and so on.
C-mode command
Response
C-mode command
Response
Note1. There are two Host Link formats: the 1:N Host Link (with N ≥ 1) and the 1:1
Host Link.
• The 1:1 Host Link is the earlier Host Link format supported by C-series
PLCs, such as the C200H, C1000H, and C2000H.
• The built-in peripheral and RS-232C ports of CS/CJ-series CPU Units,
built-in serial ports of N-type CP1E CPU Units, serial port C on NSJ
Controllers, and serial ports 1 and 2 on the Option Board for CP-series
CPU Units support only the 1:N Host Link format. When a Serial Communications Board or Unit (version 1.2 or later) is being used, a 1:1
Host Link program created for a C-series PLC (C200H/C1000H/
C2000H) can be reused by selecting the Host Link 1:1 format.
In this manual, the term “Host Link” generally indicates the 1:N Host Link.
2. Unlike FINS commands, C-mode commands can only be addressed to a
CPU Unit, and they cannot be used for message service outside of the local network. They cannot be used for functions such as file operations.
C-mode (Host Link) commands can be sent from a host computer connected
to a CS/CJ-series Host Link Unit. Up to 32 PLCs (Host Link Units) can be connected to a single host computer. For identification, each Host Link Unit is
assigned a unit number from 0 to 31.
The length of a single unit of a command or response exchange is called a
“frame.” A single frame contains a maximum of 131 characters of data. Characters are sent and received as ASCII.
Note For a CS/CJ-series PLC, a “Host Link Unit” can be the CPU Unit, a Serial
Communications Unit, or a Serial Communications Board.
A maximum of 30 words of data can be transferred for the first command
frame and a maximum of 31 words of data can be transferred for other command frames when reading or writing word data in I/O memory. When reading/writing more than 30 words of data, the data transfer will be processed in
multiple transmissions, with 30 words in the first and up to 31 words in each of
8
Loading...
+ 237 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.