RS Automation X8 Series User manual

Catalog Number(s): X8-M14DDT, X8-M16DDR,
X8-M32DDT
X8 Instruction Manual
Reference Manual

Important User Information
Solid state equipment has operational characteristics differing from those of electromechanical equipment. Because of this difference,
and also because of the wide variety of uses for solid state equipment, all persons responsible for applying this equipment must satisfy
themselves that each intended application of this equipment is acceptable.
In no event will RS Automation Co., Ltd. be responsible or liable for indirect or consequential damages resulting from the use or
application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements
associated with any particular installation, RS Automation Co., Ltd. cannot assume responsibility or liability for actual use based on the
examples and diagrams.
No patent liability is assumed by RS Automation Co., Ltd. with respect to use of information, circuits, equipment, or software described in
this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of RS Automation Co., Ltd. is prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
WARNING
Identifies information about practices or circumstances that can cause an explosion in a hazardous environment,
which may lead to personal injury or death, property damage, or economic loss.
IMPORTANT
Identifies information that is critical for successful application and understanding of the product.
ATTENTION
Identifies information about practices or circumstances that can lead to personal injury or death, property damage,
or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.

X8 Instruction Set Reference Manual
Preface
Read this preface to familiarize yourself with the rest of the manual.
Who Should Use this
Manual
This manual is intended for engineers or technicians directly involved in the
programming of the
X8 series PLC
, and programmers directly involved in the
operation, field maintenance, and integration of the system with the
X8 series
PLC
.
If you do not have a basic understanding of the
X8 series PLC
, contact your
local RS Automation sales representative before using this product, for
information on available training courses.
How to Use This Manual
Table for Instruction Setting
This manual uses the following table for parameter description.
Related Documents
The following documents contain additional information concerning related X8
series PLC.
http://www.rsautomation.biz.
Table 0.1 Table for instruction Setting
Symbol
Instruction Name No
Description Examine if set
Parameter Examine Bit 3 of word 0 in the Slot 3
ON : True , Off : False
Initial Value
Applicable Mode
Others
X 1. 3. 0.0
Description Manual Name Publication
X8 Series PLC installation X8 Series PLC Installataion Instuructions X8-IN001A
X8 IO module X8 Base (CPU) module. X8 Series PLC User Manual X8-UM001A

X8 Instruction Set Reference Manual
2
Safety Instructions
Please read this manual and the related documentation thoroughly and familiarize
yourself with the directions before installing, operating, performing inspection and
preventive maintenance. Make sure to follow the directions correctly to ensure
normal operation of the product and your safety.
Environment and Enclosure
ATTENTION
ATTENTION
This equipment is intended for use in a Pollution Degree 2
industrial environment, in overvoltage Category II applications (as
defined in IEC 60664-1), at altitudes up to 2000 m (6562 ft)
without derating.
This equipment is considered Group 1, Class A industrial
equipment according to IEC/CISPR 11.Without appropriate
precautions, there may be difficulties with electromagnetic
compatibility in residential and other environments due to
conducted and radiated disturbances.
It must be mounted within an enclosure that is suitably designed
for those specific environmental conditions that will be present
and appropriately designed to prevent personal injury resulting
from accessibility to live parts. The enclosure must have suitable
flame-retardant properties to prevent or minimize the spread of
flame, complying with a flame spread rating of 5VA, V2, V1, V0
(or equivalent) if non-metallic. The interior of the enclosure must
be accessible only by the use of a tool. Subsequent sections of
this publication may contain additional information regarding
specific enclosure type ratings that are required to comply with
certain product safety certifications.
NEMA Standard 250 and IEC 60529, as applicable, for
explanations of the degrees of protection provided by different
types of enclosure.

X8 Instruction Set Reference Manual
3
Preventing Electrostatic
Discharge
This equipment is sensitive to electrostatic discharge, which can cause internal
damage and affect normal operation.
Follow these guidelines when you handle this equipment.
WORNING
If you connect or disconnect the serial cable with power applied
to this module or the serial device on the other end of the cable,
an electrical arc can occur. This could cause an explosion in
hazardous location installations. Be sure that power is removed
or the area is nonhazardous before proceeding.
The local programming terminal port is intended for temporary
use only and must not be connected or disconnected unless the
area is assured to be nonhazardous.
The USB port is intended for temporary local programming
purpose only and not intended for permanent connection. If you
connect or disconnect the USB cable with power applied to this
module or any device on the USB network, an electrical arc can
occur. This could cause an explosion in hazardous location
installation. Be sure that power is removed or the area in
nonhazardous before proceeding.
Exposure to some chemicals may degrade the sealing properties
of materials used in the Relays. It is recommended that the User
periodically inspect these devices for any degradation of
properties and replace the module if degradation is found.
If you insert or remove the plug-in module while main power is
on, an electrical arc can occur. This could cause an explosion in
hazardous location installation. Be sure that power is removed or
the area is nonhazardous before proceeding.
When you connect or disconnect the Removable Terminal Block
(RTB) with field side power applied, an electrical arc can occur.
This could cause an explosion in hazardous location installations.
Be sure that power is removed or the area is nonhazardous
before proceeding.

X8 Instruction Set Reference Manual
4
ATTENTION
ATTENTION
Touch a grounded object to discharge potential static.
Wear an approved grounding wrist strap.
Do not touch connectors or pins on component boards.
Do not touch circuit components inside the equipment.
Use a static-safe workstation, if available.
Store the equipment in appropriate static-safe packaging when
not in use.
The USB is not to exceed 3.0 m (9.84 ft).
Do not wire more than 2 conductors on any single terminal.
Do not remove the Removable Terminal Block (RTB) until power is
removed.
Electrostatic discharge can damage semiconductor devices inside
the module. Do not touch the connector pins or other sensitive
area.
To comply with the CE Low Voltage Directive (LVD), this
equipment must be powered from a source compliant with the
following: Safety Extra Low Voltage (SELV) or Protected Extra Low
Voltage (PELV).
To comply with UL restrictions, this equipment must be powered
from a Class 2 source.
Do not remove the protective debris strips until after the
controller and all other equipment in the panel near the module
are mounted and wired. Remove strips before operating the
controller. Failure to remove strips before operating can cause
overheating.
Be careful when stripping wires. Wire fragments that fall into the
controller could cause damage. Once wiring is complete, make
sure the controller is free of all metal fragments.

Preface
Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
How to Use This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table for Instruction Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Related Documents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Safety Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Environment and Enclosure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Preventing Electrostatic Discharge. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 1 IO Configuration
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Embedded I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Expantion I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
X8 Series PLC Expansion I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Addressing Expansion I/O Slots . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
X8 Series Embedded I/O Memory Mapping . . . . . . . . . . . . . . . . . . . . 3
Digital I/O Configuration of X8 Series PLC base module. . . . . . . 3
X8-M14DDT, X8-M16DDR Input Image 3
X8-M32DDT Input Image 3
X8-B48DDX Input Image 4
X8-B24ADR, X8-B24DDT and X8-B24AAR Input Image 4
X8-M14DDT Output Image 4
X8-M16DDR Output Image 5
X8-M32DDT Output Image 5
X8-B48DDX Output Image 5
X8-B24ADR, X8-B24DDT and X8-B24AAR Output Image 6
X8 Series Expansion I/O Memory Mapping. . . . . . . . . . . . . . . . . . . . . 6
Digital I/O Input Module Configuration . . . . . . . . . . . . . . . . . . . . 6
X8-XU16, X8-XA16 Input Image 6
X8-XU32 Input Image 6
X8-XU64 Input Image 7
X8-TPOT8 Input Image 7
Digital I/O Output Module Configuration . . . . . . . . . . . . . . . . . . . 8
X8-YN16, X8-YR16 Output Image 8
X8-YN32 Input Image 8
X8-YN64 Input Image 8
X8-YR6C Output Image 9
Analog I/O Module Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 9
X8-AI8 Input Image 9
Data Configuration of Control Area 11
X8-AO4 Input Image 12
X8-RT6 Input Image 14
X8-TC6 Input Image 18
I/O Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Addressing Detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
I/O Addressing schema 22
Addressing Example 23
I/O Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Input Forcing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Output Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Input Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Configurable Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Analog Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Analog Input Filter and Update times . . . . . . . . . . . . . . . . . . . . . . 26
Input Channel Filtering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Converting Analog Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Converting Analog Input Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Analog Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Latching Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Converting Analog Data to Actual Output Voltage 29
Rising Edge Time Chart-Example 1 . . . . . . . . . . . . . . . . . . . . . . . 32
Rising Edge Time Chart-Example 2 . . . . . . . . . . . . . . . . . . . . . . . 32
Falling Edge Time Chart-Example 1 . . . . . . . . . . . . . . . . . . . . . . . 33
Falling Edge Time Chart-Example 2 . . . . . . . . . . . . . . . . . . . . . . . 34
Configure Expansion I/O Using XGPC . . . . . . . . . . . . . . . . . . . . . . . 34
Chapter 2 X8 Series PLC Memory and Data Type
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
X8 Series PLC Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Data Table Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
User Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
X8 Series PLC User Memory 4
Viewing X8 Series PLC Memory Usage. . . . . . . . . . . . . . . . . . . . . . 4
Data Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Protecting Data Table During Download . . . . . . . . . . . . . . . . . . . . . . . 6
Data Table Download Protection . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Setting Data Table Protection 6
Data Table Protection Requirements 7
Static. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Clearing the Controller Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Allow Access Data Table through Internet (Web) . . . . . . . . . . . . . . . 11
Chapter 3 SFR (Special Function Register)
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Real-Time Clock Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Writing Time Data to the Real-Time Clock. . . . . . . . . . . . . . . . . . . 3
X8 Real-Time Clock Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
RTCA-Real Time Clock Adjust Instruction. . . . . . . . . . . . . . . . . . . . . . 5
Memory Card Information Data Table . . . . . . . . . . . . . . . . . . . . . . . . . 6
Functionality Type 7
MemoryCardPresent 7
WriteProtected 7
FaultOverride 7
LoadProgramCompare 7
LoadOnError 7
LoadAlways 7
ModeBehavior 8
Communications Status Data Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
General Communication Status Block 9
Diagnostic Counter Block of Communications Status Data Table 10
Active Node Table Block 20
Ethernet Communications Status Data Table . . . . . . . . . . . . . . . . . . . 21

Diagnostic Counter Block of Communications Status 24
Chapter 4 Programmin Instruction Overview
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
X8 Instruction Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Instruction Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Addressing Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Immediate Addressing 3
Direct Addressing 4
Indirect Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Specifies the data table through Indirect Addressing . . . . . . . . . . . 5
Indirect Addressing of a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 5 Using the High-Speed Counter and Programmable Limit Siwtch
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
High-Speed Counter Overveiw. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Programmable Limit Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
High-Speed Counter (HSC) Function Register . . . . . . . . . . . . . . . . . . . 2
High-Speed Counter SFR Elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
HSC SFR Sub-Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
LadderProgramNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
UserInterruptEnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
FunctionEnabled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
AutoStart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
CountingEnabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
SetParamters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
LowPresetMask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
HighPresetMask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
UnderflowMask. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
OverflowMask. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
HSC Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Counting Method according to Multiplication and Phase Difference 10
HSC Mode 0 - Up Counter 12
HSC Mode 1 - Up Counter with External Reset and Hold 12
HSC Mode 2 - Counter with External Direction 13
HSC Mode 3 - Counter with External Direction, Reset, and Hold 13
HSC Mode 4 - Two Input Counter (up and down) 14
Mode 5 - Two Input Counter (up and down) with External Reset and Hold 14
Using the Encoder 14
HSC Mode 6 - Quadrature Counter (phased inputs A and B) 15
HSC Mode 7 - Quadrature Counter (phased inputs A and B) With External Reset and Hold 16
HSC Mode 8 - Quadrature X4 Counter 16
HSC Mode 9 - Quadrature X4 Counter with External Reset and Hold 17
Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
HighPreset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
LowPreset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Overflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Underflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
OutputMaskBits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
HighPresetOutput. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
LowPresetOutput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

ErrorDetected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
UserInterruptExecuting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
UserInterruptPending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
UserInterruptLost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
LowPresetInterrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
HighPresetInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
LowPresetReached . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
HighPresetReached . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
UnderFlowInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
OverFlowInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
CountDirection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
ModeDone. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
CountDown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
CountUp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Overflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Underflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
HSCS - Set High-Speed Counter Value . . . . . . . . . . . . . . . . . . . . . . . . 28
HSCC - Clear High-Speed Counter Value . . . . . . . . . . . . . . . . . . . . . . 29
High-Speed Counter (HSC) Data Table. . . . . . . . . . . . . . . . . . . . . . . . 30
PS Data Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Using Programmable Limit Switch . . . . . . . . . . . . . . . . . . . . . . . . 31
Addressing PS Data Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
PS Data Table Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Chapter 6 Using High-Speed Outputs
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
PTO - Pulse Train Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Pulse Train Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
PTO Funtion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
SFR (Special Function Register) PTO Sub-Elements . . . . . . . . . . . . . . 5
PTO.0.Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
PTO.0.Done . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
PTO.0.DeceleratingStatus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
PTO.0.RunStatus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
PTO.0.AcceleratingStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
PTO.0.RampProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
PTO.0.IdleStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
PTO.0.ErrorDetectedStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
PTO.0.NormalOperationStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
PTO.0.EnableHardStop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
PTO.0.EnableStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
PTO.0.OutputFrequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PTO.0.OperatingFrequencyStatus . . . . . . . . . . . . . . . . . . . . . . . . . 10
PTO.0.TotalOutputPulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PTO.0.OutputPulsesProduced. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PTO.0.AccelDecelPulsesIndependent . . . . . . . . . . . . . . . . . . . . . . 11
PTO.0.AccelDecelPulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
PTO.0.ControlledStop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
PTO.0.JogFrequency. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
PTO.0.JogPulse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
PTO.0.JogPulseStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
PTO.0.JogContinuous. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

PTO.0.JogContinuousStatus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
PTO.0.ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PWM - Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PWM Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PWM Data Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PWM Data Table Elements Summary . . . . . . . . . . . . . . . . . . . . . . . . . 19
PWM.0.Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
PWM.0.ProfileParameterSelect. . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
PWM.0.EnableHardStop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
PWM.0.OutputFrequency. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
PWM.0.DutyCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PWM.0.AccelDecelDelay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PWM.0.ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PWM.0.DeceleratingStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
PWM.0.RunStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
PWM.0.IdleStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
PWM.0.ErrorDetectedStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
PWM.0.NormalOperationStatus . . . . . . . . . . . . . . . . . . . . . . . . . . 23
PWM.0.EnableStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
PWM.0.OperatingFrequencyStatus . . . . . . . . . . . . . . . . . . . . . . . . 24
PWM.0.DutyCycleStatus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Chapter 7 Relay-Type (Bit) Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
NOC- Normal Open Contact NCC - Normal Closed Contact . . . . . . 2
OUT - Output Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
SET - Set Coil
RST - Reset Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
EGR - Edge Rsing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ONSR - One Shot Rising
ONSF - One Shot Falling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Chapter 8 Timer and Counter Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
TON - Timer, On-Delay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
TOF - Timer, Off-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
TOR - Retentive Timer, On-Delay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
CLKR - Read High Speed Clock Time . . . . . . . . . . . . . . . . . . . . . . . . . 7
CLKC - Compute Time Difference . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
How Counters Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Using the CTU and CTD Instructions. . . . . . . . . . . . . . . . . . . . . . . 9
CT.10.0.Underflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
CT.10.0.Overflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
CT.10.0.Done . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
CT.10.0.CountDown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
CT.10.0.CountUp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
CT.10.0.Preset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
CT.10.0.Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
CTU - Count Up
CTD - Count Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
RSTA - Reset Accumulator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Chapter 9 Compare Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Using the Compare Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
EQ - Compare for Equal
NE - Compare for Not Equal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
GT - Compare for Greater Than
LT - Compare for Less Than . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
GE - Compare for Greater Than or Equal to
LE - COmpare for Less than or Equal to . . . . . . . . . . . . . . . . . . . . . . . 5
EQM - Mask Compare for Equal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
LIM - Limit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 10 Math Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Using the Math
Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Math Arithmetic Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Floating Point. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
ADD - Add
SUB - Subtract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
MUL - Multiply
DIV - Divide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
NEG - Negate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
CLR- Clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ABS - Absolute Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
SCAL - Scale with Slope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
SCAP - Scale with Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
SIN -Sine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
TAN - Tangent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ASIN-Arc Sine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ACOS - Arc Cosine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ATAN - Arc Tangent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
DEG - Radians to Degrees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
RAD - Degrees to Radians . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
LN - Natural Log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
LOG- Base 10 Logarithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
POW - X Power Y. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
CALC - Calculate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Chapter 11 Conversion Instructions
Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
DECD - Decode 4 to 1-of-16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
ENCO - Encode 1-of-16 to 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
BIN - Convert form Binary Coded Decimal (BCD) . . . . . . . . . . . . . . . 4
GRAY - Gray Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 12 Logical Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
AND - Bit-Wise AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
OR - Logical OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
XOR - Exclusive OR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
NOT - Logical NOT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Chapter 13 Move Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
MOV - Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
MOVM - Masked Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 14 Data Table Instructions
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
FILT - Fill Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
COPT - Copy Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
SWAP - Swap Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
COPW - Copy Word. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 15 Shift and FIFO_LIFO Instructions
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
BSL - Bit Shift Left
BSR - Bit Shift Righter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
FIFOL - FIFO QUEUE LOAD
FIFOU - FIFO QUEUE UNLOAD. . . . . . . . . . . . . . . . . . . . . . . . . . . 4
LIFOL - LIFO QUEUE LOAD
LIFOU - LIFO QUEUE UNLOAD. . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Chapter 16 Sequencer Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
SEQIC - Sequencer Input Compare. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
SEQO - Sequencer Ouput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
SEQL - Sequencer Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 17 Program Control Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
JMP - Jump to Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
LBL - Lable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
CALL- Call Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
SBR - Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
RET - Return from Subroutine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
SUSP - Suspend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
ENDT - Temporary End . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
END - End of Ladder Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
MCR - Master Contorl Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 18 Input/Output Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
REFI - Embedded Input Refresh. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
REFO- Embedded Output Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
EOS - End of Scan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 19 Using Interrupts
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What is an Interrupt?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Priority of User Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Interrupt Type and Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
User Fault Routine (UFR) Interrupt . . . . . . . . . . . . . . . . . . . . . . . . 5
External Input Interrupt (EII) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
LadderProgramNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
UserInterruptEnabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
EventInterruptEnabled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
AutoStart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

EdgeSelect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
InputSelect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
UserInterruptExecuting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
UserInterruptLost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
UserInterruptPending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
ErrorDetected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
High Speed Counter (HSC) Interrupt . . . . . . . . . . . . . . . . . . . . . . . 9
Programmable Interrupt Timer (PIT) Interrupt . . . . . . . . . . . . . . 10
LadderProgramNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
UserInterruptEnabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
EventInterruptEnabled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
AutoStart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
SetPointMsec. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
UserInterruptExecuting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
UserInterruptLost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
UserInterruptPending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
ErrorDetected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
PITS - Programmable Interrupt Timer Start . . . . . . . . . . . . . . . . . . . . 13
INTD - Interrupt Disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
INTE - Interrupt Enable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
INTF - Interrupt Flush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Chapter 20 PID Control
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The PID Equation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
PID - Proportional Integral Derivative . . . . . . . . . . . . . . . . . . . . . . . . . 3
TimedOrPIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
AutoOrManual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ForwardReverseActing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
OutputLimitingEnabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
GainRangeSelection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
SetPointScalingEnabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
LoopUpdateTooFast. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ProcessValueInDeadBand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ZeroCrossingDeadband . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Kc (Controller Gain). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Ti (Integral Time) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Td (Derivative Time) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
LoopUpdateTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
FeedForwardBias. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ScaledError . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 21 ASCII Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
ATOI - Convert ASCII String to Integer. . . . . . . . . . . . . . . . . . . . . . . . 3
ITOA - Convert ASCII String to Integer. . . . . . . . . . . . . . . . . . . . . . . . 4
ACN - ASCII String Concatenate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
AHX - ASCII String Extract. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ASCH - Searching String. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

ACMP - Compare String. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ARNL - Number of Characters for Line . . . . . . . . . . . . . . . . . . . . . . . . 7
ARNC - Number of Characters in Buffer . . . . . . . . . . . . . . . . . . . . . . . 8
ACB - Clear Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
AHS - Handshake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ARC - Read Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
AWA - Write String with Append . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
AW - Write String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Chapter 22 Communication Instructions
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
SVC - Service Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
MSG - Message Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Subtype . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
SuppElementInfo[0] ~ [2] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ChannelNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
MsgTimeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
NumberOfByte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
TargetDataTableInfo[0] ~ [4]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
BreakConnection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
UnConnectedMessage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ContinuousOperation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
EnabledWaiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Done . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ErrorCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ElapsedTIme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ErrorCounter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
RoutiongPathDataTblNumber. . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
RoutiongPathDataTable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Appendix A.
System Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
. . . . . . . . . . . . . . . . . . . . . . . . . 1
Appedix B.
MSG Instruction Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
. . . . . . . . . . . . . . . . . . . . . . . . . 1
Appendix C.
ASCII Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1


X8 Instruction Set Reference Manual
Chapter
1
I/O Configuration
Introduction
This chapter describes the general matters of Input and Output features of the X8
Series PLC. Each controller comes with a certain amount of embedded I/O, which
is physically located on the controller. The controller also allows for adding
expansion I/O.
Topic Page
Introduction 1-1
Embedded I/O 1-2
Expantion I/O 1-2
X8 Series Embedded I/O Memory Mapping 1-3
X8 Series Expansion I/O Memory Mapping 1-6
I/O Addressing 1-22
I/O Forcing 1-24
Input Filtering 1-24
Analog Input 1-26
Analog Output 1-29
Latching Inputs 1-29
Configure Expansion I/O Using XGPC 1-34

X8 Instruction Set Reference Manual
1-2 I/O Configuration
Embedded I/O
The X8 Series PLC provide basic I/O that is built into the controller as listed
in the following table. These I/O points are referred to as Embedded
I/O.
1) It will be released in 2013
Expantion I/O
If the application requires more I/O than the controller provides, you can
attach I/O modules using serial techniques. X8 Series PLC have I/O
expandability.
X8 Series PLC Expansion I/O
For the X8 Series PLC expansion I/O is used to provide special module such
as digital I/O, analog module, position module and communication module.
You can attach up to max. 80 expansion I/O modules with power supply for
each 12 I/O modules in any combination.
Addressing Expansion I/O Slots
The figure below shows the addressing for the base and expantion I/O
module of X8 Series PLC . The expansion I/O is addressed as slots 1 to 80.
Modules are counted from left to right as shown below.
Catalog No. Description
Input Power Type Embedded Digital I/O Comm. Ports
X8-M14DDT 24VDC Modular 8 In , 6 Sink out 2x RS-232/RS-485
1x Ethernet
1x USB
X8-M16DDR 24VDC Modular 8 In , 8 Relay out, HSC 2CH
X8-M32DDT 24VDC Modular 16 In , 16 Sink out
X8-B48DDX1) 24VDC Brick 28 In , 20 Sink out
X8-B24ADR1) 110/220V AC Brick 14 In , 10 Relay out
X8-B24DDT1) 24VDC Brick 14 In , 10 Sink out
X8-B24AAR1) 110/220V AC Brick 14 AC In, 10 Relay out
Specifications and designs are subject to change without prior notice.

X8 Instruction Set Reference Manual
I/O Configuration 1-3
X8 Series Embedded I/O
Memory Mapping
Digital I/O Configuration of X8 Series PLC base module
X8-M14DDT, X8-M16DDR Input Image
For X8-M14DDT and X8-M16DDR base module, the Bit positions 0 to 7
correspond to input terminals 0 to 7.
r = read only, x = not used, always at a 0 or OFF state
X8-M32DDT Input Image
For X8-M32DDT base module, the Bit positions 0 to 15 together with word
0/1 correspond to input terminals 0 to 15.
TIP
In most cases, you can use the following address format:
X:s.b (X = Table type letter, s = slot number, b = bit number)
For example I3:0.0
rd
Bit Position
Wo
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xxxxxxxxrrrrrrrr

X8 Instruction Set Reference Manual
1-4 I/O Configuration
r = read only, x = not used, always at a 0 or OFF state
X8-B48DDX Input Image
For X8-B48DDX base module, the Bit positions 0 to 15 with word 0
correspond to input terminals 0 to 15. And Bit position 0 to 11 with word 1
correspond to input terminal 0 to 11.
r = read only, x = not used, always at a 0 or OFF state
it will be released in 2013.
X8-B24ADR, X8-B24DDT and X8-B24AAR Input Image
For X8-B24ADR, X8-B24DDT and X8-B24AAR base module, the Bit
positions 0 to 13 correspond to input terminals 0 to 13.
r = read only, x = not used, always at a 0 or OFF state
X8-M14DDT Output Image
For X8-M14DDT base module, the Bit positions 0 to 5 together with word 0
correspond to output terminals 0 to 5.
rd
Bit Position
Wo
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0rrrrrrrrrrrrrrrr
1rrrrrrrrrrrrrrrr
rd
Bit Position
Wo
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0rrrrrrrrrrrrrrrr
1xxxxrrrrrrrrrrrr
rd
Bit Position
Wo
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xxrrrrrrrrrrrrrr
This manual suits for next models
7
Table of contents