Cutler Hammer Eaton D50 Manual 2017911111536
Cutler Hammer Eaton D50 Manual 2017911111536
Cutler Hammer Eaton D50 Manual 2017911111536
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
The information contained in this manual is the property of Cutler-Hammer, Inc. Information in this
manual is subject to change without notice and does not represent a commitment on the part of Cutler-
Hammer, Inc.
Any Cutler-Hammer software described in this manual is furnished under a license agreement. The
software may be used or copied only in accordance with the terms of the agreement. It is against the
law to copy the software on any medium except as specifically allowed in the agreement. No part of
this manual may be reproduced or transmitted in any form or by any means, electronic, mechanical,
photocopying, recording or otherwise, without prior written permission of Cutler-Hammer, Inc.
TRADEMARKS
Commercial names of products from other manufacturers or developers that appear in this manual are
registered or unregistered trademarks of those respective manufacturers or developers, which have
expressed neither approval nor disapproval of Cutler-Hammer products.
P/N 01-00478-00
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Preface i
Preface
Welcome to Cutler-Hammer’s D50 PLC User's Manual. This preface describes the contents of this
manual and provides information on Support Services.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
ii D50 PLC User's Manual
Purpose
This manual focuses on describing the D50 Programmable Logic Controller (PLC).
What’s Inside
This manual is organized in the following way:
Preface
Chapter 1: Introduction
Chapter 2: System Configuration
Chapter 3: Product Specification
Chapter 4: Installation and Wiring
Chapter 5: CPU Operation and Memory
Chapter 6: Instructions
Chapter 7: Testing and Troubleshooting
Chapter 8: Troubleshooting Noise Problems
Appendix A: D50 PLC Communication Protocol
Appendix B: Special I/O Functions
Appendix C: D50PGM10 Pocket Editor
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Preface iii
Support Services
It is Cutler-Hammer’s goal to ensure your greatest possible satisfaction with the operation of our
products. We are dedicated to providing fast, friendly, and accurate assistance. That is why we offer
you so many ways to get the support you need. Whether it’s by phone, fax, modem, or mail, you can
access Cutler-Hammer support information 24 hours a day, seven days a week. Our wide range of
services include:
Does not currently include product repairs or shipping outside normal business hours.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
iv D50 PLC User's Manual
For information on your local distributor or sales office, call the Cutler-Hammer Tech Line at 1-800-
809-2772.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table of Contents v
Table of Contents
Preface I
About This Manual ................................................................................................................................................ii
Purpose...........................................................................................................................................................ii
What's Inside ..................................................................................................................................................ii
Support Services....................................................................................................................................................iii
Table of Contents v
Chapter 1: Introduction 1
Overview of the Manual......................................................................................................................................... 2
Features of the D320 PLC...................................................................................................................................... 2
Self Diagnostics ............................................................................................................................................. 3
Large Program Memory................................................................................................................................. 3
Integrated 700mA Power Supply ................................................................................................................... 3
Battery-Free Program Backup........................................................................................................................ 3
I/O Module Support ....................................................................................................................................... 3
Peripheral Support.......................................................................................................................................... 4
System Installation Considerations ........................................................................................................................ 4
Environmental Considerations ....................................................................................................................... 4
Preventing PLC System Malfunctions ........................................................................................................... 4
Chapter 2: System Configuration 5
D50 PLC System Components............................................................................................................................... 6
D50 PLC Product List............................................................................................................................................ 7
D50 PLC Expansion Configurations...................................................................................................................... 9
Chapter 3: Product Specification 11
Environmental Operating Ranges ........................................................................................................................ 12
CPU Performance Specifications ......................................................................................................................... 12
Electrical Specifications....................................................................................................................................... 13
Power Supply Specifications........................................................................................................................ 13
24VDC Input Specifications ........................................................................................................................ 14
115VAC Input Specifications ...................................................................................................................... 15
Relay Output Specifications......................................................................................................................... 16
Transistor (24VDC) Output Specifications .................................................................................................. 17
SSR (115VAC) Output Specifications ......................................................................................................... 18
Name and Function of Controller Components.................................................................................................... 19
Chapter 4: Installation And Wiring 21
System Design Considerations............................................................................................................................. 22
Power Supply Wiring................................................................................................................................... 22
Interlock Circuit and Emergency Stop Circuit (Safety measures in system design) .................................... 22
Momentary Power Failure and Voltage Drop .............................................................................................. 23
System Installation Guidelines............................................................................................................................. 23
Environmental Usage Conditions................................................................................................................. 23
Control Panel Installation............................................................................................................................. 24
System Wiring and Installation Procedures ......................................................................................................... 26
Installation Dimensions................................................................................................................................ 26
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
vi D320 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table of Contents vii
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
viii D320 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table of Contents ix
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
x D320 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 1: Introduction 1
Introduction
Welcome to the D50 PLC User's Manual. The D50 Programmable Logic Controller (PLC) is a small
application industrial controller, designed to provide maximum flexibility at a minimum cost. This
manual will give you a complete understanding of how to install and program the D50 PLC. It also
includes complete product specifications, and a description of the various products that work with the
D50 PLC.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
2 D50 PLC User's Manual
• Chapter 1 introduces the D50 PLC by describing its features and discussing installation
considerations.
• Chapter 2 discusses various system configurations and products that can be used with the D50
PLC.
• Chapter 3 gives performance specifications and operating ranges of the CPU and the D50
series products.
• Chapter 4 describes installation and wiring guidelines and procedures including system design
considerations, wiring the power supply, and connecting the PLC to a PC.
• Chapter 5 introduces many concepts you need to know to program the D50 PLC including
terminology, how the registers are used, different types of address designations, and the CPU
processing procedure.
• Chapter 6 presents detailed information on the Instruction Set that is used by the D50 PLC.
• Chapter 7 discusses testing and troubleshooting procedures.
• Chapter 8 describes electrical interference or noise and the ways you can reduce its influence.
• Appendix A gives rules and procedures for D50 PLC communication.
• Appendix B details the configuration and operation of the integrated special I/O functions of
the D50 PLC, including High Speed counters, Pulse Output, and adjustable inputs.
• Appendix C describes mnemonic programming and the use of the D50 Pocket Editor.
• The D50 PLC is designed for small-sized control applications that require from 1 to 56
control points, high-speed count or analog capability, and advanced functionality.
• The D50 PLC is built to simplify operation, maintenance, and repair with its modular design.
• I/O flexibility is achieved through the wide variety of available digital and analog modules,
covering a broad range of voltage and current ratings.
The D50 PLC has many additional features that combine to make it the ideal choice for many control
applications.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 1: Introduction 3
Self Diagnostics
When placed in the Run mode, the D50 PLC performs startup self-diagnostics and error-checking on
the processor, control program, and I/O system. Error status information is stored internally, providing
for quick and easy troubleshooting of system and programming errors.
Peripheral Support
The D50 PLC has two program loader software packages available for use on standard PCs: the DOS-
based GPC5, and the Windows-based WinGPC. These packages provide advanced programming,
monitoring, editing, and troubleshooting for the D50 PLC. A dedicated hand-held programmer is also
available for harsh environments. Cutler-Hammer also offers a complete line of Operator Interface
products and HMI software packages compatible with the D50 PLC.
Note: When this manual uses the term GPC, either GPC5 or WinGPC can be used.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
4 D50 PLC User's Manual
Environmental Considerations
The D50 PLC system should never be installed under the following environmental conditions:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 2: System Configuration 5
System Configuration
This chapter provides information on the various products that are available for the D50 PLC. It
includes diagrams that show the D50 PLC system components and expansion configurations.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
6 D50 PLC User's Manual
Programming Cable
D50CBL10
RS485
RS232
RS232/485 GPC5/WinGPC
Adapter Program Loader
D50CPM485 Software
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 2: System Configuration 7
Analog/Frequency Converters
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
8 D50 PLC User's Manual
Programming Equipment
Programming Cables
Manuals
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 2: System Configuration 9
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
10 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 3: Product Specification 11
Product Specification
This chapter outlines the environmental conditions for D50 PLC operation and the performance
specifications and component functions of the controller.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
12 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 3: Product Specification 13
Electrical Specifications
FUSE
AC
85-264V Internal
Circuit
FG
Wiring Diagram
24VDC Out
DC 24V C 0 1 2 3 C 4 5 6 7
OUT IN IN
OUT RUN
0 1 2 3 4 5 STOP
Cutler-Hammer
IN 100-240V GND OUT OUT OUT
C 0 C 1 C 2 3 4 5
85-264VAC In
Specifications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
14 D50 PLC User's Manual
COM INPUT
Wiring Diagram
Current Current
Sinking Sourcing
Devices Devices
24VDC 24VDC
+ - - +
DC 24V C 0 1 2 3 C 4 5 6 7
OUT IN IN
Specifications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 3: Product Specification 15
COM INPUT
Wiring Diagram
110VAC
DC 24V C 0 1 2 3 C 4 5 6 7
OUT IN IN
Specifications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
16 D50 PLC User's Manual
+24VDC
24VDC
GND COM OUT
Wiring Diagram
LOAD
LOAD
LOAD
LOAD
LOAD
Specifications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 3: Product Specification 17
Wiring Diagram
- - -
LOAD
LOAD
LOAD
LOAD
LOAD
LOAD
24VDC
+ + +
Specifications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
18 D50 PLC User's Manual
OUT
COM
Wiring Diagram
LOAD
LOAD
LOAD
LOAD
LOAD
LOAD
Specifications
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 3: Product Specification 19
DC 24V C 0 1 2 3 C 4 5 6 7
OUT IN IN
OUT RUN
0 1 2 3 4 5 STOP
Mode Switch
State Function
RUN CPU set in Run or Stop/Program Override mode.
PROG. CPU set in Stop/Program mode.
The I/O Expansion Port supplies a 10-pin connector for adding digital and/or analog expansion
modules to the base controller.
The RS485 Communication Port supports an RS485 connection for programming, configuring, and
monitoring the PLC. For communication with most RS232 peripherals, such as a personal computer,
an RS232/485 converter must be used. When placed on an RS485 network with other D50, D300, or
D320 PLC’s, the ends of the network should be properly terminated with 120 Ohm resistors to prevent
communication errors due to noise and reflections on the transmission line.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
20 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 4: Installation and Wiring 21
This chapter provides considerations and information on installing and wiring the D50 PLC.
Diagrams are included to illustrate the installation procedures.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
22 D50 PLC User's Manual
External
I/O device
PLC
Isolation transformer
Interlock Circuit
An interlock circuit can control and prevent problems such as those caused by unexpected or reversed
operation of a motor. Install the interlock circuit external to the PLC control wiring and circuitry.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 4: Installation and Wiring 23
Power-Up Sequence
In a properly designed control system, the default Off state of the system is the safe state, in which no
machinery is operating. Before the PLC is powered-up, line power and control power are applied to the
system. Once the system is powered up in the safe/default state, the PLC is powered up and begins
system control. As necessary, the control system should be modified to ensure the proper delayed
startup to prevent problems on power-up.
CAUTION: Steps should be taken to prevent damage to the PLC system through fluctuating
voltages, brownouts, blackouts, shorts, ground faults, or other power supply
failures. For example, you may need to apply an isolation transformer before the
incoming PLC power supply and/or I/O control wiring.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
24 D50 PLC User's Manual
• Leave enough space at the top of unit from other devices or wiring ducts to allow ventilation
space and easy replacement and wiring of the unit (see the following diagrams).
• Do not mount the PLC system rotated vertically, or facing up or down. This will prevent
proper air cooling of the PLC CPU, which will cause abnormal overheating inside the PLC
(see the following diagrams).
7
C 0 C 1 C 2 3 4 5
OUT
IN
5
3
Programmable Controller
RUN
ERR
4
2
RUN
STOP
C
C
Cutler-Hammer
7
1
3
OUT
6
5
C
2
4
3
3
IN
2
1
0
OUT
1
1
D50
0
C
0
OUT
IN
GND
C
IN 100-240V
DC 24V
OU T
• Avoid installation over heat generating equipment such as heaters, transformers, and power
resistors.
• Avoid radiation noise by leaving a minimum distance of 4 inches (100 mm) from the surface
of each unit to the power cable, and the noise-generating device (motor starter, solenoid, etc.).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 4: Installation and Wiring 25
D50 Programmable Controller D50 Programmable Controller D50 Programmable Controller D50 Programmable Controller
RU N
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
IN IN IN IN
ER R
OUT RU N
0 1 2 3 4 5 OUT OUT OUT
STOP 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5
Leave at least 2 inches (50 mm) from the duct or other devices:
• To prevent overheating.
• For easy replacement and wiring of the unit.
• Leave 4 inches (100 mm) or more from the front surface of unit.
• This area in front of the PLC helps to avoid the effects of emission, noise, and heat.
• The additional space also allows for easier connection to the programming port as needed.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
26 D50 PLC User's Manual
Installation Dimensions
0.197“ (5mm) Dia.
2 Holes
1.97“
(50mm)
3.15“
(80mm)
0.59“
(15mm)
3.58“
(91mm)
3.93“
(100mm)
Attachment Removal
2
1
2 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 4: Installation and Wiring 27
Part Description
AMP #746286-1 10-socket socket connectors (2)
AMP #499252-5 Strain relief connectors (2) for socket connectors above
Ribbon cable 28AWG stranded wire, 0.050 spacing 10 conductor w/ PVC insulation, 105deg. C, wire #1
color-coded
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
28 D50 PLC User's Manual
Power wiring
Grounding
Right Wrong
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 29
This chapter provides you with information about memory addresses and the CPU operation. It
includes a terminology section and an overview of registers.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
30 D50 PLC User's Manual
Terminology
This section introduces some terminology you should know.
1. Address (register)
Address refers to the location of memory being used. It can refer to the external input/output
module or internal memory. An address is categorized into 1 bit, 16 bit (word), or 32 bit
(double word).
2. Bit
A bit is the minimum unit required for calculation. It can be either On (1) or Off (0).
3. Byte
A byte is made up of 8 bits. It can hold data values from 0 to 255. In base 16, or hexadecimal,
a byte can be expressed as 0 to FF. You cannot have a value greater than 255 when using one
byte.
4. Word
A word is made of 16 bits. It can hold data values from 0 to 65,535. In base 16 a word can be
expressed as 0 to FFFF.
5. Double Word
A double word is made of 32 bits. It can hold data values from 0 to 4,294,976,295. In base 16
a double word can be expressed as 0 to FFFFFFFF. In the D50, a double word is made up of
two consecutive word addresses.
6. Scan Time
The CPU follows a procedure in which it 1) reads the inputs, 2) processes the ladder program,
and 3) updates the outputs. It continually repeats this process. This 3-step process is called a
“scan,” and the time it takes to complete this process is the “scan time.” In a typical PLC
application, most of the scan time is used to process the program. When programming, keep
in mind that the scan time will increase as you increase the number of inputs and outputs
and/or the size of the program.
7. Edge
An edge is defined as the point when an input changes state. For example, a rising edge
occurs during the very first scan after the input has changed from Off to On. A falling edge
occurs after the input has changed from On to Off.
8. Hex (Hexadecimal)
A hexadecimal number is a value expressed in Base 16. Base 16 values consist of digits from
0 to F. In a byte, word, or double word, each set of 4 bits corresponds to a single hex digit.
For example, the binary value 01001111 would correspond to the hex value 4F, and a decimal
value of 79. A hex value is designated by the use of the symbol “$” in front of the value (i.e.
$4F is the hex value 4F).
8. BCD (Binary Coded Decimal)
BCD is used to express a decimal digit (0 to 9) using 4 bits. Conversion of BCD values can be
done in hexadecimal calculations. For example, the BCD representation of decimal 27 would
be two sets of 4 bits: 0010 0111.
9. EEPROM
EEPROM is electronically erasable and programmable memory that retains its data even
through loss of power. The PLC program is stored in EEPROM and will be retained when
power is off.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 31
10. GPC
Graphic Programming Console. Cutler-Hammer offers two program loader software packages
for programming, monitoring, and configuring the D50 PLC. The DOS-based package is
GPC5, the Windows-based package is WinGPC. In this manual, GPC is used to refer to
either of these programs.
Stop Mode
The user program is stopped and the external outputs are turned Off. In the Stop mode, you can
correct, delete, and transfer the program.
Error Mode
The Error mode occurs when the D50 PLC finds an error after running the self-diagnostics. When an
error occurs, the CPU stops program operation and turns off all external outputs. When the Error mode
occurs, do one of the following:
• Check the error code and take appropriate measures, then change power from Off to On.
• Switch the mode switch back to the STOP position. When the switch is returned to RUN the
program and data are re-initialized (excluding the retentive data).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
32 D50 PLC User's Manual
1. Mandatory
input/output
2. Process 1 scan
input/output time
3. Watchdog
time → 0
4. Program
analysis
5. Peripheral device
signal processing
The diagram above indicates the PLC program processing procedure. The CPU regularly repeats
procedure 1 through 5. This cycle is called 1 scan time.
The following illustration shows the difference between the relay board and PLC sequence processing.
The relay carries out all sequences simultaneously while the PLC processes sequentially throughout
the program.
X1 M0.0
TIM CH = 0
T1 V = 100
T1 TC0
R15.0
Y1
(OUT)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 33
Introduction to Registers
The D50 PLC has a series of registers for storing data. Different registers store different types of data.
1. When a calculation or input value exceeds 255 ($FF), use double mode instructions which can
store and calculate values up to 65,535 in the K, M, R, and W registers..
2. When a value needs to be stored even through a loss of system power, use the K area. The K
area is preserved unless specifically erased. The W area is erased by program downloads or
loss of power.
3. For bit operations, such as setting, resetting, shifting, or rotating use the M, K, or R registers.
You cannot perform bit operations on W registers.
4. The Set Value of timers and counters is stored in a special area of the W registers, W2048 to
W2303. These values can also be addressed using register type SV. The Set Values are then
referenced as SV000 to SV255.
5. The Present Value of timers and counters is stored above the Set Values in the W registers,
from W2304 to W2559. These values can also be addressed using the PV designation, PV000
to PV255. The Present Values for channels 0 to 16 are maintained in the Stop state. It is also
retentive—the value is maintained through loss of power.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
34 D50 PLC User's Manual
• A bit address is composed of a character (R, L, M, K, F), a three digit word address (000 to
127), a decimal point, and a bit address (0 to 15). The timer/counter contact is represented by
the TC label followed by three digits. The three digits indicate the channel number of the
timer/counter (TC000 to TC255).
• A word address is composed of a character (R, L, M, K, W) and a four digit number (i.e.
W0000 to W0255). Special areas of word memory have alternate designations. For example,
words W2560 to W2815 are also referred to as the System Registers, and can be represented
as SR0000 to SR0511.
• The bit address indicates an On (1) or Off (0) state. The byte address is composed of 8 bits
that holds data values of 0 to 255. The word address is composed of 16 bits that holds data
values of 0 to 65,535.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 35
Expression Example
M 012 . 12
Bit number
• 2 digits, range is 0 to 15.
Word number
• When used with bit number, 3 digits (000 to 127) are used.
• When used for word number only, express in 4 digits (0000 to 3071).
Register Type
• R, L, M, K, F, or W indicates address type.
• The W memory contains the data area (W0000 to W0255), the timer Set Value
area (W2048 to W2303 = SV000 to SV255), the timer Present Value area (W2304
to W2559 = PV000 to PV255), and the System Register area (W2560 to W2815 =
SR000 to SR255).
Note: The basic contact and coil instructions require a bit designation and use the 3.2 bit address
format. Comparison and application instructions most often use word parameters, and are
expressed using the 4 digit word address.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
36 D50 PLC User's Manual
Example 1:
W0005 The example shows comparison instructions being used in the single mode
=<M0003 of GPC. The parameters W0005 and M0003 represent only 8 bits of data.
The high 8 bits are NOT used as part of the comparison.
D W0005 In this example, GPC is in double mode and comparison instructions are
used. The comparison is performed on 16 bits of data. All of word W0005
=<M0003
and M0003 will be compared.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 37
When accessing a bit absolute address using the program loader port communications protocol, the bit
address (0 to 15) is kept separate from the word address (as shown below).
15 4 3 0
1 word display Word absolute address bit number
For example, the absolute bit address for K012.12 internal contact is $14CC (hex).
(word absolute address = $014C + bit number = $C = $14CC)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
38 D50 PLC User's Manual
Module No. 00 01 02 03 06 07
I/O Points 14 14 4 words 14 2 words 14
Word No. R0, R15 R1, R16 W240 – W243 R2, R17 W248, W249 R3, R18
R0.0 – R0.7 R1.0 – R1.7 - R2.0 – R2.7 - R3.0 – R3.7
Bit No.
R15.0 – R15.5 R16.0 – R16.5 R17.0 – R17.5 R18.0 – R18.5
• The CPU assigns addresses to the digital inputs in sequential order, starting at address R0.
Each module uses 8 bits of the address for the 8 inputs.
• The CPU assigns addresses to the digital outputs in sequential order, starting at address R15.
Each modules uses 6 bits of the address for the 6 outputs.
• A maximum of 3 digital modules, of any mix of voltage I/O type, may be added.
• The first analog input module uses data words W240 to W243 for its four analog input
channels. Each word contains the 12-bit representation of the analog input signal for the
channel. The second analog input module is assigned words W244 to W247. These
assignments are independent of the position of the module in the chain, or whether an analog
output module is present.
• The first analog output module uses data words W248 and W249 for its two analog output
channels. The 12-bit representation to be output as an analog signal on the channel must be
placed in these words. The second analog input module is assigned words W250 and W251.
These assignments are independent of the position of the module in the chain, or whether an
analog input module is present.
• A maximum of two analog modules, input and/or output, may be added.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 39
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
40 D50 PLC User's Manual
F1.5 Instantaneous interrupt On when power is off for over 20 ms. Maintained
F1.6 Execute status On when the CPU is in the run state.
F1.7 Keep error display On when the K retentive data is destroyed and/or
changed on power loss.
F1.8 Carry Flag On in the event of carry when performing math
instructions (ADD, SUB, etc.)
F1.9 Division by zero error On when the denominator of division commands is
zero.
F1.10 Range designation error On when the absolute address used in LDR and
STO instructions exceeds the specified range.
F1.11 Reserved System use. Do not use.
F1.12 Reserved System use. Do not use.
F1.13 Reserved System use. Do not use.
F1.14 Reserved System use. Do not use.
F1.15 Reserved System use. Do not use.
Note: The 16 bits in the F1 address provide the CPU's special function and self diagnosis result. They
are used for status contacts only, and are not used to modify or control the PLC. Only the F1.5
instantaneous interrupt display contact should be used as an output contact by the user, to be
turned off after power loss indication.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 41
MSB 03 02 01 00
Error = 1
Run control (same as F15)
CPU switch RUN, Remote Stop = 1
CPU switch RUN = 1
CPU switch STOP = 0
SR002 User watchdog Indicates the user program watchdog time. (unit: msec)
SR003 Scan time Indicates the scan time when executing a program. (unit: msec)
SR004 Max. scan time Indicates maximum value of scan time when executing a program.
Initialized as zero when the program mode changes from the stop
state to the run state.
SR005 to Reserved System Use – Do not use.
SR0016
SR017 System error information Gives result of self-check by CPU. Indicates error content when
F0.0 turns On.
MSB 7 6 5 4 3 2 1 0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
42 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 43
Indicates the result of the automatic check on user program syntax when the programmer or GPC
executes a syntax check, and when operation mode is switched from the Stop state to the Run state. If
the value of SR30 is not zero, F0.4 turns On. The error lamp also turns On.
Method 1: Find the error in the CPU online mode, then correct the program.
Method 2: Use the syntax checking function, then correct the program.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
44 D50 PLC User's Manual
Timer/Counter (TC0-255)
The table below gives the alternate Word address for the timer/counter Set Value and Present Value
Ch SV PV Ch SV PV Ch SV PV
0 W2048 W2304 40 W2088 W2344 80 W2128 W2384
1 W2049 W2305 41 W2089 W2345 81 W2129 W2385
2 W2050 W2306 42 W2090 W2346 82 W2130 W2386
3 W2051 W2307 43 W2091 W2347 83 W2131 W2387
4 W2052 W2308 44 W2092 W2348 84 W2132 W2388
5 W2053 W2309 45 W2093 W2349 85 W2133 W2389
6 W2054 W2310 46 W2094 W2350 86 W2134 W2390
7 W2055 W2311 47 W2095 W2351 87 W2135 W2391
8 W2056 W2312 48 W2096 W2352 88 W2136 W2392
9 W2057 W2313 49 W2097 W2353 89 W2137 W2393
10 W2058 W2314 50 W2098 W2354 90 W2138 W2394
11 W2059 W2315 51 W2099 W2355 91 W2139 W2395
12 W2060 W2316 52 W2100 W2356 92 W2140 W2396
13 W2061 W2317 53 W2101 W2357 93 W2141 W2397
14 W2062 W2318 54 W2102 W2358 94 W2142 W2398
15 W2063 W2319 55 W2103 W2359 95 W2143 W2399
16 W2064 W2320 56 W2104 W2360 96 W2144 W2400
17 W2065 W2321 57 W2105 W2361 97 W2145 W2401
18 W2066 W2322 58 W2106 W2362 98 W2146 W2402
19 W2067 W2323 59 W2107 W2363 99 W2147 W2403
20 W2068 W2324 60 W2108 W2364 100 W2148 W2404
21 W2069 W2325 61 W2109 W2365 101 W2149 W2405
22 W2070 W2326 62 W2110 W2366 102 W2150 W2406
23 W2071 W2327 63 W2111 W2367 103 W2151 W2407
24 W2072 W2328 64 W2112 W2368 104 W2152 W2408
25 W2073 W2329 65 W2113 W2369 105 W2153 W2409
26 W2074 W2330 66 W2114 W2370 106 W2154 W2410
27 W2075 W2331 67 W2115 W2371 107 W2155 W2411
28 W2076 W2332 68 W2116 W2372 108 W2156 W2412
29 W2077 W2333 69 W2117 W2373 109 W2157 W2413
30 W2078 W2334 70 W2118 W2374 110 W2158 W2414
31 W2079 W2335 71 W2119 W2375 111 W2159 W2415
32 W2080 W2336 72 W2120 W2376 112 W2160 W2416
33 W2081 W2337 73 W2121 W2377 113 W2161 W2417
34 W2082 W2338 74 W2122 W2378 114 W2162 W2418
35 W2083 W2339 75 W2123 W2379 115 W2163 W2419
36 W2084 W2340 76 W2124 W2380 116 W2164 W2420
37 W2085 W2341 77 W2125 W2381 117 W2165 W2421
38 W2086 W2342 78 W2126 W2382 118 W2166 W2422
39 W2087 W2343 79 W2127 W2383 119 W2167 W2423
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 5: CPU Operation and Memory 45
Ch SV PV Ch SV PV Ch SV PV
120 W2168 W2424 166 W2214 W2470 212 W2260 W2516
121 W2169 W2425 167 W2215 W2471 213 W2261 W2517
122 W2170 W2426 168 W2216 W2472 214 W2262 W2518
123 W2171 W2427 169 W2217 W2473 215 W2263 W2519
124 W2172 W2428 170 W2218 W2474 216 W2264 W2520
125 W2173 W2429 171 W2219 W2475 217 W2265 W2521
126 W2174 W2430 172 W2220 W2476 218 W2266 W2522
127 W2175 W2431 173 W2221 W2477 219 W2267 W2523
128 W2176 W2432 174 W2222 W2478 220 W2268 W2524
129 W2177 W2433 175 W2223 W2479 221 W2269 W2525
130 W2178 W2434 176 W2224 W2480 222 W2270 W2526
131 W2179 W2435 177 W2225 W2481 223 W2271 W2527
132 W2180 W2436 178 W2226 W2482 224 W2272 W2528
133 W2181 W2437 179 W2227 W2483 225 W2273 W2529
134 W2182 W2438 180 W2228 W2484 226 W2274 W2530
135 W2183 W2439 181 W2229 W2485 227 W2275 W2531
136 W2184 W2440 182 W2230 W2486 228 W2276 W2532
137 W2185 W2441 183 W2231 W2487 229 W2277 W2533
138 W2186 W2442 184 W2232 W2488 230 W2278 W2534
139 W2187 W2443 185 W2233 W2489 231 W2279 W2535
140 W2188 W2444 186 W2234 W2490 232 W2280 W2536
141 W2189 W2445 187 W2235 W2491 233 W2281 W2537
142 W2190 W2446 188 W2236 W2492 234 W2282 W2538
143 W2191 W2447 189 W2237 W2493 235 W2283 W2539
144 W2192 W2448 190 W2238 W2494 236 W2284 W2540
145 W2193 W2449 191 W2239 W2495 237 W2285 W2541
146 W2194 W2450 192 W2240 W2496 238 W2286 W2542
147 W2195 W2451 193 W2241 W2497 239 W2287 W2543
148 W2196 W2452 194 W2242 W2498 240 W2288 W2544
149 W2197 W2453 195 W2243 W2499 241 W2289 W2545
150 W2198 W2454 196 W2244 W2500 242 W2290 W2546
151 W2199 W2455 197 W2245 W2501 243 W2291 W2547
152 W2200 W2456 198 W2246 W2502 244 W2292 W2548
153 W2201 W2457 199 W2247 W2503 245 W2293 W2549
154 W2202 W2458 200 W2248 W2504 246 W2294 W2550
155 W2203 W2459 201 W2249 W2505 247 W2295 W2551
156 W2204 W2460 202 W2250 W2506 248 W2296 W2552
157 W2205 W2461 203 W2251 W2507 249 W2297 W2553
158 W2206 W2462 204 W2252 W2508 250 W2298 W2554
159 W2207 W2463 205 W2253 W2509 251 W2299 W2555
160 W2208 W2464 206 W2254 W2510 252 W2300 W2556
161 W2209 W2465 207 W2255 W2511 253 W2301 W2557
162 W2210 W2466 208 W2256 W2512 254 W2302 W2558
163 W2211 W2467 209 W2257 W2513 255 W2303 W2559
164 W2212 W2468 210 W2258 W2514
165 W2213 W2469 211 W2259 W2515
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
46 D50 PLC User's Manual
Note: Channel: The inherent number of the timer and the counter.
Set Value (SV): The designated value for the timer (to turn On) and the counter (number of
times On) to start operation.
Present Value (PV): Current processing value of the timer (elapsed time) and the counter
(number of counts).
Note: When using GPC software, the above W registers can be represented as follows.
CAUTION: Be sure you understand the programming of the timer/counter thoroughly. If you
change the above registers while the program is running or program them
incorrectly, errors or damage may occur.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 47
Instructions
This chapter contains all of the instructions that are used with the D50 PLC. The instructions are
grouped by function, and then explained in detail.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
48 D50 PLC User's Manual
Basic Instructions
Mnemonic Command Ladder Symbol Description
STR Start Start NO contact.
STN Start Not Start NC contact.
AND And NO contact series circuit.
ANN (ADN) And Not NC contact series circuit.
OR Or NO contact parallel circuit.
ORN Or Not NC contact parallel circuit.
OUT Out (OUT) Relay output.
SET Set (SET) Turn On output.
RST Reset (RST) Turn Off output.
NOT Not Invert logic result.
STR DIF Start Differential R Start rising edge contact ( ).
STR DFN Start Dif. Not F Start falling edge contact ( ).
AND DIF And Dif. R Rising edge series connection ( ).
AND DFN And Dif. Not F Falling edge series connection ( ).
OR DIF Or Dif R Rising edge parallel connection ( ).
OR DFN Or Dif. Not F Falling edge parallel connection ( ).
ANB And Block Circuit block series connection.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 49
Timer/Counter Instructions
Mnemonic Command Ladder Description Remarks
Symbol
TIM On Delay Timer TIM
T CH = 10 Turn on after set Time Base: Ch 0-15: 0.01s
SV = 500
delay time from Ch 16-255: 0.1s
input on. Setting range: SV = 0-65535
input Done Contact: TC + channel no.
output
output
UC Up Counter UC
U CH = 13 Up counter Range of channel: Ch 0 to 255
SV = 5
input (Shared with timer)
R present set
value value Setting range: SV = 0-65535
output
reset Done Contact: TC + channel no.
DC Down Counter DC
U CH = 14 Down counter Range of channel: Ch 0 to 255
SV = 5
input (Shared with timer)
R present set
value value Setting range: SV = 0-65535
output
reset
Done Contact: TC + channel no.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
50 D50 PLC User's Manual
Comparison Instructions
Mnemonic Command Byte Word Description
STR = START = A D C
On if A(C) value and B(D) value are
AND = AND = = B = D the same.
OR = OR =
STR <> START <> A D C
On if A(C) value and B(D) value are
AND <> AND <> <> B <> D different. <> means the same as ≠.
OR <> OR <>
STR > START > A D C
On if A(C) value is greater than B(D)
AND > AND > > B > D value.
OR > OR >
STR >= START >= A D C
On if A(C) value is greater than or
AND >= AND >= >= B >= D equal to B(D) value.
OR >= OR >=
STR <= START <= A D C
On if A(C) value is less than or equal
AND <= AND <= <= B <= D to B(D) value.
OR <= OR <=
STR < START < A D C
On if A(C) value is less than B(D)
AND < AND < < B < D value.
OR < OR <
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 51
Arithmetic Instructions
Mnemonic Command Byte Word Description
ADD Decimal addition ADD
D =
DADD
D =
D = S1 + S2
(DADD) S1 = S1 = (Decimal operation)
S2 = S2 =
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
52 D50 PLC User's Manual
Logic Instructions
Mnemonic Command Byte Word Description
WAND Bitwise AND (logic AND DAND Store AND of S1 and S2 in D.
(DAND) multiply) D = D =
S1 0 0 1 1
S1 = S1 =
S2 = S2 = S2 0 1 0 1
D 0 0 0 1
D 0 1 1 1
S2 0 1 0 1
D 0 1 1 0
S2 0 1 0 1
D 1 0 0 1
Rotation Instructions
Mnemonic Command Byte Word Description
RLC Rotate left without RLC DRLC Rotate contents of designated
(DRLC) carry D = D = register D to the left N times.
N = N =
(lower→higher)
F1.8 15 ...D... 0
ROL Rotate left ROL DROL Rotate (shift) to the left N times.
(DROL) D = D = (lower→higher)
N = N =
(Input F1.8 value for low bit)
15 ...D... 0 F1.8
ROR Rotate right ROR DROR Rotate (shift) to the right N times.
(DROR) D = D = (higher→lower)
N = N =
(Input F1.8 value for high bit)
15 ...D... 0 F1.8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 53
D ...... 0 1 1 0 0 0 1 1 =$63
D ...... 0 0 1 0 0 1 1 1 =39
D2 .. 0 0 1 1 D2 .. 0 1 0 1
invar
D iable 0 0 0 0 0 1 1 1 6+1=7
D 0..0 0 0 1 0 0 0 0 0
15..8 7 6 5 4 3 2 1 0
D $0000 0 1 0 1
Nd+1
D+1 $0000 1 1 1 0
Nd=3 D+2 $0000 0 1 0 0 4
D+3 $0000 0 1 1 1 7
D $ 4 1 1 1 1 0 1 0 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
54 D50 PLC User's Manual
N=5 1
N=3 0
BTST Bit Test BTST Set carry bit F1.8 to the state of the
D = Nth bit of D.
N =
D ...... 0 1 1 1 0 1 0 0
N=6 F1.8
D 0..0 0 0 0 0 0 1 0 0 D=4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 55
Transfer Instructions
Mnemonic Command Byte Word Description
LDR Load D←(Sr) LDR DLDR Store value at absolute address Sr in
(DLDR) D = D = D.
Sr = Sr =
Register Absolute Data
Value Address Value
Sr = X
? X Y
D= Y
If Ns=4
Db ...... 0 1 0 1 0 1 0 0
BFMV Bit Fill Move BFMV Repeatedly copy the bit value V, N
Db = times to bit address Db. (V = 0,1) (Ns
Ns =
V = = 0, 1,…, 15).
V=1
Ns=5
Db ...... 0 1 1 1 1 1 0 0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
56 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 57
Sample Instruction
Explanation of Codes
= unavailable option
■ = available option
$xx indicates a hexadecimal number.
Explanation of Table
• Mnemonic—A byte (single mode) instruction, D designates word (double mode) instruction.
• Assignment expression—Description of the instruction.
• Range—Size of data that can be used by this instruction.
Sample Ladder
R
LET
D=
D: Destination
S=
S: Source
Example: S = M0, and M0 is 123
D = R17, and R17 is 45
Before execution: M0 = 123, R17 = 45
After execution: M0 = 123, R17 = 123
Explanation of Ladder
The ladder diagram shows the structure of the instruction as it is displayed. Additional text typically
gives an example and explains the processing structure.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
58 D50 PLC User's Manual
Sample Description
Range: LET: 0 to 255
DLET: 0 to 65,535
1. Either a register (R, M, K, L, or W) address or a constant number can be assigned for S.
2. When S is a register address, copy the data of the register to D.
3. When S is a constant number, copy the value to D.
4. This operation occurs on every scan for which the input condition to the instruction is true.
Explanation of Description
The description provides details of the instruction.
Sample Example
Program Expression Time Chart
R000.2 LET R000.2
D = M0000 R000.3
S = 123 0000 0123 0123
M0000
0000 0100 0100
LET M0001
0000 0000 0123
D = M001 R0017
S = 100
R000.3
LET
R D = R017
S = M0000
Explanation of Example
The example shows an application of an instruction as programmed in GPC. The time chart
demonstrates how the instruction operates with respect to time and the changing input conditions for
the example. The results of the operation may also be shown as part of the example.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 59
Instruction
Ladder
A
( ) Used for the start of a circuit.
B ( ) STR: Start NO (normally open) contact
STN: Start NC (normally closed) contact (STR NOT)
A: Circuit started with NO contact→STR
B: Circuit started with NC contact→STN
Description
1. Every rung in the ladder program begins with either a STR or STN.
2. Every rung will contain one or more contacts.
3. Every rung will end in one or more output coils or application instructions.
4. When programming a ladder with NO and NC contacts, GPC will automatically use the
proper contact instruction (STR, STN, AND, ANN, OR, ORN).
R000.2 R015.2
(OUT) Start of circuit: R000.2, R000.3
R000.3 R015.3
(OUT) End of circuit: R015.2, R015.3
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
60 D50 PLC User's Manual
Instruction
Ladder
AND: NO (normally open) contact series connection.
ANN: NC (normally closed) contact series connection.
Description
1. AND and ADN (AND NOT) indicate a series connection of each contact.
2. The number of ANDs and ADNs used within one branch (rung) is unlimited.
R000.3 R000.4 M010.15
(OUT)
3. M010.15 is On only when contact R000.3 is On and contact R000.4 is Off. M010.15 is Off
for all other cases.
Example
Contact M000.0 is On only when R000.1 is On and R000.2 is Off. M000.0 is Off for all other cases.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 61
Instruction
Ladder
OR: NO (normally open) contact parallel connection.
Description
1. OR and ORN (OR NOT) indicate parallel connection of each contact.
2. The number of ORs and ORNs used within a branch is unlimited.
(OUT)
Example
R000.0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
62 D50 PLC User's Manual
Instruction
Ladder
(OUT) OUT: Relay coil turns On or Off based on the state of the input conditions.
(SET) SET: Relay coil turns On when the input conditions are true.
(RST) RST: Relay coil turns Off when the input conditions are true.
Description
For an OUT instruction, you cannot use the same address twice.
OUT, SET, and RST instructions must be connected to the right bus and not in the middle of the
circuit.
1. OUT—Use for external I/O (R), internal (M), and retentive (K) contacts. On or Off according
to status of the input condition.
2. SET—Use for external I/O (R), internal (M), and retentive (K) contacts. The same address
can be used more than once. When the input conditions are true, the coil is turned On and
stays on unless turned off by a RST. The output is turned Off in the Stop mode.
3. RST—Use for external I/O (R), internal (M), and retentive (K) contacts. The same address
can be used more than once. When the input conditions are true, the coil is turned Off and
stays off unless turned on by a SET. The output is Off in the Stop mode.
4. When using retentive coils (K) in OUT, SET, or RST, the state is maintained. It will remain
On or Off even after placed in the Stop mode and power is turned off.
Example
Program Expression Time Chart
R001.1 M000.4
(OUT) R001.1 R002.2
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 63
Instruction
Ladder
Description
1. The instruction cannot be connected directly to the busit must come after a contact or set of
contacts.
2. The instruction directly inverts the result of the input conditions before it. The instruction can
be used for verification of the circuit or in the test stage.
A B C
On On Off
C
A B (OUT) Off On On
On Off On
Off Off On
Example
Program Expression Time Chart
R000.0 R000.1 R015.0
R000.0
(OUT)
R000.1
R015.0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
64 D50 PLC User's Manual
Instruction
Ladder
DIF R DIF: On at the rising edge ( ) (Off→On) for one scan.
DFN F
DFN: On at the falling edge ( ) (On→Off) for one scan.
Description
1. The DIF and DFN instructions may be used more than once in the ladder program for any of
the bit addresses (R, L, M, K, F, and TC).
2. The DIF instruction is a contact which is On for the first scan after the signal has changed
from Off→On. The contact is Off for all other scans, when the signal has not changed from
Off or On.
3. The DFN instruction is a contact which is On for the first scan after the signal has changed
from On→Off. The contact is Off for all other scans, when the signal has not changed from
Off or On.
4. Both DIF and DFN can be used on the same bit address in a single scan.
Example
Program Expression Time Chart
R001.4 M002.4
R (OUT) R001.4
R001.5 R001.5
F 1scan 1scan 1scan
M002.4
Contact M002.4 is On if contact R001.4 changes from Off→On or contact R001.5 changes from
On→Off.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 65
Instruction
Ladder
A block
R000.0 R000.2 R015.0
(OUT) R000.0 R000.2 R015.0
(OUT)
R000.1 R000.3
R000.1 R000.3
A block B block
B block
Description
1. Block in series:
Series connection of more than two contacts.
Starts with STR or STN.
Ends with ANB.
2. Block in parallel:
Parallel connection of more than two contacts.
Starts with STR or STN.
Ends with ORB.
3. When programming in ladder, GPC will automatically add the proper ANB and ORB
instructions as required by the contact connections.
Example
Program Expression (ANB) Program Expression (ORB)
A block B block
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
66 D50 PLC User's Manual
Instruction
Ladder
condition (MCS)
MCS: Enable processing of the following block of instructions.
MCR: End block of instructions enabled by MCS.
circuit block
(MCR)
Description
1. MCS (Master Control Set)—Marks the start of a conditional block of instructions. When the
input conditions to the MCS are false, the block of instructions that follow are executed as
false. Must be used with MCR.
2. MCR (Master Control Reset)—Marks the end of a conditional block of instructions. Must be
used with MCS.
3. Up to seven MCS/MCR blocks can be nested.
MCS.. Loop 1
MCS.. Loop 2
MCS.. Loop 3
MCR
MCR
MCR
4. If you use eight or more MCS/MCR nested blocks, a syntax error will occur.
Example
Program Expression Time Chart
F0.15 R15.0
(SET) R00.0
R000.0 R15.0
(MCS)
R15.0
(RST)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 67
Ladder
TIM
T CH = In t seconds (t = SV × time base) after the input is On, the output is On.
SV =
If the input is Off, the output is Off.
Valid channel numbers: Ch 0 through Ch 255 (256 channels)
Done contact: TC + channel number
SV set range: 0 to 65,535
SST
T CH = For t seconds (t = SV × time base) after input is On, the output is On. At
SV = the end of t seconds, the output is Off.
If the input is Off, the output is Off.
Valid channel numbers: Ch 0 through Ch 255 (256 channels)
Done contact: TC + channel number
Description
1. Ch 0 to Ch 15: Time base = 0.01 sec (10 msec)
Ch 16 to Ch 255: Time base = 0.1 sec (100 msec)
Input t sec
TIM
SST
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
68 D50 PLC User's Manual
Example
R000.0 TIM
T CH = 12
SV = 70 R000.0
0.7 sec
R000.1 SST TC12
T CH = 200
SV = 70
TC012 R000.1
M11.5 7 sec
(OUT)
TC200
TC200 M22.5
(OUT)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 69
Instruction
condition
UC Example of UC with SV = 3.
U CH =
1
condition
R
SV = Whenever count input condition (U input) turns On, PV
3 increases by 1. When PV and SV are the same, the output
TC0
(OUT) TC done contact is On. When the reset input condition (R
input) is On, the output contact is Off.
Input
(condition 1) While the count input pulses On, the PV will continue to
Input
5
count up to a maximum of 65,535. When the reset input is
(condition 3)
3
4 On, the PV is reset to a value of 0.
2 Set Value
1 1 (SV)
Present 0
Value (PV)
Output
(TC)
condition
DC
D CH =
Example of DC with SV = 3.
2
condition R
SV =
Whenever count input condition (D input) turns On, PV
3
decreases by 1. When PV is 0, the output TC done contact
is On.
Input
(condition 2) When the reset input condition (R input) is turned On, the
Reset
(condition 3) TC done contact is turned Off, and the PV is set to 0.
Set Value
(SV)
1
Present 2 0 0 0 2
Value (PV)
Output
(TC)
Description
1. The timer/counter channel can only be used once. It cannot be reused by other timer or
counter instructions (TIM, SST , UDC). A maximum of 256 channels (Ch 0 to
Ch 255) can be used.
2. The output done contact is displayed as TC + channel no. in the counter.
3. The elapsed value (PV) of the counter is maintained in case of a power failure and for
retentive purposes.
4. When SV is 0, the output contact (TC) turns On if one pulse of input occurs.
5. SV can be specified from 0 to 65,535.
CAUTION: Each input condition to the counter should be on its own line of the rung. They
should not share a common contact or be connected in any way.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
70 D50 PLC User's Manual
Example
R000.0 UC
U CH = 0 R000.0
R000.1 SV = 3
R
TC000 R000.1
M0.0 counter
(OUT) time value 0 1 2 3 4 0 0 1
Output TCO
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 71
Instruction
Ladder
UDC U input
condition
U CH = (condition 1)
1
SV = D input
condition
S (condition 2)
2
condition Reset
R (condition 3) Set Value
3
Present (SV)
Value (PV)
Output (TC)
Description
1. When the up count input (U input) turns On, the Present Value (PV) increases by 1. When the
down count input (D input) turns On, PV decreases by 1. When PV is greater than or equal to
the Set Value (SV) or is reduced to 0, the output done contact turns On.
2. In the following cases, the output done contact changes from On to Off:
When the reset input is turned On.
When the PV is decreased below the SV by the down count pulse input.
When the PV increases from 0 to 1 by the up count pulse input.
3. If the reset input (R input) is On, the output is Off. In this state, the up/down counter input
pulses are ignored and the Present Value stays reset to 0.
4. When the up count input pulse and the down count input pulse occur at the same time, the PV
does not change.
5. When the PV is 0, if the down count pulse is input, the Present Value does not change, and
the output is On. When the Present Value is 65,535, if the up-counter pulse is input, the
Present Value is reset to 0.
6. When the counter Set Value is 0, if the reset input is On then the output is Off. If up or down
is input while the reset input is Off, the output changes to On.
7. The timer/counter channel can only be used once. It cannot be reused by other timer or
counter instructions (TIM, SST, UC, DC). The number of channels available is 256 (Ch 0
through Ch 255).
8. The SV can be set to a maximum value of 65,535.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
72 D50 PLC User's Manual
Example
R000.0 UDC
U input (R0.0)
U CH = 64
R000.1 SV = 5
S
Down Input (R0.1)
TC15 R
Output (TC64)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 73
Ladder
A or B: Constant value 0 to 65,535 or a word address (R, L, M, K,
A W, PV, SV, SR).
= B
D is displayed when words are input. When using GPC5 to
A program, change the mode to double (Ctrl+T) and then enter the
<= B
comparison command.
D X
<> Y
Description
1. The comparison functions as a contact, whose On/Off state is determined by the result of the
comparison of A and B. If the comparison is true, the state is On.
2. Each comparison instruction can be used with the STR, AND, and OR instructions (GPC will
automatically use the correct instruction).
3. Double mode comparison instructions can process up to 16 bits of data (0 to 65,535).
Example
R0.0
M0.4
M21
(OUT)
= = K12
R1.0
R000.0
M21 M0.5
<= K12 (OUT) M21 0 100 400
M0.4
M21
<= 300
M0.5
M0.6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
74 D50 PLC User's Manual
Ladder
R
LET D: Destination
D=
S= S: Source
Example: S = M0, and M0 is 123
D = R17, and R17 is 45
Before execution: M0 = 123, R17 = 45
After execution: M0 = 123, R17 = 123
Description
Range: LET: 0 to 255
DLET: 0 to 65,535
1. Either a register (R, M, K, L, or W) address or a constant number can be assigned for S.
2. When S is a register address, copy the data of the register to D.
3. When S is a constant number, copy the value to D.
4. This operation occurs on every scan for which the input condition to the instruction is true.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 75
Instruction
Ladder
INC
D=
R D = D + 1: Decimal number increment
INCB
R D=
D = D + 1: BCD increment
Description
1. INC and DINC increase D in decimal by 1 when the input is On.
2. INCB and DINCB increase D in BCD (Binary Coded Decimal) by 1.
3. INC and INCB are byte instructions for processing 8 bit data.
4. DINC and DINCB are word instructions for processing 16 bit data.
Example
1 ...... 0 0 0 0 1 ….. 0 0 0 0 1
2 ...... 0 0 0 1 0 ….. 0 0 0 1 0
9 ...... 0 1 0 0 1 ….. 0 1 0 0 1
10 ...... 0 1 0 1 0 ….. 1 0 0 0 0
11 ...... 0 1 0 1 1 ….. 1 0 0 0 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
76 D50 PLC User's Manual
Instruction
Ladder
DEC D = D - 1: Decimal decrement
R D=
DECB
R D= D = D - 1: BCD decrement
Description
1. DEC and DDEC decrease D by 1 down to 0 when the input is On.
2. DECB and DDECB decrease D by 1 in BCD to 0 when the input is On.
3. Byte instructions (DEC, DECB) process 8 bit data, word instructions(DDEC, DDECB)
process 16 bit data.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 77
Ladder
ADD D = S1 + S2
R D =
S1 =
S2 =
Decimal: S1 = 21, and S2 = 22
Hexadecimal: S1 = $15 and S2 = $16
ADDB
R D = ADD Example:
S1 =
S2 = Decimal: 21 + 22 = 43
ADDB Example:
BCD: $15 + $16 = $31
Description
1. Add the data in the S1 and S2 addresses, then store the result in the D register.
2. When using ADD and ADDB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DADD and DADDB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. If the result exceeds the range of calculation, a carry occurs. The carry flag (F1.8) is changed
to On.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
78 D50 PLC User's Manual
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 79
Instruction
Ladder
SUB D = S1 - S2
R D =
S1 =
S2 =
Decimal: S1 = 34 and S2 = 19
Hexadecimal: S1 = $22 and S2 = $13
SUBB
R D = SUB Example:
S1 =
S2 = Decimal: 34 - 19 = 15
SUBB Example:
BCD: $22 - $13 = $09
Description
1. Subtract the data in S2 from S1, then store the result in the D register.
2. When using SUB and SUBB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DSUB and DSUBB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. If the result exceeds the range of calculation, a carry occurs. The carry flag (F1.8) is changed
to On.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
80 D50 PLC User's Manual
Instruction
Ladder
MUL
D =
D = S1 × S2
R
S1 = Decimal: S1 = 3 and S2 = 7
S2 =
Hexadecimal: S1 = $03 and S2 = $07
MULB
R D = MUL Example:
S1 =
S2 =
Decimal: 3 × 7 = 21
MULB Example:
BCD: $03 × $07 = $21
Description
1. Multiply the data in the S1 and S2 addresses, then store the result in the D register.
2. When using MUL and MULB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DMUL and DMULB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. If the result exceeds the range of calculation, a carry occurs. The carry flag (F1.8) is changed
to On. The high word of the result that exceeds the range of D is automatically stored in
SR20.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 81
Instruction
Ladder
DIV
D =
D = S1 ÷ S2
R
S1 =
S2 =
Decimal: S1 = 18 and S2 = 3
Hexadecimal: S1 = $12 and S2 = $03
DIVB
R D = DIV Example:
S1 =
S2 = Decimal: 18 ÷ 3 = 6
DIVB Example:
BCD: $12 ÷ $03 = $04
Description
1. Divide the data in S1 by S2, then store the result in the D register.
2. When using DIV and DIVB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DDIV and DDIVB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. The quotient is stored in the D register, and the remainder in special register SR22.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
82 D50 PLC User's Manual
Instruction
Ladder
ADC D = S1 + S2 + carry
R D =
S1 =
S2 =
Decimal: S1 = 21, and S2 = 22
Hexadecimal: S1 = $15 and S2 = $16
ADCB
R D =
Carry Flag: F1.8 = On
S1 =
S2 = ADC Example:
Decimal: 21 + 22 + 1 = 44
ADCB Example:
BCD: $15 + $16 + $1 = $32
Description
1. Add the data in the S1 and S2 addresses. If the carry flag F1.8 is On, add 1, otherwise add 0.
Then store the result in the D register.
2. When using ADC and ADCB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DADD and DADDB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. If the result exceeds the range of calculation, a carry occurs. The carry flag (F1.8) is changed
to On.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 83
Example
R0.0
R RC
R0.0 ADCB
R D = W11
S1 = W0
S2 = W1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
84 D50 PLC User's Manual
Instruction
Ladder
SBC D = S1 - S2 - carry
R D =
S1 =
S2 =
Decimal: S1 = 34 and S2 = 19
Hexadecimal: S1 = $22 and S2 = $13
SBCB
R D =
Carry Flag: F1.8 = On
S1 =
S2 = SBC Example:
Decimal: 34 - 19 - 1 = 14
SBCB Example:
BCD: $22 - $13 - $01 = $08
Description
1. Subtract the data in S2 from S1. If the carry flag F1.8 is On, subtract 1. Then store the result
in the D register.
2. When using SBC and SBCB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DSBC and DSBCB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. If the result exceeds the range of calculation, a carry occurs. The carry flag (F1.8) is changed
to On.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 85
Example
R0.0
R RC
R0.0 SBCB
R D = W11
S1 = W0
S2 = W1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
86 D50 PLC User's Manual
Instruction
Ladder
ABS ABS: Take the absolute value of D, and store it in D.
R D=
NEG
NEG: Take the 2’s complement and store it in D.
R D= NOT: Take the 1’s complement and store it in D.
NOT
R D=
Description
1. For the ABS (absolute value) instruction, if the highest bit (MSB) is 1, take the 2’s
complement. If the highest bit is 0, leave it as it is.
For example, the absolute value of $9A52 (=1001 1010 0101 0010) is $65AE (=0110
0101 1010 1110). The absolute value of $7A52 (=0111 1010 0101 0010) is $7A52.
2. The NEG (2’s complement) instruction is expressed as the 1’s complement + 1.
For example, DNEG of $7A52 (=0111 1010 0101 0010) is $85AE (=1000 0101 1010
1110)
3. The NOT (1’s complement) instruction is performed by reversing each bit.
For example, DNOT of $7A52 (=0111 1010 0101 0010) is $85AD (=1000 0101 1010
1101)
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 87
Instruction
Ladder
WAND Process each bit of S1 and S2 in bit AND operation and store the
R D =
S1 = result in D.
S2 =
S1 S2 D
DAND
R D = 0 0 0
S1 =
S2 = 0 1 0
1 0 0
1 1 1
Description
1. Process the values of the S1 and S2 bits (byte/word) in bit AND operation and store the result
in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $0033 (hex)
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
AND
S2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
D 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
R0.0 DAND
Initial conditions: W0 = $00FF
R D = W2 W1 = $3333
S1 = W0
S2 = W1 W2 = $XXXX
Operation results: W0 = $00FF
W1 = $3333
W2 = $0033
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
88 D50 PLC User's Manual
Instruction
Ladder
WOR Process S1 and S2 in bit OR operation and store the result in D.
R D =
S1 = S1 S2 D
S2 =
0 0 0
DOR
R D = 0 1 1
S1 =
S2 = 1 0 1
1 1 1
Description
1. Process S1 and S2 (byte/word) by bit OR operation and store the result in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $33FF (hex)
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
OR
S2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
D 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 89
Instruction
Ladder
XOR Process S1 and S2 in bit exclusive OR operation and store the
R D =
S1 = result in D.
S2 =
S1 S2 D
DXOR
R D = 0 0 0
S1 =
S2 = 0 1 1
1 0 1
1 1 0
Description
1. Process S1 and S2 (byte/word) by bit exclusive OR operation and store the result
in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $33CC (hex)
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
XOR (Exclusive OR)
S2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
D 0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
90 D50 PLC User's Manual
Instruction
Ladder
XNR Process S1 and S2 in bit exclusive OR NOT operation and store
R D =
S1 = the result in D.
S2 =
S1 S2 D
DXNR
R D = 0 0 1
S1 =
S2 = 0 1 0
1 0 0
1 1 1
Description
1. Process S1 and S2 (word/double word) by bit exclusive OR NOT operation and store the
result in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $CC33 (hex)
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
DXNR (Exclusive OR NOT)
S2 0 01 1 0 0 1 1 0 0 1 1 0 0 1 1
D 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 91
Instruction
Ladder
RLC D = Register address
R D=
N= N = Number of bits to rotate
MSB LSB
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
carry C p o n m l k j i h g f e d c b a
(F1.8)
p
Description
1. Order:
Shift by N bits to the left (from low-order bit to high-order bit).
Fill the carry bit (F1.8) with the MSB (most significant bit).
Shift the MSB to the LSB (least significant bit).
2. Shift the register specified as D to the left by N bits. Each bit will move one bit position
higher in the register.
3. The D register is either a byte or a word. For RLC (byte), N = 0 to 7. For DRLC (word), N =
0 to 15.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
92 D50 PLC User's Manual
Instruction
Ladder
RRC D = Register address
R D=
N= N = Number of bits to rotate
MSB LSB
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
p o n m l k j i h g f e d c b a C carry
(F1.8)
a
Description
1. Order:
Shift N bits to the right (from high-order bit to low-order bit).
Fill the carry bit (F1.8) with the LSB (least significant bit).
Shift the LSB to the MSB (most significant bit).
2. Shift the register specified as D to the right by N bits. Each bit will move one bit position
lower in the register.
3. The D register is either a byte or a word. For RLC (byte), N = 0 to 7. For DRLC (word), N =
0 to 15.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1
1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 93
Instruction
Ladder
ROL D = Register address
R D=
N= N = Number of bits to rotate
MSB 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 LSB
carry C p o n m l k j i h g f e d c b a
(F1.8)
C
Description
1. Order:
Shift N bits to the left (from low-order bit to high-order bit) including the carry bit.
The MSB (most significant bit) moves to the carry bit (F1.8).
Input F1.8 (carry bit) in the LSB (least significant bit).
2. This instruction is different from the RLC instruction because it sends the MSB to the carry
bit and the carry bit moves to the LSB. The input to the LSB can be changed by setting or
clearing the carry bit.
3. The D register is either a byte or a word. For ROL (word), N = 0 to 7. For DROL (word), N =
0 to 15.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
94 D50 PLC User's Manual
Example
…0 1 1 0 0 C
… 0 0 1 1 1 C
…0 0 0 1 1 C
C 0 0 … 0 0 0 0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 95
Instruction
Ladder
ROR D = Register address
R D=
N= N = Number of bits to rotate
MSB LSB
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
p o n m l k j i h g f e d c b a C carry
(F1.8)
C
Description
1. Order:
Shift N bits to the right (from high-order bit to low-order bit) including the carry bit.
Input the carry bit (F1.8) to the MSB (most significant bit).
The LSB (least significant bit) moves to the carry bit (F1.8).
2. This instruction is different from the RRC instruction because it sends the LSB to the carry
bit, and the carry bit shifts to the MSB. The input to the MSB can be changed by setting or
clearing the carry bit.
3. The D register is either a byte or a word. For ROR (byte), N = 0 to 7. For DROR (word), N =
0 to 15.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
C 1 0 1 0 1 …
C 1 0 1 0 0 … 0 0 C
0 0 0 0 …
MSB LSB
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
96 D50 PLC User's Manual
Instruction
Ladder
SHL D = Register address
R D=
N= N = Number of bits to rotate
MSB 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 LSB
carry C p o n m l k j i h g f e d c b a 0
(F1.8)
Description
1. Order:
Shift N bits to the left (from low-order bit to high-order bit) including the carry bit.
The MSB (most significant bit) moves to the carry bit (F1.8).
The LSB (least significant bit) becomes 0.
2. Shift the register specified as D to the left by N bits. Each bit will move one position higher in
the register.
3. The D register is either a byte or a word. For SHL (byte), N = 0 to 7. For DSHL (word), N = 0
to 15.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 97
Example
R0.0 DLET
D = MO R0.0
R
S = $FFFF
R0.1
R0.1 $FFF0
DSHL
$FFFF $FFFC
R D = M0
M0
N=2
1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
98 D50 PLC User's Manual
Instruction
Ladder
SHR
R D=
D = Register address
N=
N = Number of bits to rotate
MSB LSB
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 po n m l k j i h g f e d c b a C carry
(F1.8)
Description
1. Order:
Shift N bits to the right (from high-order bit to low-order bit).
MSB (most significant bit) becomes 0.
Fill the carry bit (F1.8) with the LSB (least significant bit).
2. Shift the register specified as D to the right by N bits. Each bit will move one bit position
lower in the register.
3. The D register is either a byte or a word. For SHR (byte), N = 0 to 7. For DSHR (word), N =
0 to 15.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Time Chart
R0.0 DLET
R D = M0 R0.0
S = $FFFF
R0.1
R0.1 DSHR
R D = M0 $FFFF $7FFF $3FFF
N=1 M0
0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 99
Ladder
BCD
R D =
BCD: Convert the S value from binary into BCD and store in D.
S =
BIN
R D = BIN: Convert the S value from BCD into binary and store in D.
S =
Description
1. BCD: Convert S, which is expressed in binary (byte /word), into BCD and store in D. The
range is as follows:
Byte conversion: S = 0 to $63 (hex) = 99 (decimal)
D = 0 to $99 (hex) = 153 (decimal)
Word conversion: S = 0 to $270F (hex) = 9999 (decimal)
D = 0 to $9999 (hex) = 39321 (decimal)
2. BIN: Convert S, which is expressed in BCD (byte /word), into binary (binary code) and store
in D. The range is as follows:
Byte conversion: S = 0 to $99 (hex) = 153 (decimal)
D = 0 to $63 (hex) = 99 (decimal)
Word conversion: S = 0 to $9999 (hex) = 39321 (decimal)
D = 0 to $270F = 9999 (decimal)
3. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
Initial conditions: W0 = $07CC = 1996 (decimal)
R0.0 DBCD
R D = W2 W1 = $1996 = 6550 (decimal)
S = W0 W2 = $XXXX
DBIN W3 = $XXXX
D = W3
N = W1 Operation results: W0 = $07CC
W1 = $1996
W2 = $1996 = 6550 (decimal)
W3 = $07CC = 1996 (decimal)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
100 D50 PLC User's Manual
Instruction
Ladder
XCHG
R D1 =
Exchange registers D1 and D2 (byte /word) with each other.
D2 =
D1 => D2, D2 => D1
DXCHG D1 .. 0 1 0 1 D1 .. 0 0 1 1
R D1 =
D2 =
D2 ... 0 0 1 1 D2 .. 0 1 0 1
Description
1. Exchange registers D1 and D2 with each other (byte/word). For example:
Byte operation: D1 = $1234 (hex) D2 = $1278 (hex)
D1 = $5678 (hex) D2 = $5634 (hex)
Word operation: D1 = $1234 (hex) D2 = $5678 (hex)
D1 = $5678 (hex) D2 = $1234 (hex)
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
R0.0 XCHG Initial conditions: W0 = $1234
R D1 = W0
D2 = W1
W1 = $5678
W10 = $5678
DXCHG
D1 = W10 W11 = $1234
D1 = W11 Operation results: W0 = $1278
W1 = $5634
W10 = $1234
W11 = $5678
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 101
Instruction
Mnemonic 7-Segment Decoder Range
SEG Convert the low-order 4 bits of S Bit
into 7-segment display format and ■ Byte
store in D
Word
Ladder
SEG Convert the value in the low-order 4 bits of address S (0 to 15) into
R D=
S= the proper format for display by a 7-segment display and store in
D. In the converted format, if a bit is 1, the segment is illuminated
(= active high output).
Description
1. Convert the value in the low-order 4 bits of address S into SEG display format, and store it in
D. The high-order 8 bits of D do not change. The 8th bit of the D register, used with many 7-
segment display cells as the decimal point, is not affected by this instruction.
For example: S = $XXX5 (hex)
D = $XX6D (hex)
=5
a
a
f b S ... 0 0 0 0 0 1 0 1 f b
g g
e c D ... 0 1 1 0 1 1 0 1 e c
d dp g f e d c b a d
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
R0.0 SEG Initial conditions: W0 = $8765 (hex)
R D = W1
S = W0
W1 = $1234 (hex)
Operation results: W0 = $8765 (hex)
W1 = $126D (hex)
The 8th bit of W1 does not change.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
102 D50 PLC User's Manual
Instruction
Ladder
ENCO
R D=
ENCO: Inspect the S register. If there is a bit in the On state, encode
S= it (on bit n) and store it in the low-order 8 bits of D. If there are two
or more bits in the S register that are in the On state, only the highest
R
DECO
D =
bit will be processed. The higher 8 bits of D do not change.
S = DECO: Interpret the lower 4 bits of the S register and store in D.
Description
1. ENCO: Set D to the value of the bit number of highest bit in S that is On (0 to 16). If there are
two or more On bits in S, use the location of the highest bit. The high-order 8 bits of D do not
change.
2. DECO: Set the bit location (0 to 15) in D pointed to by the value in the low 4 bits of S. All
other bits in D are reset to 0.
ENCO DECO
15..8 7 6 5 4 3 2 1 0 S ..... x x x x 0 1 0 1 =5
S 0..0 0 1 1 1 0 0 0 0
D 0..0 0 0 1 0 0 0 0 0
invar
D iable 0 0 0 0 0 1 1 1 6+1=7 15..8 7 6 5 4 3 2 1 0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 103
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
104 D50 PLC User's Manual
Instruction
Ladder
DIS DIS: Separate Sr into Nd+1 units of 4 bits each, and store in the
R D =
Nd = low 4 bits of words starting at D.
Sr =
UNI: Combine the low 4 bits of Nd+1 words starting at Sr, and
UNI
R D =
store in D.
Sr =
Nd =
Description
1. DIS: Separate the word value in register Sr into Nd+1 units of 4 bits each, and store these 4
bit units in sequence into registers starting at D. The 12 remaining high-order bits in each
register become 0.
2. UNI: Combine the low-order 4 bit units from Nd+1 registers starting at Sr, and store in D.
DIS
UNI
Sr $ 7 4 1 1 1 0 0 1 0 1
Sr $ 0 1 0 1
Nd+1
D $0000 0 1 0 1 If Nd=3 Sr+1 $ 1 1 1 1
Nd+1 Sr+2 $ 1 0 1 0
If Nd=3 D+1 $0000 1 1 1 0
D+2 $0000 0 1 0 0 4 Sr+3 $ 0 1 0 0
D+3 $0000 0 1 1 1 7
D $ 4 1 1 1 1 0 1 0 1
3. Nd + 1 represents the number of 4-bit segments to dissemble or unify. The range for Nd is
Nd = 0 to 3.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 105
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
106 D50 PLC User's Manual
Ladder
BNOT
BSET
D= D=
BSET: Set the Nth bit in the D register
R R
N= N= (X→1).
BNOT: Reverse the Nth bit in the D
register (0→1, 1→0).
BRST
D=
BTST
D=
BRST: Reset the Nth bit in the D
R R
N= N= register (X→0).
BTST: Copy the Nth bit to the carry bit
in the D register (X→F1.8).
Description
1. BSET: Set the Nth bit of register D to 1.
2. BRST: Reset the Nth bit of register D to 0.
3. BNOT: Reverse the state of the Nth bit of register D.
4. BTST: Set the carry bit F1.8 to the state of the Nth bit of register D.
5. These instructions are useful when it is necessary to perform bit-level operations on word-
only memory addresses, such as W, PV, SV, and SR.
if N=5 1 if N=4
D ...... 0 1 1 0 0 1 0 0
if N=3 0
if N=6 F1.8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 107
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
108 D50 PLC User's Manual
Instruction
Ladder
SUM
D=
SUM: Count the number of On (= 1) bits in the S register and store
R
S= the result in the D register.
Description
1. Count the number of On (= 1) bits in the S register and store the result in the D register.
S 1 1 1 0 0 1 1 1 1 0 1 1 0 0 1 1 Number of On(=1) is 11
D 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 D=$000B=11 (Decimal)
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
R0.0 SUM Initial conditions:M0 = 1110 0111 1011 0011 (binary)
R D = W0
S = M0
W0 = $XXXX (hex)
Operation results: M0 = 1110 0111 1011 0011 (binary)
W0 = $000B (hex) = 11 (decimal)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 109
Instruction
Ladder
SC
SC: Carry bit set (F1.8: X→1).
R
RC
R RC: Carry bit reset (F1.8: X→0).
CC
R
CC: Carry bit reverse (F1.8: 0→1, 1→ 0).
Description
1. The carry bit (F1.8) is a special internal flag that holds the result of various types of
mathematical and bit shift operations. When rotating, shifting, adding, or subtracting with a
carry, the operation depends on the state of the carry flag, as well as changes the state of the
carry flag. The above instructions are useful for setting the state of the carry flag as needed for
these types of operations.
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
R0.1 RC
R R0.1
R0.2 CC
R R0.2
F1.8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
110 D50 PLC User's Manual
Instruction
Ladder
LDR
R D = Store the value located at the absolute address pointed to by Sr into
Sr = register D.
R0 word absolute address: 0
DLDR
R D = M0 word absolute address: 192
Sr =
W0 word absolute address: 512
Description
1. This instruction is useful in transferring data patterns stored sequentially in memory, to a
single output register location. For example, if the register addresses W100 through W199
contained a set of 100 control patterns (P0 to P99) that needed to be transferred to theoutputs
of a module (address R015), the LDR instruction can be used to load the data from the
absolute addresses of W100 to W199 (absolute addresses 612 to 711) into the destination
register R015.
2. In the example below, register W0 is used as the Sr (source) register, which contains the
absolute address of the data patterns to be loaded. Initially, W0 contains 612, which is the
absolute memory address of register W100. As W0 is incremented, it successively points to
the next higher W register to load data from.
3. See Chapter 5, Absolute Address Designation, for a complete table of absolute addresses.
Control Register Register
Pattern (Absolute Value
Address)
Transfer the data of
P0 W100 (612) $22 W100-W199 ($22, $10,
P1 W101 (613) $10 $33,..., $05, $85)
P2 W102 (614) $33 registers in sequence
into R015. See the
: : : following example.
: : :
P98 W198 (710) $05
P99 W199 (711) $85
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 111
Example
WO
611 612 613 614 710 711
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
112 D50 PLC User's Manual
Instruction
Ladder
STO Store the data contained in the Sr register into the register pointed
R Sr =
D = to by the absolute address contained in register D.
R0 word absolute address: 0 (decimal)
R
DSTO
Sr =
M0 word absolute address: 192 (decimal)
D = W0 word absolute address: 512 (decimal)
Description
1. This instruction is useful in storing data patterns from a single input register to a sequential
table of registers in memory. For example, if the process measurements (D0 to D99) from an
input module located at address R001 needed to be stored in register addresses W100 through
W199. The STO instruction can be used to load the data from the source register R001 to the
absolute addresses of W100 to W199 (absolute addresses 612 to 711).
2. In the example below, register W0 is used as the D (destination) register, which contains the
absolute address of the locations to store the process measurements. Initially, W0 contains
612, which is the absolute memory address of register W100. As W0 is incremented, it
successively points to the next higher W register to store data.
3. See Chapter 5, Absolute Address Designation, for a complete table of absolute addresses.
Process Register Register
Measurement (Absolute Value
Address)
Store the process
D0 W100 (612) $34 measurement data ($34,
D1 W101 (613) $25 $25, $88,...,$17, $09)
D2 W102 (614) $88 you get from inputs at
001 in sequence into
: : : W100-W199. See the
: : : following example.
D98 W198 (710) $17
D99 W199 (711) $09
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 113
Example
STO
R0.0 (bit)
Sr = R1
D = W0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
114 D50 PLC User's Manual
Instruction
Ladder
MOV
R D =
MOV: Copy Ns words from Sr to D.
Sr =
Ns =
FMOV
R D = FMOV: Repeatedly copy the value V, Ns times to words starting at
Ns =
V =
register address D.
Description
1. MOV: Copy a total of Ns registers from registers starting at Sr word into registers starting at
D. This instruction is used for mass duplication of blocks of registers.
2. FMOV: Copy the constant number V, Ns times into registers starting at D. This instruction is
useful for initializing the internal and external memory of certain areas when initializing a
program.
Sr ...... 1 0 1 0 1 0 1 0 V value ...... 1 0 1 0 1 0 1 0
Sr+1 ...... 0 0 0 0 1 1 1 1 Ns=4
Sr+2 ...... 1 1 1 1 0 0 0 0 D ...... 1 0 1 0 1 0 1 0
MOV Ns=3 FMOV D+1 ...... 1 0 1 0 1 0 1 0
D ...... 1 0 1 0 1 0 1 0 D+2 ...... 1 0 1 0 1 0 1 0
D+1 ...... 0 0 0 0 1 1 1 1 D+3 ...... 1 0 1 0 1 0 1 0
D+2 ...... 1 1 1 1 0 0 0 0
3. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 115
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
116 D50 PLC User's Manual
Instruction
Ladder
BMOV
R Db =
BMOV: Copy Ns bits from bit address Sb into bit address D.
Sb =
Ns =
BFMV
R Db = BFMV: Copy the V bit (0 or 1) into bit address D, Ns times.
Ns =
V =
Description
1. BMOV: Copy a block of Ns bits starting at bit address Sb to bit address D. This instruction is
useful for moving large blocks of bits at one time, or for copying sections of bits within a
word without copying the entire word.
2. BFMV: Fill a block of Ns bits starting at bit address D with the value of V (0 or 1). This
instruction is useful for initializing a set of bits to 0 or 1 at the start of a program or process.
Sb ...... 0 1 1 1 0 1 0 0 If V=1
If Ns=5
BMOV If Ns=4 BFMV Db ...... 0 1 1 1 1 1 0 0
Db ...... 0 1 0 1 0 1 0 0
3. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
R0.0 BMOV R2 before 0 0 1 1 1 1 0 0 0 1 1 1 0 1 0 0
R Db = R2.3 operation
Sr = R2.1
Ns = 4
R2 after 0 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0
BFMV operation
Db = R3.2
Ns = 5
V =1 R3 before
operation 0 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0
R3 after
0 0 1 1 1 1 0 0 0 1 1 1 1 1 0 0
operation
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 117
Ladder
R
FOR FOR: Begin execution of instructions between (D)FOR and
D =
corresponding NEXT. Repeat execution D times.
………
………
………
NEXT: Decrease D of FOR instruction by 1. If not zero, repeat from FOR
NEXT instruction.
Description
1. The FOR/NEXT instructions are used to perform a block of instructions inside a ladder
program repeatedly. The parameter D of the FOR instruction is a value indicating how many
times the block of instructions is to be performed.
2. Branch instructions such as JMP and CALL can be made inside the FOR/NEXT loop.
3. The number of loops to execute (D value) can be changed inside of the FOR/NEXT loop. This
can be used to dynamically increase or decrease the number of loops performed while
processing the loops.
4. If the D register is 0 before the FOR instruction, the instructions between the FOR and NEXT
instructions will NOT be executed. Instead, the program will jump directly to the instruction
following the NEXT.
5. As the FOR/NEXT loop occurs within a single program scan, a large value of D will lengthen
the scan time of the program considerably.
6. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
118 D50 PLC User's Manual
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 119
Instruction
Ladder
R
JMP
L =
JMP: Jump to the LBL instruction L (L = 0 to 31).
LBL
L = LBL: Position jumped to by the JMP instruction.
(OUT)
Description
1. This instruction is used to conditionally perform a set of instructions in the program. When
the input condition to the JMP instruction is true, execution will jump over the following
instructions, directly to the corresponding LBL label. When the input condition is false, the
instructions following the JMP will be executed normally, and no jump occurs.
2. The range of L is 0 to 31, allowing 32 jumps to be used.
3. The given L label may only be used once in a program. It may not be duplicated.
4. For a given JMP with parameter L, there MUST be a corresponding LBL with the same L
value. Also, the LBL instruction must come after the JMP instruction in the program. If either
of these two conditions is not satisfied, an error will occur preventing execution of the
program.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
LBL
L =3
LBL
L =1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
120 D50 PLC User's Manual
Instruction
Ladder
R
JMPS JMPS: Jump directly to the corresponding JMPE instruction.
JMPE
JMPE: Position jumped to by JMPS instruction.
(OUT)
Description
1. The JMPS and JMPE instruction function identically to the JMP and LBL instructions, but do
not require the use of a label. Additionally, the JMPS/JMPE pair may be used more than once
in a program.
2. This instruction is used to conditionally perform a set of instructions in the program. When
the input condition to the JMPS instruction is true, execution will jump over the following
instructions, directly to the corresponding JMPE. When the input condition is false, the
instructions following the JMPS will be executed normally, and no jump occurs.
3. For the JMPS instruction, there MUST be a corresponding JMPE. Also, the JMPE instruction
must come after the JMPS instruction in the program. If either of these two conditions is not
satisfied, an error will occur preventing execution of the program.
4. The JMPS/JMPE instructions may NOT be nested—after each JMPS instruction, there must
be a JMPE instruction before the next JMPS instruction may be programmed.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 121
Example
R0.1
JMPS
R
JMPE
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
122 D50 PLC User's Manual
Instruction
Ladder
CALL
R Sb =
CALL: Call subroutine Sb (Sb = 0 to 31)
SBR
Sb = SBR: Start Subroutine
Description
1. The subroutine instructions are used when a block of instructions needs to be called more than
once, or called with different values, from the main program.
2. The subroutine to be called is specified by the Sb parameter in the CALL and SBR
instructions. The CALL instruction causes execution to jump to the specified SBR instruction.
After executing the instructions between SBR and RET, program execution is returned to the
instruction following the CALL instruction that called the subroutine.
3. The subroutine defined by the SBR and RET instructions must come after the associated
CALL instruction. All subroutines must be defined and programmed at the end of the control
program. A total of 64 subroutines are available (Sb = 0 to 31).
4. The same subroutine (SBR Sb) can be called by multiple CALL instructions. However, each
subroutine number may only be used once by an SBR instruction.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 123
Example
SBR
Sb = 3
RET
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
124 D50 PLC User's Manual
Instruction
Ladder
R
WAT WAT: Clears the watchdog timer while executing the program.
Description
1. This instruction clears the watchdog timer within the CPU module to prevent the program
from stopping even if the scan time exceeds the maximum watchdog time. The default
watchdog time is 3 seconds.
2. Under normal operation, the PLC executes the following process:
Read external inputs.
Process the control program.
Update the external outputs.
One execution of this process is termed a scan. When the time it takes to process a single scan
(the scan time) is excessively long, abnormal results may occur caused by the delay in reading
inputs and updating outputs. For this reason, a watchdog time is set by the PLC which, when
exceeded, indicates that an error has occurred. When this happens, the PLC stops the program
to prevent abnormal operation.
3. Under certain circumstances, extremely lengthy scan times may be allowable. The WAT
instruction allows the user to reset the watchdog timer to prevent the PLC from automatically
going into the error condition and stop mode when the watchdog time is exceeded.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 6: Instructions 125
Instruction
Ladder
END
Description
1. This instruction indicates the end of the control program.
2. This instruction is automatically added by GPC. It is not programmed by the user.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
126 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 127
This chapter provides information on testing and troubleshooting the D50 PLC.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
128 D50 PLC User's Manual
Test Precautions
When checking the system:
CAUTION: Always turn off the power whenever you install or remove a module.
1. Check the module more than one time before exchanging the part.
2. Include a complete description of the symptoms when you return a defective module for
repair.
3. When you suspect that a contact may be defective, it might only need cleaning. Clean the
contact using a clean cotton cloth and alcohol. Then retest the module.
4. Do not use thinner to clean any of the parts.
System Checks
Before installing the I/O wiring of the PLC and supplying power, check the following items.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 129
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
130 D50 PLC User's Manual
Testing Procedures
When the PLC has been installed and wired, begin testing in the following order.
Supply Power
Initialize Memory
Programming
Testing
Correct Program
Store Program
End
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 131
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
132 D50 PLC User's Manual
Correcting Errors
System Check
Refer to the system check flow chart when you encounter problems during startup and testing.
Yes
Yes
No
Yes
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 133
Power Supply
Check Flowchart
Is power being No
applied to the Supply power
terminals?
Yes
Yes
Yes
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
134 D50 PLC User's Manual
Run Check
Is the controller No
mode switch set Set mode switch to RUN
to RUN?
Yes
No
Is RUN LED On?
Yes
Place in Run
Yes
using GPC - Is RUN END
LED On?
No
No
Yes Yes
*Be certain to save the program before clearing the PLC program so it is not lost.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 135
Error Check
Are any
of the bits from Yes F0.0 = 1 System Error -
F0.0 to F0.7 in the Resupply Power
ON state?
Are any
No of the bits from
F0.0 to F0.7 in the
ON state?
No
No Is bit F1.7
in the ON state?
Yes Yes
Is the ERR LED
illuminated?
No
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
136 D50 PLC User's Manual
I/O Check
This page presents an example of a troubleshooting procedure to follow when errors are encountered
with the external I/O. In this example, two of the inputs on the controller are used to control an output
on the controller. This flow chart is based on the following circuit, and assumes that the error
encountered is that the output connected to R15.0 is not turned On when it should be.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 137
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
138 D50 PLC User's Manual
System Operation
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 139
Digital Inputs
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
140 D50 PLC User's Manual
Digital Outputs
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 7: Testing and Troubleshooting 141
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
142 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 8: Troubleshooting Noise Problems 143
This chapter outlines the various causes of noise that affect the D50 PLC system. Installation tips and
troubleshooting methods for identifying noise problems are also provided.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
144 D50 PLC User's Manual
Noise Occurrence
Types of Noise
• Radiation noise is transmitted in the form of a magnetic wave. The amplitude of the magnetic
wave is measured in Gauss.
• Conduction noise is transmitted through a direct path such as signal wiring or ground
connections as a strong, high-voltage surge. This type of noise is measured as voltage,
current, or power.
• Normal mode (single ended developed) noise can come through the power and/or the signal
cables. This type of noise is not equally distributed across the PLC input terminals.
• Common mode noise can come through the power and/or the signal cables. In this case the
noise is close to the same amplitude thus the term common on both leads of the cable.
• Impulse noise is electrical or magnetic energy that has less than a 200 msec pulse duration.
• Surge noise is electrical energy that has a pulse duration of 200 msec to 2 sec.
• Transient noise is electrical energy that has an extremely short duration usually lasting only a
few nanoseconds (1 x 10-9).
• Isolation means to physically separate the connection between areas. Isolation is effective for
common mode noise.
• Filters are effective against conduction noise such as impulses. Filtering is used to remove
normal mode noise and common mode noise that has been imprinted onto the signal or power
cables. A low-pass filter passes only low frequency signals. Low-pass filters are classified as
either LC (L = inductor and C = capacitor) filters or RC (R = resistor and C = capacitor)
filters, according to the electrical parts that form the filter.
• Surge absorbers are devices that protect electronic equipment by clamping down extremely
high voltage spikes (lightning strikes) in power cables to a safe level.
• Charge is an excess or deficiency of electrons in an object. When an object becomes charged,
a magnetic field forms around the object and can radiate noise as the amplitude of the charge
is varied.
• An inductive load is a device which creates a large magnetic field that opposes any change in
the voltage applied across the device. Devices that act as inductive loads are relay coils, motor
coils, starter coils and actuator coils.
• Stray capacitance and inductance is created during the installation of an electrical system.
When excess cabling is left wound up this creates stray inductance in the form of a coil. All
cabling inherently has a capacitive rating (so many picofarads per meter). Excessively long
cable runs or untrimmed cable lengths or poorly specified cable types can add large levels of
stray capacitance.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 8: Troubleshooting Noise Problems 145
Sources of Noise
There are three main sources of noise. Some of these sources generate large noise amplitudes. The
occurrence time can be very short (impulse type) or continuous (power line induced). Some noise
levels can damage the D50 PLC components and peripheral devices.
As a device crosses the magnetic field, electrical currents will be induced. The induced
current could be summed vectorially with the normal electrical currents. In some cases this
could cause cancellation of electrical current flow (essentially shutting down the circuit). In
other cases this could create large surge currents that cause severe damage to the circuit. In
most cases the summation of the currents cause errors in readout and control values. Some
sources of this kind of noise are relays, magnetic contactors, inverters, computer monitors,
and motors.
2. Noise from Power Cables
When various loads are connected to a single power source the current draw conditions and
impedance imbalance can cause unwanted noise. The noise created by these sources can
affect other devices connected to the power source, via spikes, sags, reflected high speed
switching noise, and ground pulse. This is the most frequent cause of noise in a PLC’s
environment.
3. Noise from Natural Causes and Work Practices
Lightning, welding, shared cable trays, “grandfather’d plant wiring,” and static electricity can
also be sources of noise.
In the first case, the noise is caused within the equipment and is called internal noise. In the second
case, the noise is caused by external factors and referred to as external noise. These two types of noise
may also be referred to as artificial system noise.
The noise caused by natural occurrences can not be prevented, but can be controlled. Precautions such
as good grounding techniques, surge suppressors, and burying cables underground can help minimize
the affect. This type of noise may be referred to as natural noise.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
146 D50 PLC User's Manual
To ground the PLC, connect a 12 to 16 gauge wire from the frame ground terminal strip screw of the
controller to a high quality earth ground (less then 2 Ω). Since electrical currents always take the path
of least resistance, the noise currents induced by a magnetic field will flow through the PLC frame
ground terminal screw to earth ground. This essentially draws the noise away from the PLC modules.
The most effective method of grounding the PLC frame is to ground the PLC independent of other
equipment. Avoid grounding the PLC through a daisy chain of wire connections with other equipment.
See figures below for good and bad examples:
The length of the ground cable should not exceed 65 feet (20 m). For best results, the resistance of the
ground cable should be less than 2 Ω.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 8: Troubleshooting Noise Problems 147
Isolation
There are several methods of isolation:
• Attach an isolation transformer between the PLC power supply and the VAC source to help
remove noise that flows in the power cable. Try to attach the isolation transformer as near to
the PLC power supply input terminal strip as possible.
• Some isolation transformers come with a shield that can be grounded. This shield, when
properly grounded, enhances the transformers ability to remove unwanted spikes.
• Be certain to size the isolation transformer to handle the necessary power rating required by
the system. A good practical rule in specifying an isolation transformer is to multiply the
required load capability by 1.35 (35% additional deliverable power). This allows expansion of
the PLC system at a later date without the immediate need to upgrade the isolation
transformer.
Isolation
I Transformer PLC
AC power AC input
Ground
terminal
• When heavy noise is expected, also use an isolation transformer on the AC control power to
the I/O modules and devices. A cost-effective way of specifying the isolation transformer for
this requirement would be to specify a transformer with multiple primary and secondary
windings and wiring the PLC as shown below. Again, be certain to size the isolation
transformer to handle the necessary power required plus a 35% surplus and additional
windings to allow for future expansion of the system.
PLC input
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
148 D50 PLC User's Manual
Filters
Filters should be used to suppress high frequency noise.
When using a low-pass filter specify one that is designed for power line applications. Many different
types are available from simple modules to complex units.
A single device is not necessarily the most cost-effective device for all applications. In specifying the
proper filter one must take into account the amplitude/power level of the noise and how often the noise
is present.
When the proper device is selected it is best to place the device as close to the PLC power supply
connections as possible. Below is an example of how to install a filter. The chart lists a typical
midrange power line filter for reference.
Filter PLC
AC power AC input
Ground
terminal
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 8: Troubleshooting Noise Problems 149
Surge Absorber
• A surge absorber reduces the electrical shock to the PLC by taking high-voltage spikes to
ground. Attach a surge absorber in the power line in front of the PLC to prevent damage from
lightning. The surge absorber will clamp the unwanted high voltage and prevent it from
flowing to the PLC power supply. When specifying a surge absorber, the present wiring
system must be carefully reviewed. Some surge absorbers are designed to be placed into the
main power distribution panel while others are designed to be installed in the field close to the
PLC. It is always best to place the surge absorber as close to the PLC as possible.
• Surge absorbers can consist of either series resistors with capacitors that will couple the spike
to ground, or Zener diodes that safely clamp the high voltage spikes or MOVs (Metal Oxide
Varistors). Some surge absorbers will need replacement after they have suppressed a spike
(similar to a fuse). Others can be reset. In specifying a surge absorber consider how often the
surges are occurring and the maximum amplitude in volts or joules.
Some typical surge absorbers are listed in the following table. For actual installation and
application details, refer to manufacturers manuals.
Burying Wire
• Cabling that is strung from pole to pole in free space is an antenna for lightning. When
possible bury the cable underground. The earth acts like a shield and absorbs most if not all of
the lightning induced noise signals before they are able to reach the cable.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
150 D50 PLC User's Manual
Shielding Cabling
• When the wiring for the I/O module is more than 165 ft (50 m), shield the wire by installing it
in ferrous (steel) conduit and use shielded wire. Attach the conduit/shield to the ground at the
PLC ground terminal as shown below.
PLC
In
COM
Ground
terminal
Use shield wires,
or shield the wire Ground (ground resistance
less than 2 Ω)
• Separate the input and output module wiring, and power circuit cables. Make sure to properly
ground the shields of each cable directly to ground. Do not create a daisy chain of ground
jumpers over several feet and then pigtail one end lead to ground. This method allows
multiple ground current paths to exist and can induce noise.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 8: Troubleshooting Noise Problems 151
DC Input Module
Attach a diode in a reverse biased direction parallel to the inductive load, as close as possible to the
load.
DC input module
IN
Inductive Flywheel
load diode
DC power COM
AC Input Module
Attach an RC network parallel to the inductive load.
AC input module
IN
Inductive
R
load
C
COM
AC input module
IN
wiring is long
R
C RIN
COM
In case of AC power
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
152 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Chapter 8: Troubleshooting Noise Problems 153
Warning
The following two protection methods should be avoided. Each of these methods can be effective in
removing the sparks when power to the inductive load is turned off. However when power is turned on
to the inductive load there will be a high inrush current applied across the relay contacts as they are
mating. Since all relay contacts have some bounce while mating, arcing will occur and potentially melt
the relay contact points. This is the reason for having the resistor in the RC network described earlier.
Inductive load
Inductive load
OUT OUT
C C
Power
Power
COM
COM
• Transistor Output Module—it is best to attach a flyback diode parallel to the inductive load,
as close as possible to the load. In this configuration output switching frequency should be
held to less than 20 times per minute.
COM
• SSR Output Module—attach a surge suppressor parallel to the inductive load, as close as
possible to the load. In this configuration output switching frequency should be held to less
than 20 times per minute.
R C
COM
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
154 D50 PLC User's Manual
Troubleshooting
• Noise from magnetic fields induced by other electrical/electronic equipment onto the PLC can
be avoided by relocating the PLC during the design process, installing the PLC in a grounded
steel enclosure, or attaching a filtering or suppression shield/circuit to the device which is
generating the magnetic field.
• Noise from power cables can be corrected by using a different ground for the PLC, an
isolation transformer, attaching a line/ground filter, or changing the power wire connection of
the PLC so that it is closer to the source of the power, therefore lowering the power source
impedance.
• Noise from lightning should be suppressed by use of surge suppressors that are specifically
designed to protect electronic equipment from lightning.
• Whenever welding near an electronic device, care must be used to avoid connecting the
ground cable of the welder to a ground of the electronic device. One method of protecting the
PLC is to disconnect the PLC from power and lifting all power and ground connection. An
alternate method is to establish two separate grounds, one for electronic equipment and one
for welding. Test the ground separation carefully before having electronic equipment up and
running while welding.
• The quickest way to avoid noise from shared cable trays is to have two cable tray runs. One
for power and power control cabling and the other for electronic equipment and low level
control wiring. Proper cable selection with good shielding properties in some instances will
allow both types of cabling/wiring to co-exist in the same tray system.
• “Grandfather’d” plant wiring has to be analyzed on a case by case basis. The best approach is
to always install new cabling, conduit, and cable tray runs. Though this may not always be
practical, it removes the surprise of high noise and system problems during system startup.
• Static electricity suppression requires good grounding practices throughout the plant. Static
electricity is a potential difference developed on a material surface due to the loss of protons
or electrons. Since rubbing action can cause the build up of static electricity, the best
protection is to have the electronic equipment enclosed in a grounded housing that requires
the user to first make contact with a safe discharge path. In high static environments like
styrofoam manufacturing or glass manufacturing, electronic equipment should always be
protected from static electricity.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 155
The D50 PLC communication protocol provides a simple, yet complete method of communications
between the Cutler-Hammer program loader software (GPC) and the PLC. Using the open protocol
outlined in this appendix, the user can quickly and easily expand the capabilities of the overall PLC
system by communicating to the PLC using a variety of peripheral communications equipment such as
operator interfaces and computers. Additionally, the communications protocol allows for multiple
Cutler-Hammer D50, D300, and D320 PLC’s to communicate to a central computer on a single
network using RS-485, at distances of up to 4000 ft (1.2 km).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
156 D50 PLC User's Manual
Communication Rules
Communication Environment
The D50 PLC communications protocol uses the following settings:
Communication Protocol
Query (Q)
Step 1
Set the network ID number for the PLC to communicate with and send a Q signal from the peripheral
device to the PLC.
A QA signal is sent from the PLC to the peripheral device, indicating that the Q signal from the
peripheral device was received.
An RR signal goes from the peripheral device to the PLC, indicating that the QA signal from the PLC
was received, and requesting the final data response. This signal is sent when Q→QA is normal.
Response (R)
Step 4
When the PLC receives the RR from the peripheral device, it sends an R signal which gives the results
of the original Q signal sent by the peripheral device. The communication cycle for one function code
ends when the PLC sends the R.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 157
Repeated Response
Step 5
Once the original Q has been sent to the D50 PLC, the R message containing the requested data for
that query can be repeatedly received by sending only the RR message again.
Communications Delay
The D50 PLC will return a signal after receiving a Q or an RR within a specific time. However, due to
errors in the communications network, CRC values, and communication speed flux, there are
occasions when the PLC will not receive the signal from the peripheral device. The peripheral device
should allow up to three seconds for a response from the PLC. If there are no responses to the Q or the
RR message, the communication is considered to have failed, and the Q or RR should be sent again.
Example
1. No communication error.
For the internal processing of the PLC CPU
send RR at least 5 msec after receiving QA.
Peripheral device
Q QA RR R
PLC
3 sec
Peripheral device
Q Q QA RR R
PLC
PLC
Peripheral device
Q QA RR R RR R
PLC
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
158 D50 PLC User's Manual
CPU ID
All devices connected to the network need a network ID number for communication. There is an
available range of 0 to 191 network ID numbers. Redundancy is not permitted. When a single PLC and
a peripheral device are connected, usually 0, 1, or 255 is assigned as the network ID number to the
PLC. When the peripheral device wishes to communicate to a connected PLC regardless of its
programmed network ID number, it can use global network ID number 255, to which any PLC will
respond. When several CPU modules are connected to one communication network, they must use
individual ID numbers from 0 to 191. The PLC’s network ID number is configured using the GPC
program loader software.
• Each function code is 1 byte. When the PLC receives a query (Q), the function code of the
final response (R) is formed by adding $80 (hex) to the function code sent by the query.
• The function code of the R message can be used by the peripheral device to verify that the
correct Q message has been received by the PLC.
Communication function
* $ notes hexadecimal notations
Note: Function codes $07 to $10 are used for programming and system control functions, and are
beyond the scope of this manual. Please contact Cutler-Hammer technical support for more
information.
Note: The bit/word address assignment uses the absolute address method for reading memory
locations. (See Chapter 5 for memory map.)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 159
• The CRC is a 2-byte checksum that is calculated from the data of every message and then
attached to the end of the message by the sender. It is used as an error-checking device to
prevent loss or corruption of data during transmission of the message.
• The sender of the message calculates and attaches the CRC when it generates and sends the
message. The receiver should also calculate the CRC from the data of the message and
compare the calculated value to the CRC that was sent. If the calculated CRC does not match
the CRC received, an error has occurred in the message during transmission.
The following subroutines illustrate the program code required to calculate the CRC for a message.
The initial value of the CRC (CRC_Sum) is set to 65535 ($FFFF). Then one of these subroutines
would be called once for each byte (data) of the CRC calculation range shown above.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
160 D50 PLC User's Manual
Length of the
information field (byte) CRC-16 code
1-255:1-255 byte (2 byte)
0:256 byte
Function Code
Sender ID Number
Receiver ID Number
The frame is sent from the source address (SA) by the sender to the destination address (DA), the
receiving device. For the query (Q) and the response request (RR), the SA is the address of the
peripheral device, and the DA is the address of the PLC to which the message is being sent. For the
query answer (QA) and the response (R), the PLC becomes the sender of the message, and so the PLC
address is the SA and the peripheral device’s address is the DA.
Constant
Constant
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 161
Read Bits
The following can be read:
Base CRC
DA SA $01 $03 L H N L H
PLC ID (CPU ID) For the response, the PLC is the sender
and the PC the receiver, so the DA and SA
Peripheral Device ID (PC ID) are reversed from the Q message.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
162 D50 PLC User's Manual
Write Bits
Writing bits allows you to:
• Modify the contents of the bits stored in the absolute address (R, L, M, K, or F).
• Change the bit state between On/Off.
• Change multiple consecutive bytes.
Base
BASE Base+0
BASE Base+1
+0 BASE +1 Base+N-3
BASE+N-3 CRC
CRC
DA SA $02 N L H Bit value Bit value .… Bit value L H
CRC
DA SA $82 $01 $00 L H
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 163
Read Words
• Read the content of the words (R, L, M, K, F, or W) assigned to the absolute address.
• Read n consecutive words.
Base CRC
DA SA $03 $03 L H N L H
Number of words
to be read.
Length L = N×2
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
164 D50 PLC User's Manual
Write Words
• Changes the content of the words assigned to the absolute address (R, L, M, K, F, or W).
• Can change n consecutive word contents.
Length L = N×2+2
CRC
DA SA $84 $01 $00 L H
Fixed
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 165
• Reads the bits and/or word contents of the specified absolute addresses.
• Can read bits and words regardless of their order and location in memory.
AO A1 AN CRC
DA SA $05 L L H L H … L H L H
Methods of assigning bit/word abs. address Assigning absolute address for bits
15 14 13 0 Abs. address for the K12 12th bit = $14CC
Ax = 0001 0100 1100 1100
Absolute Address Ax L = $CC, H = $14
Assigning absolute address for word
0 0 Bit Address Abs. address for the K12 word = $014C
0 1 Word Address Ax = 0100 0001 0100 1100
1 x Not Used Ax L = $4C, H = $41
Ax = A0, A1,…, An Dx = D0, D1,…, Dn
D1 Dn CRC
DA SA $85 Lx DO L H … L H L H
For the A0, A1,…, An requested by the Q, the content D0, D1,…, Dn of
the word/bit is returned.
If Ax denotes a bit address, the Dx data is 1 byte (On = $FF, Off = $00),
The size and location of the and if Ax denotes a word address, the Dx data is 1 word (2 bytes).
returned data depends on the
combination of bit/word
addresses requested. The Lx
parameter should be checked to
verify data size.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
166 D50 PLC User's Manual
• Changes the content of the bits or words at the specified absolute addresses.
• Words and bits may be modified regardless of their order and location in memory.
A0 A1 CRC
DA SA $06 L L H D0 L H D0 … L H
CRC
DA SA $86 $01 $00 L H
Fixed
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 167
Note: This program is provided for illustrative purposes only. It is left to the responsibility of the
user/programmer to ensure that any programs written based on, and using the information
contained in this program, satisfy the requirements of their particular application.
Program Notes
#include <stdio.h> This program was written in Borland
#include <stdlib.h> C++. It uses the peripheral device
#include <dos.h> (PC) to read the M000 to M127
#include <conio.h> words, and stores them in the K000 to
K127, and then compares the two
registry values and indicates the
#define PC_ID 0xE2 results on the screen using the OK or
#define Time_limit 28 the FAIL notation. The user may read
#define retrial_limit 2 or manipulate the various
#define TRUE 1 communication function codes and
#define FALSE 0 the information sent to control the
#define lower_byte(x) (unsigned int) ((x)& 0x00FF) PLC in various ways.
#define upper_byte(x) (unsigned int) (((x)& 0xFF00)>>8)
This program consists of a header, the
main program and various functions.
typedef int BOOL; The buffers and variables needed to
unsigned int PORTADD,DIVISOR,sending_delay, receiving_delay; store the communication data are set
unsigned int sending_frame[262],receiving_frame[262]; as global variables, so that the main
unsigned int Crc; and various other functions may
unsigned int card,i,ix,iy,smode; reference them.
unsigned int port_number;
unsigned int PlcID,OldID; By using the COM1 and COM2 ports
BOOL Success; of the computer, serial
unsigned int data,JobID,retrialC; communication is possible. By using
unsigned int Old,New,receiving_Index_max,sending_Index_max,index,watchdog; the GPU-300 card, parallel
unsigned int M[128],K[128]; /* Example Register */ communication is also enabled
(NOTE: The GPU-300 card is not
currently offered by Cutler-Hammer).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
168 D50 PLC User's Manual
void main(void)
{
unsigned int i;
/* Selection of communication port */
clrscr();
printf("PORT : COM1[1]/ COM[2]/ GPC-232[3]/GPC-485[4]/ GPC-Parallel[5] = "); Beginning of the main program
scanf("%d",&port_number); Select the port of the peripheral
if ((port_number < 1) || (port_number > 5)) port_number=5; device for the communication:
/* Selection of Baudrate for Serial communication */ Serial 9 PIN, 25PIN
sending_delay=10; Parallel GPU-300 parallel
if (port_number != 5) port
{
printf("GPC «å BAUD-RATE : 9600[1]/ 4800[2]/ 2400[3] = "); Select board rate:
scanf("%d",&i); 9600 bps (max)
if ((i < 1) || (i > 3)) i=1; 4800 bps
if (i == 3) i=4; 2400 bps
if ((port_number == 1) || (port_number == 2)) DIVISOR=12 * i; Set the communication environment
else DIVISOR=40 * i; (delay time) for the selected ports.
receiving_delay=3 * i + 1;
}
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 169
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
170 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix A: D50 PLC Communication Protocol 171
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
172 D50 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix B: Special I/O Functions 173
The D50 PLC provides several special functions through the I/O built into the D50 controller. This
appendix details the configuration and operation of the integrated special I/O functions, including the
high-speed counters, pulse output, pulse catch input, and selectable input response delay.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
174 D50 PLC User's Manual
Overview
The D50 PLC provides several additional functions through the integrated I/O on the base unit. These
special I/O functions expand the capabilities of the D50 PLC to allow for use in a variety of specialized
applications. This appendix details those capabilities, and provides instructions on configuration,
application, programming, and operation of the special I/O. Four types of advanced operation are
available, as listed below.
Note: These special functions are only available on the controller units. They are not available
through any of the digital expansion modules, only on the base module.
Pulse Output
The D50 also provides one configurable output supporting two modes of pulse operation. The first
mode allows the user to send out a configurable number of pulses, at a desired frequency (Pulse
Mode). The second mode allows the user to set the output to continuous pulses at a given frequency,
with a configurable duty cycle (PWM Mode).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix B: Special I/O Functions 175
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
176 D50 PLC User's Manual
Register Descriptions
PV (R009/10, R024/25)
The PV registers are a pair of registers that hold the Present Value for the high-speed counter. The PV
registers hold the actual counting value of the inputs coming into the PLC. Like STR and END, PV is
a 24-bit value.
FLAG (R026)
The FLAG register provides comparison bits between the high-speed counter Present Values (PV) and
End Values (END). Each counter channel has three bits in the FLAG register that indicate whether the
PV is greater than (>), less than (<), or equal to (=) the END value. Since the equal to comparison is a
latched bit, a fourth bit is provided to reset the = bit.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix B: Special I/O Functions 177
Bit Registers
Three of the configuration registers used by the high-speed counters are bit registers – each bit in the
register serves a different purpose. The three bit registers and the individual bit meanings are
described in further detail below.
Bit #: 7 6 5 4 3 2 1 0
Bit Name: RUN UD/2 RING PRST - R2 R1 R0 Description
Enable R0.0 as Up/Ph. A count input
Enable R0.1 as Down/Ph. B count input
Enable R0.2 as Preset input
Not Used
Preset Counter (STR PV)
Enable Ring Counter mode
Enable Up/Down or 2-phase mode
Run/Stop – Turn on Counter
Bit #: 7 6 5 4 3 2 1 0
Bit Name: RUN UD/2 RING PRST - R6 R5 R4 Description
Enable R0.4 as Up/Ph. A count input
Enable R0.5 as Down/Ph. B count input
Enable R0.6 as Preset input
Not Used
Preset Counter (STR PV)
Enable Ring Counter mode
Enable Up/Down or 2-phase mode
Run/Stop – Turn on Counter
Bit #: 7 6 5 4 3 2 1 0
Bit Name: EQ1D GT1 LT1 EQ1 EQ0D GT0 LT0 EQ0 Description
PV = END on channel 0 (latched)
PV < END on channel 0
PV > END on channel 0
Unlatch EQ0 bit (PV = END)
PV = END on channel 1 (latched)
PV < END on channel 1
PV > END on channel 1
Unlatch EQ1 bit (PV = END)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
178 D50 PLC User's Manual
Programming Procedure
The high-speed counter is very easy to use, and requires very little programming. The following steps
outline the standard programming procedure to set up, turn on, and use the D50 high speed counter.
1. Configure the type of counter to be used by turning on the necessary mode bits in the MODE
register. To set the counter up for 2-phase or Up/Down mode, set bit 6 (UD/2). To configure
the counter as a ring counter, set bit 5 (RING). If the counter uses only a single input, and is
not a ring counter, leave both bits off.
2. Enable the inputs required by the counter to count. On channel 0, set bit 0 (R0) of its MODE
register R4 if the input on R0.0 will be a count input. Likewise set bit 1 (R1) if the input on
R0.1 will be a count input (for example, for a down-counter or 2-phase counter). On channel
1, set bit 0 (R4) and bit 1 (R5) of its MODE register R19 based on which inputs, R0.4 and
R0.5, will be used as count inputs. The Preset bits PRST are should be set if an external input
will be used to reset the counter value.
3. Set the start value STR and the end value END for the counter, based on the application. The
STR value will be used to reset the counter, while the END value is used by the comparison
register HFLAG.
4. Turn on the counter channel. This is done simply by setting the RUN bit, bit 7, of the MODE
register for that channel.
5. Use either the comparison register (HFLAG) or the D50 PLC’s comparison instructions (>, <,
=, >=, <=, <>) on the present value (PV) of the counter in the program, based on the
application.
The following ladder program illustrates the above 5-step procedure for a simple counter application.
For this example, a standard Up Counter is programmed, with an end value of 100. At the count of
9000, the program turns on the D50 PLC’s first output R15.0, and at the count of 10000, the second
PLC output R15.1 is turned on. Since this is an Up Counter, the first input of channel 0 is used to
count input pulses.
F1.0 R4.6
(RST) Turn OFF 2-phase mode
R4.5
(RST) Turn OFF Ring Count mode
F1.0 R4.0
(SET) Turn ON Up input 0 (R0.0) for up count
R4.1
(RST) Turn OFF Down input 1 (R0.1)
R4.2
(RST) Turn OFF Preset input 2 (R0.2)
F1.0 DLET
D = R5 Set the Start Value (STR) to 0
S=0
DLET
D = R7 Set the End Value (END) to 10000
S = 10000
F1.0 R4.7
(SET) Turn ON the high-speed counter
D> R15.0
D = R9 (OUT) Turn ON R15.0 at 9000 counts
S = 9000
R26.0 R15.1
(OUT) Turn ON R15.1 when PV = END
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix B: Special I/O Functions 179
Note: Any of the eight inputs that are used for either high-speed counter or pulse catch are not
affected by the Input Response Delay setting.
Input Signal
The Input Response Delay is automatically set for all the inputs when the new time value is loaded into
the FTIME register, R27. The ladder example below illustrates setting the Input Response Delay time
to a value of 25ms.
F1.0 LET
D = R27 Set the Input Response Delay
S = 25 register (FTIME) to 25ms
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
180 D50 PLC User's Manual
When configured as a pulse catch input, any input signal of 150µsec or more is latched On for the next
I/O scan. The input remains On for at lease one I/O scan, and turns Off on the next scan after the input
signal has turned off.
I/O I/O
Scan Scan
PLC Scan
>150usec
Input Signal
The PCATCH special I/O function register determines which of the eight inputs on the controller are
configured for pulse catch inputs, and which operate normally. Each bit in the PCATCH register R28
represents one of the eight inputs. If the bit is set On, then the corresponding input on the controller is
configured as a pulse catch input. The logic required to set the PCATCH register R28 is shown below.
In this example, inputs 1, 3, and 7 are set for Pulse Catch Inputs.
F1.0 LET
D = R28 Set Inputs 1, 3, and 7 as Pulse Catch
S = $8A Note: 8A hex = 10001010 binary
Pulse Catch
Inputs
DC 24V C 0 1 2 3 C 4 5 6 7
OUT IN IN
OUT RUN
0 1 2 3 4 5 STOP
Cutler-Hammer
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix B: Special I/O Functions 181
Pulse Output
The D50 PLC provides two modes of Pulse Output on the first output contact of the controller. The
first mode, Pulse Mode, sends out a given number of pulses at a user-defined frequency. The second
mode, PWM (Pulse Width Modulation) Mode, sends out a continuous stream of pulses, at a user-
defined frequency and duty-cycle. Both modes use the same set of special I/O function registers (R11
to R14). The mode used by the D50 is determined by the configuration of the PMODE register, R11.
Register Descriptions
PMODE (R11)
The mode register is used to turn on the pulse output, configure which mode it will be operating in,
enable the output used, and set up the pulse count. Each bit in the low byte of the PMODE register is
used to turn On or Off a feature of the pulse output, as shown below.
Bit #: 7 6 5 4 3 2 1 0
Bit Name: RUN FUNC OUT PRST - - - CMP Description
Pulse Output completed.
Not Used
Not Used
Not Used
Preset Pulse Counter (PSV PPV)
Enable Output R15.0 for Pulsing
Mode: Pulse = 0, PWM = 1
Run/Stop – Turn on Pulse Output
PFREQ (R012)
The PFREQ register sets the Pulse Frequency, from 20Hz to 5kHz, of the output. Whether in Pulse
Mode, or PWM Mode, the output pulses will be sent at this rate.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
182 D50 PLC User's Manual
PSV (R013)
The PSV register is defined by the Mode of operation. In Pulse Mode, the PSV register holds the total
number of Pulses to be sent out, from 0 to 65,535. When set to 0, the pulse output is continuous. In
PWM Mode, the PSV register holds the duty cycle of the pulse, from 0 to 100%.
The Duty Cycle of the pulse is defined as the width of the pulse, from 0 (no pulse) to 100% (constant
On). For example, a 100Hz pulse will generate 100 pulses every second, or 1 pulse every 10ms. If the
duty cycle of the pulse is 75%, the pulse is ON for 75% of that 10ms, or for 7.5ms. It is OFF for the
remaining 25%, or 2.5ms. This is illustrated by the diagram below.
7.5ms
10ms
PPV (R014)
The PPV register holds the Present Value of the Pulse Output when in Pulse Mode. The Present value
counts down from the initial value, set by the PSV register. When the PPV register reaches 0, the
pulses stop. In PWM Mode, the PPV register should always be 0.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix B: Special I/O Functions 183
1. Configure the pulse output for Pulse Mode by turning Off bit 6 of the PMODE register R11.
2. Enable the pulse output R15.0 by turning On bit 5 of the PMODE register R11.
3. Set the Pulse Frequency PFREQ (R12) for the pulses to be sent out.
4. Set the initial Pulse Value PSV (R13) for the total number of pulses to be sent out.
5. Turn on the Pulse Output by turning On bit 7 of the PMODE register R11.
6. Begin the Pulse Output by turning on the Preset bit (bit 4) of the PMODE register R11. This
will move the total number of pulses into the Present Value register, and begin pulsing the
outputs.
The following ladder program illustrates the above procedure by configuring a Pulse Output on the
D50 PLC. The Pulse Output is set to send out exactly 200 pulses at a frequency of 50Hz, when the
PLC is first placed into RUN.
F1.0 R11.6
(RST) Turn OFF PWM mode
R11.5
(SET) Turn ON Pulse Output R15.0
F1.0 DLET
D = R12 Set the Frequency (PFREQ) to 50Hz
S = 50
DLET
D = R13 Set the Start Value (PSV) to 200
S = 200
F1.0 R11.7
(SET) Turn ON the Pulse Output
F1.0 R11.4
(OUT) Begin Pulses by setting the PRST bit
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
184 D50 PLC User's Manual
1. Configure the pulse output for PWM Mode by turning On bit 6 of the PMODE register R11.
2. Enable the pulse output R15.0 by turning On bit 5 of the PMODE register R11.
3. Set the Pulse Frequency PFREQ (R12) for the pulses to be sent out.
4. Set the Pulse Duty Cycle PSV (R13) for the width of the pulses, from 0 to 100%.
5. Turn on the Pulse Output by turning On bit 7 of the PMODE register R11.
The following ladder program illustrates the above procedure by configuring a PWM Output on the
D50 PLC. The PWM Output is set to continuously send out pulses at a frequency of 50Hz and a duty
cycle of 25%, when the PLC is first placed into RUN.
F1.0 R11.6
(SET) Turn ON PWM mode
R11.5
(SET) Turn ON Pulse Output R15.0
F1.0 DLET
D = R12 Set the Frequency (PFREQ) to 50Hz
S = 50
DLET
D = R13 Set the Duty Cycle (PSV) to 25
S = 25
F1.0 R11.7
(SET) Turn ON the PWM Output
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 185
The D50PGM10 pocket editor provides a simple, convenient method of troubleshooting, monitoring
and editing a D50 PLC on the shop floor. This appendix describes in detail the various functions of
the pocket editor, and how to use them.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
186 D320 PLC User's Manual
Overview
This appendix describes in detail the use of the D50PGM10 pocket editor for programming,
monitoring, and troubleshooting the D50 PLC. The Pocket Editor provides mnemonic-only program
loader support for the D50 PLC in a heavy-duty, light-weight industrial package. The various
functions of the pocket editor are presented in a step-by-step procedural guide to simplify the use and
operation of the editor.
Specifications
Operating Specifications
Item Specification
Supported PLCs D50
Power Supply 5VDC supplied from connected PLC
Indicator LED’s and 7-segment display
Display
Capacity 22 LEDs; 5-digit 7-segment display
Keypad 20-key multifunction keypad
Dimensions
PGM-10
R/1 2 3 ADR RD
0 MON SST WR
3.45in 1.0in
(88mm) (25mm)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 187
Part Descriptions
The pocket editor is comprised of 13 Instruction LED’s, 3 Status LED’s, 6 Register LED’s, a 5-digit
Address/Data LED Display, and 20 keys that operate as instruction keys, number keys, and function
keys. The diagram below points out the individual features of the pocket editor.
Status LED’s
Register
PGM-10 LED’s
Instruction
LED’s
AND OUT MCS SHF R M K F W TC
OR TIM MCR RUN
STR CNT SET ON
NOT DIF RST SST Address/Data
LED Display
K/7 F/8 W/9 FUN
R/1 2 3 ADR RD
0 MON SST WR
Instruction/ Function
Number Keys Keys
Instruction LED’s
The instruction LED’s are illuminated to indicate the basic instruction for a given step of the
mnemonic program. When displaying a step in the program, one or more of these LED’s will be lit.
Status LED’s
The three status LED’s on the pocket editor are the SHF, ON, and RUN LED’s in the center.
• The SHF LED provides visual feedback that the user has pressed the shift (SHF) key.
• The RUN LED indicates when the D50 PLC is in the RUN mode.
• The ON LED indicates when a given contact or output point is turned On, when monitoring
and instruction or bit register.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
188 D320 PLC User's Manual
Register LED’s
The six register LED’s indicate which address type is being displayed, when displaying a data value or
address. The possible register types are R for external I/O, M for internal contacts, K for internal
retentive (Keep) contacts, F for system flags, W for data words, and TC for timer/counter done
contacts.
• A 5-digit value is displayed to represent either a bit address (where the first three digits are the
word, and the last two are the bit), or a constant value that is a parameter for an instruction.
• A 4-digit value represents a word address for a register
• Function numbers and timer/counter channel numbers are represented with the first two
characters being Fn and ch, respectively.
• When displaying a step address in the mnemonic program, periods appear to the bottom-right
of each digit in the 5-digit address.
Instruction Keys
There are 12 instruction keys on the pocket editor that are used for entering the 25 basic instructions on
the D50 PLC. To enter certain of the basic instructions, more than one of the instruction keys may be
combined. Refer to the Basic Instruction table at the end of this appendix for details.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 189
Function Keys
There are 8 function keys on the pocket editor, plus two functions that are accessed using the SHF key.
The 10 functions each have multiple uses, based on the mode of operation the pocket editor is being
used in.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
190 D320 PLC User's Manual
Operating Procedures
There are seven separate types of operations that the D50PGM10 pocket editor can perform. These
seven operations provide all of the functionality required to program, edit, monitor, and configure the
D50 PLC. The seven operations are as follows:
• Clear Program – Deletes the entire program memory from the D50 PLC.
• Add Instruction – Allows the user to write a new program step by step.
• Monitor Program – View the D50 mnemonic program, one instruction at a time.
• Edit Program – Performs inserting, deleting, and changing of program instructions.
• Error Checking – Check the syntax of the program for errors.
• Monitor I/O – Allows the user to monitor and force register values.
• Run/Stop PLC – Switches the PLC between the RUN and STOP modes.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 191
Clear Program
The Clear Program function will clear out the program memory from the D50 PLC. All of the register
memory will also be cleared, with the exception of the Keep (K) registers, and the Timer/Counter
registers.
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
INS AUX Switches to Auxiliary Mode
DEL ALL d Confirm delete all?
ENT End Complete delete all
Note: To cancel the clear after pressing the DEL key, press the CLR key.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
192 D320 PLC User's Manual
Add Instruction
The Add Instruction procedure allows the user to enter new mnemonic programs, one instruction at a
time. In the example below, the small rung of ladder shown is entered one step at a time, as described
in the Operating Procedure table.
Ladder Program
R15.3
Mnemonic Program
STR R0.1
OR R15.3
ANN R0.2
OUT R15.3
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
INS DEL ENT End Clears program
STR R 1 INS STR R 1 STR R0.1
OR R 1 5 0 3 INS OR R 1503 OR R15.3
AND NOT R 2 INS AND NOT R 2 ANN R0.2
OUT R 1 5 0 3 INS OUT R 1503 OUT R15.3
End
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 193
Monitor Program
The Monitor Program procedure allows the user to view the currently running program in the D50
PLC. There are two ways to select the portion of the program to monitor, either by consecutively
selecting the next or previous step, or by searching for a particular step.
• Function: Step forward (and back) through the program instructions in the D50 PLC
• PLC Mode: STOP or RUN
Ladder Program
R0.1 K15.2
(OUT)
K15.2
K15.2 MUL
D = M15
S1 = R15
S2 = K3
Mnemonic Program
STR R0.1
OR K15.2
OUT K15.2
STR K15.2
ANN R16.3
TIM 30 30
STR TC30
MUL M15 R15 K3
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
194 D320 PLC User's Manual
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
NXT STR R 00001 STR R0.1
NXT OR K 01502 OR K15.2
NXT OUT K 01502 OUT K15.2
NXT STR K 01502 STR K15.2
ENT 0.0.0.0.3. Displays the step number
NXT 0.0.0.0.4. Moves to the next step
ENT AND NOT R 01603 ANN R15.3
NXT OUT TIM Ch030 TIM 30 30
NXT 00030 TIM 30 30
NXT STR TC 030 STR TC30
NXT Fn039 MUL M15 R15 K3
NXT M 00015 MUL M15 R15 K3
NXT R 00015 MUL M15 R15 K3
NXT K 00003 MUL M15 R15 K3
End
Note: By pressing the PRE key at any time, the previous instruction will be displayed.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 195
Ladder Program
R0.0 LET
D = K0
S=0
DEC
D = K0
== R15.1
A = K15.4 (OUT)
B = 20
Mnemonic Program
STR R0.0
LET K0 0
STR M0.5
AND DIF R0.0
INC K0
DEC K0
STR== K15.4 R15.1
OUT R15.1
STR R0.0
AND M8.15
OUT R15.2
STN M0.1
AND M8.15
LET K1 2
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
196 D320 PLC User's Manual
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
SHF 0 9 9 9 SCH End Searches to End of program
SHF 0 0 SCH STR R 00000 Search for first step (step 0)
SHF 0 3 SCH AND DIF R 00000 Search for step 3
AND M 8 1 5 SCH AND M 00815 Search for instruction
SCH AND M 00815 Continue search
SHF 0 8 SCH STR R 00000 Search for step 8
NXT AND M 00815
PRE STR R 00000
PRE OUT R 01501
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 197
Edit Program
The D50PGM10 pocket editor provides the user the ability to insert, delete, or change an instruction in
the D50 PLC. Each of the three procedures is illustrated on the following pages.
Insert Instruction
In the example below, one contact is inserted in the rung of ladder, as shown.
Ladder Program
R0.1 R15.3
(OUT)
R15.3
R15.3
Mnemonic Program
STR R0.1 STR R0.1
OR R15.3 OR R15.3
OUT R15.3 AND M1.8
OUT R15.3
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
OUT R 1 5 0 3 SCH OUT R 01503 Search for instruction to add after
AND M 1 0 8 INS AND M 108 Insert the new instruction
OUT R 01503 Next instruction will be displayed
PRE AND M 00108 Verify instruction was added
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
198 D320 PLC User's Manual
Delete Instruction
In the example below, one contact is deleted from the rung of ladder, as shown.
Ladder Program
R0.1 M0.5 K15.4
(OUT)
K15.2
R0.1 K15.4
(OUT)
K15.2
Mnemonic Program
STR R0.1 STR R0.1
OR K15.2 OR K15.2
ANN M0.5 OUT K15.4
OUT K15.4
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
AND NOT M 5 SCH AND NOT M 5 Search for instruction to delete
DEL AND NOT M d.0005 Ready to delete – marked with d.
ENT OUT K 01504 Next instruction will be displayed
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 199
Change Instruction
In the example below, the address of one contact is changed in the rung of ladder, as shown.
Ladder Program
Mnemonic Program
STR R0.3 STR R0.3
AND M12.14 ANN K0.3
TIM 10 240 TIM 10 240
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
AND M 1 2 1 4 SCH AND M 01214 Search for instruction to change
AND NOT K 3 ENT AND NOT K 3 Enter the changed instruction
NXT OUT TIM ch010 View next instruction
PRE AND NOT K 00003 Verify instruction was changed
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
200 D320 PLC User's Manual
Error Checking
The D50 has built-in error-checking routines that can check the PLC program for syntax errors such as
multiple output coils using the same reference, invalid coil addresses, and so on. The D50 pocket
editor can request an error check from the D50 PLC using the SHF and CHK keys.
To start the error check, press the SHF key, and then the CHK key. If errors are detected, the 5 digit
display will show an “E” followed by a two-digit error code. If no errors are detected, the current
instruction will be display with no change.
• Function: Check the program in the D50 PLC for syntax errors
• PLC Mode: STOP
Error Codes
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 201
Monitor I/O
There are two types of monitoring that the pocket editor can perform. The first type is bit monitoring,
which displays the state of a given contact or coil in the program. The second type of monitoring is
register monitoring, which displays the 16-bit value of any user-specified register address. The
monitor mode can also be used to force output bits to a given state, On or Off.
Bit Monitoring
I/O bits (contacts and coils) can only be monitored through the PLC program. At each step in the PLC
program, the ON LED will reflect the state of the bit address in that step of the program. If the ON
LED is lit, the bit address displayed is in the On state.
Ladder Program
R0.1 R15.0
(OUT)
R0.1
Mnemonic Program
STR R0.1
ORN R0.1
OUT R15.0
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
OUT R 1 5 0 0 SCH OUT ON R 01500 Finds step, displays On/Off status
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
202 D320 PLC User's Manual
Register Monitoring
Any valid register address can be monitored using the register monitor mode of the pocket editor. In
this mode, the register is continuously updated from the D50 PLC, and can be changed by the user.
To enter the monitor register mode, press the SHF key, the register address, and then the MON (DIF)
key. Use the NXT and PRE keys to move to the next or previous register address. To change the
value, press the 0 (NOT) key, followed by the new value and the enter (ENT) key. To display the
address of the register being monitored, press the ENT key. To exit the monitor register mode, press
the Clear (CLR) key.
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
SHF W 0 MON 00000 Displays the current value of W0
NXT 00000 Displays the current value of W1
ENT W 00001 Displays the address W1
PRE W 00000 Displays the address W0
ENT 00000 Displays the current value of W0
0 C Enters the “Change Value” mode
1 2 3 123 Enter the new value for W0
ENT 00123 Displays the current value of W0
CLR End Exit monitor mode
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 203
Force Outputs
The states of output coils can be forced On or Off in the D50 PLC. The output to be forced must be an
output that has been programmed in the PLC. The SET and RST keys are used for Force On and Force
Off, respectively. Using the NXT or PRE keys will clear the force from the coil and move to the next
or previous instruction. The CLR key will remove the force while continuing to display that
instruction.
Ladder Program
R0.1 R0.3 R15.1
(OUT)
K1.2
R1.2 R17.3
(OUT)
Mnemonic Program
STR R0.1
AND R0.3
OUT R15.1
STR M0.0
OR K1.2
AND R0.4
OUT R15.2
STR R1.2
OUT R17.3
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
OUT R 1 5 0 1 SCH OUT R 01501 Finds step, displays On/Off status
SET ENT OUT ON R 01501 Force ON
RST ENT OUT R 01501 Force OFF
SET ENT OUT ON R 01501 Force ON
NXT STR M 00000 Release force, go to next step
OUT R 1 7 0 3 SCH OUT ON R 01703 Find instruction
RST ENT OUT R 01703 Force OFF
SET ENT OUT ON R 01703 Force ON
CLR OUT ON R 01703 Release force, continue to display
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
204 D320 PLC User's Manual
Run/Stop PLC
When the RUN/STOP switch on the D50 PLC is in the RUN position, the mode can be overridden by
the pocket editor. To place the D50 PLC in STOP, press the INS key, followed by the RST key. To
return the PLC to the RUN mode, press the INS key followed by the SET key.
Operating Procedure
Display
Key Sequence LED 5-Digit Display Remarks
INS RUN AUX Switches to Auxiliary Mode
RST End PLC is stopped
INS AUX Switches to Auxiliary Mode
SET RUN End PLC switched to RUN
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 205
Instruction Codes
The following tables list the key sequences required to enter each of the mnemonic instructions
supported by the D50 PLC.
Basic Instructions
Mnemonic Display
Instruction Key Sequence LED 5-Digit Display
STR STR STR
STN STR NOT STR NOT
AND AND AND
ANN AND NOT AND NOT
OR OR OR
ORN OR NOT OR NOT
ANB AND MCS AND MCS
ORB OR MCS OR MCS
OUT OUT OUT
NOT NOT NOT
MCS MCS MCS
MCR MCR MCR
SET SET SET
RST RST RST
STR DIF STR DIF STR DIF
AND DIF AND DIF AND DIF
OR DIF OR DIF OR DIF
STR DFN STR DIF NOT STR DIF NOT
AND DFN AND DIF NOT AND DIF NOT
OR DFN OR DIF NOT OR DIF NOT
TIM OUT TIM OUT TIM ch
SST OUT SST OUT SST ch
UC OUT CNT OUT CNT UC
DC OUT CNT NXT OUT CNT dC
UDC OUT CNT NXT NXT OUT CNT Ud
Note: Instructions ANB, ORB, MCS, and MCR require no operand.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
206 D320 PLC User's Manual
Advanced Instructions
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 207
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
208 D320 PLC User's Manual
Programming Examples
The following pages present some very basic programming examples, showing how to enter mnemonic
code into the D50 PLC using the pocket editor. Each example program is devided into three sections;
the ladder program, the equivalent mnemonic code, and the key sequence for entering the program
using the pocket editor
Ladder Program
R0.3
(MCS)
M0.1 M0.3
M1.1 M1.2
F0.15
(MCR)
Mnemonic Program
STR R0.3
MCS
STR M0.0
OR M0.1
STR M0.2
OR M0.3
ANB
NOT
OUT M0.4
STR M0.4
AND M1.0
STR M1.1
AND M1.2
ORB
OUT R15.2
STR F0.15
MCR
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 209
Operating Procedure
Display
Key Sequence LED 5-Digit Display Mnemonic Instruction
STR R 3 INS STR R 3 STR R0.3
MCS INS MCS MCS
STR M 0 INS STR M 0 STR M0.0
OR M 1 INS OR M 1 OR M0.1
STR M 2 INS STR M 2 STR M0.2
OR M 3 INS OR M 3 OR M0.3
AND MCS INS AND MCS ANB
NOT INS NOT NOT
OUT M 4 INS OUT M 4 OUT M0.4
STR M 4 INS STR M 4 STR M0.4
AND M 1 0 0 INS AND M 100 AND M1.0
STR M 1 0 1 INS STR M 101 STR M1.1
AND M 1 0 2 INS AND M 102 AND M1.2
OR MCS INS OR MCS ORB
OUT R 1 5 0 2 INS OUT R 1502 OUT R15.2
STR F 1 5 INS STR F 15 STR F0.15
MCR INS MCR MCR
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
210 D320 PLC User's Manual
Ladder Program
R1.3 TIM
Ch = 255
SV = 100
M14.14 SST
Ch = 254
SV = 50
TC255 M5.2
(SET)
TC254 M0.10
(RST)
Mnemonic Program
STR R1.3
TIM 255 100
STR M14.14
SST 254 50
STR TC255
SET M5.2
STR TC254
RST M0.10
Operating Procedure
Display
Key Sequence LED 5-Digit Display Mnemonic Instruction
STR R 1 0 3 INS STR R 103 STR R1.3
OUT TIM 2 5 5 ENT OUT TIM ch255 TIM 255 100
1 0 0 INS 100 TIM 255 100
STR M 1 4 1 4 INS STR M 1414 STR M14.14
OUT SST 2 5 4 ENT OUT SST ch254 SST 254 50
5 0 INS 50 SST 254 50
STR TIM 2 5 5 INS STR TC 255 STR TC255
SET M 5 0 2 INS STR M 502 SET M5.2
STR TIM 2 5 4 INS STR TC 254 STR TC254
RST M 1 0 RST M 10 RST M0.10
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 211
Ladder Program
M0.10 UC
U Ch = 25
SV = 100
M0.11
R
M0.12 DC
D Ch = 255
SV = 100
M0.13
R
TC25 M0.11
(SET)
TC255 M0.13
(SET)
Mnemonic Program
STR M0.10
STR M0.11
UC 25 100
STR M0.12
STR M0.13
DC 255 100
STR TC25
SET M0.11
STR TC255
SET M0.13
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
212 D320 PLC User's Manual
Operating Procedure
Display
Key Sequence LED 5-Digit Display Mnemonic Instruction
STR M 1 0 INS STR M 10 STR M0.10
STR M 1 1 INS STR M 11 STR M0.11
OUT CNT 2 5 ENT OUT CNT UC 25 UC 25 100
1 0 0 INS 100 UC 25 100
STR M 1 2 INS STR M 12 STR M0.12
STR M 1 3 INS STR M 13 STR M0.13
OUT CNT OUT CNT UC -
NXT OUT CNT dC DC 255 100
2 5 5 ENT OUT CNT dC255 DC 255 100
1 0 0 INS 100 DC 255 100
STR TIM 2 5 INS STR TC 25 STR TC25
SET M 1 1 INS SET M 11 SET M0.11
STR TIM 2 5 5 INS STR TC 255 STR TC255
SET M 1 3 INS SET M 13 SET M0.13
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Appendix C: D50PGM10 Pocket Editor 213
Ladder Program
== INC
A = K0 D = K4
B = K1
==
A = 100
B = K3
Mnemonic Program
STR== K0 K1
OR== 100 K3
INC K4
Operating Procedure
Display
Key Sequence LED 5-Digit Display Mnemonic Instruction
SHF FUN 1 Fn 1 STR== K0 K1
ENT S1
K 0 K 0 STR== K0 K1
ENT S2
K 1 K 1 STR== K0 K1
ENT Fn. 1 STR== K0 K1
INS End
SHF FUN 3 Fn 3 OR== 100 K3
ENT S1
0 0
1 0 0 100 OR== 100 K3
ENT S2
K 3 K 3 OR== 100 K1
ENT Fn. 3 OR== 100 K1
INS End
SHF FUN 1 9 Fn 19 INC K4
ENT d
K 4 K 4 INC K4
ENT Fn. 19 INC K4
INS End
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
214 D320 PLC User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Artisan Technology Group is your source for quality
new and certified-used/pre-owned equipment
• FAST SHIPPING AND SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT
DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment
• TENS OF THOUSANDS OF at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins
IN-STOCK ITEMS www.artisantg.com/WeBuyEquipment
• EQUIPMENT DEMOS
• HUNDREDS OF InstraView REMOTE INSPECTION
SM
LOOKING FOR MORE INFORMATION?
MANUFACTURERS Remotely inspect equipment before purchasing with Visit us on the web at www.artisantg.com for more
SUPPORTED our interactive website at www.instraview.com information on price quotations, drivers, technical
• LEASING/MONTHLY specifications, manuals, and documentation
RENTALS
• ITAR CERTIFIED
SECURE ASSET SOLUTIONS
Contact us: (888) 88-SOURCE | [email protected] | www.artisantg.com