Page 1
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Page 3
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.
Page 4
Preface 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...
D50 PLC User's Manual About This 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...
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:...
Page 7
Stock availability, proof of shipment, or to place an order. Expedite an existing order. Product assistance and product price information. Product returns other than warranty returns. For information on your local distributor or sales office, call the Cutler-Hammer Tech Line at 1-800- 809-2772. Correspondence Address Cutler-Hammer...
System Installation Considerations ........................4 Environmental Considerations ........................4 Preventing PLC System Malfunctions ......................4 Chapter 2: System Configuration D50 PLC System Components..........................6 D50 PLC Product List............................7 D50 PLC Expansion Configurations........................9 Chapter 3: Product Specification Environmental Operating Ranges ........................12 CPU Performance Specifications .........................
Page 9
D320 PLC User's Manual DIN Rail Mounting............................26 Unit Installation Height ..........................27 Expansion Cable Connection........................27 Power Supply Wiring ............................28 Power wiring..............................28 Grounding..............................28 Chapter 5: CPU Operation And Memory Terminology ................................ 30 Overview of CPU Operation Mode ........................31 What Is the CPU Operation Mode? ......................
Page 11
Burying Wire ............................. 149 Shielding Cabling .............................. 150 Methods to Handle I/O Inductive Loads......................151 Warning ................................153 Troubleshooting..............................154 Appendix A: D50 PLC Communication Protocol Communication Rules ............................156 Communication Environment........................156 Communication Protocol ........................... 156 Step 1 Query (Q)............................. 156 Step 2 ...
Page 12
Table of Contents Read Bits and Words..........................165 Write Bits and Words..........................166 Communication Program Example ........................167 Appendix B: Special I/O Functions Overview................................174 High Speed Counter ........................... 174 Configurable Input Response Delay......................174 Pulse Catch Input ............................174 Pulse Output...............................
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.
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.
D/A. 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.
Separate the main PLC power line ground from all other power grounds. Always use triple- grounding. Do not exceed the current and power rating of the external 24 VDC provided by the D50 power supply. Avoid system faults due to programming errors by reading and fully understanding this system manual and the PLC instruction set.
Chapter 2: System Configuration 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. This chapter contains: • Information about the D50 PLC system components •...
Frequency input to D50 PLC be used per D50 F/A Converter 48160-480 Convert Pulse output from D50 PLC into a 0-10VDC Maximum of 1 may or 4-20mA analog output signal be used per D50 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 21
Cable For IBM-PC communication (GPC) Manuals Name Catalog # Product Description Remarks D50SA122 D50 Hardware Installation and programming manual for the D50 Must be ordered Manual PLC. separately Analog Expander D50SA495 Configuration and operation manual for the Must be ordered Manual D50AIM410V and D50AOM210V analog I/O.
Chapter 2: System Configuration D50 PLC Expansion Configurations • All digital I/O modules, both controller and expander, contain 14 I/O points – 8 digital inputs, and 6 digital outputs. • Up to 3 digital expansion units can be added to the controller.
Chapter 3: Product Specification Product Specification This chapter outlines the environmental conditions for D50 PLC operation and the performance specifications and component functions of the controller. This chapter discusses: • The environmental operating ranges for the D50 Series products •...
D50 PLC User's Manual Environmental Operating Ranges Item Specifications Ambient Operating temp. 0 to 55°C (32 to 131°F) temperature -10 to 75°C (14.0 to 167°F) Storage temp. Ambient Operating 20% to 90% RH (Non-condensing) humidity Storage 10% to 90% RH (Non-condensing) Breakdown voltage Between AC external terminal and earth, AC 1500 V for 1 min.
Power Supply Specifications Internal Circuit Diagram FUSE Internal 85-264V Circuit Wiring Diagram 24VDC Out DC 24V Programmable Controller STOP Cutler-Hammer IN 100-240V 85-264VAC In Specifications Voltage Input AC Models: 85-264VAC; DC Models: 20-28VDC AC Frequency 47-63Hz Current Consumption Max. 0.6A Output Power 24VDC @ 700mA max.
D50 PLC User's Manual 24VDC Input Specifications Internal Circuit Diagram INPUT Wiring Diagram Current Current Sinking Sourcing Devices Devices 24VDC 24VDC DC 24V Specifications Rated Voltage 12 to 24VDC Operating Voltage Range 9 to 30VDC Input Resistance 3.3 kΩ Less than 10ms...
Chapter 3: Product Specification 115VAC Input Specifications Internal Circuit Diagram INPUT Wiring Diagram 110VAC DC 24V Specifications Rated Voltage 110VAC Operating Voltage Range 85 to 132VAC Input Current 5mA to 14mA Min. On 85VAC Operating Voltage Max. Off 30VAC Less than 12ms Input Delay Time Less than 12ms Number of Inputs...
D50 PLC User's Manual Relay Output Specifications Internal Circuit Diagram +24VDC 24VDC Wiring Diagram IN 100-240V Specifications Rated Voltage 110/220VAC; 30VDC Operating Voltage Range 85 to 132VAC Electrical Life 200,000 operations @ rated current Mechanical Life 10M operations Per Output Max.
Chapter 3: Product Specification Transistor (24VDC) Output Specifications Internal Circuit Diagram Wiring Diagram IN 100-240V 24VDC Specifications Rated Voltage 24VDC Operating Voltage Range 5 to 27VDC Per Output 0.5A Max. Load Current Per Common Min. Load Current Per Output 10mA Less than 1ms Output Delay Time Less than 1ms...
D50 PLC User's Manual SSR (115/230VAC) Output Specifications Internal Circuit Diagram Wiring Diagram IN 100-240V Specifications Rated Voltage 110/220VAC Operating Voltage Range 85 to 132VAC Per Output 0.5A Max. Load Current Per Common Min. Load Current Per Output 50mA Less than 5ms...
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.
Chapter 4: Installation and Wiring Installation and Wiring This chapter provides considerations and information on installing and wiring the D50 PLC. Diagrams are included to illustrate the installation procedures. This chapter contains: • System design considerations • System installation guidelines •...
D50 PLC User's Manual System Design Considerations Power Supply Wiring Physical and Electrical Isolation of Power Supplies When wiring the PLC, external control I/O, and large power equipment such as motors, each system should be electrically separated as shown: Power...
Momentary Power Failure and Voltage Drop Momentary Power Failure The D50 PLC will ride through momentary power failures of 10 msec or less. The PLC will stop and turn off its outputs if a momentary power failure greater than 20 msec occurs. For momentary power failures between 10 msec and 20 msec, the PLC's operation depends on circumstances at that time, and is not defined.
D50 PLC User's Manual • Locations subject to direct impact greater than 10 G or vibrations greater than 1 G @ 57-2000 Hz. • Direct sunlight. • Presence of water, oil, and other chemicals. Electrical Noise Considerations • Do not install near high-tension wires, high-voltage devices, power cables, power devices, and other devices which generate large power surges or electromagnetic fields when starting and stopping.
Page 38
Programmabl e Controller Programmable Controller Programmable Controller Programmable Controller RU N ER R RU N STOP Cutler-Hammer Cutler-Hammer Cutler-Hammer Cutler-Hammer IN 100-240V At least 2 in. (50mm) Leave at least 2 inches (50 mm) from the duct or other devices: •...
Unit Installation Height The depth of the D50 PLC is 3 inches (76 mm) when the unit is installed on DIN rail. When the communication cable is connected and the unit is installed in an enclosure, additional space is required.
D50 PLC User's Manual Power Supply Wiring Power wiring • When connecting the power cable: To reduce power loss in the wiring, use at least 14 AWG (2 mm) cable. To reduce the effect of noise, use twisted, shielded cable.
This chapter provides you with information about memory addresses and the CPU operation. It includes a terminology section and an overview of registers. This chapter discusses: • The terminology used in the D50 PLC manual • CPU operation and processing •...
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.
Run, Stop, or Error mode. Run Mode (operating) The D50 PLC reads the external input signals and executes the user program stored in RAM. The external outputs are updated every scan according to program results. When the switch is in Run Mode, the user can also use the GPC program loader software to switch between the RUN and STOP states.
D50 PLC User's Manual CPU Processing Procedure Program Processing Procedure 1. Mandatory input/output 1 scan 2. Process time input/output 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.
Chapter 5: CPU Operation and Memory Introduction to Registers The D50 PLC has a series of registers for storing data. Different registers store different types of data. R (Relay) register (Can be bit, byte, or word) Indicates the internal memory address which is directly linked with the real-world external input/output module.
Page 47
D50 PLC User's Manual Types R, L, M, and K can be used for either bits or words. • 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.
Chapter 5: CPU Operation and Memory 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 •...
D50 PLC User's Manual Double Mode Address Designation • Words are composed of two bytes put together. The designation for a word is exactly the same as the designation for the byte, consisting of a one character register type and a 4 digit word address.
Absolute Address Designation In LDR, DLDR, STO, DSTO instructions, the absolute address is used to perform indirect memory operations using pointers. The absolute address is also used by the D50 program loader port protocol for reading and writing memory areas.
Chapter 5: CPU Operation and Memory Special Internal Addresses F0.0 to F0.15 (F0 word register) System/Diagnostic Functions Address Function Details Remarks F0.0 System check When power is applied, the system runs self- Normal: Off diagnostics. Should any fault exist, the error lamp is turned on.
Page 53
D50 PLC User's Manual F1.0 to F1.15 (F1 word register) Special Application Functions Address Function Details Note F1.0 First single scan Maintain On state for first single-scan period, when the CPU changes its status from Stop to Run. F1.1 Scan clock Cycle On/Off state for each scan during the program.
Page 54
Chapter 5: CPU Operation and Memory System Registers SR0 to SR255 Address Function Detail SR000 CPU address Indicates the CPU ID number in the lower 8 bits. 0 to 223 are the valid user-defined values, 255 is the default value. SR001 CPU status Indicates current CPU information state.
Page 55
D50 PLC User's Manual Address Function Detail SR030 Syntax Error information Stores syntax error information when the user program fails the system diagnostic check. Each bit in the word indicates a different error condition. See table below. SR031 Reserved System Use.
Page 56
Chapter 5: CPU Operation and Memory Syntax Check Data (16 bits of SR30) 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.
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 W2048 W2304 W2088 W2344 W2128 W2384 W2049 W2305 W2089 W2345 W2129 W2385 W2050 W2306 W2090 W2346 W2130 W2386...
Page 59
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).
Chapter 6: Instructions 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. This chapter discusses: • The instructions that are used with the D50 PLC •...
D50 PLC User's Manual Basic Instructions Mnemonic Command Ladder Symbol Description Start Start NO contact. Start Not Start NC contact. NO contact series circuit. ANN (ADN) And Not NC contact series circuit. NO contact parallel circuit. Or Not NC contact parallel circuit.
Chapter 6: Instructions Timer/Counter Instructions Mnemonic Command Ladder Description Remarks Symbol On Delay Timer Turn on after set Time Base: Ch 0-15: 0.01s T CH = 10 delay time from Ch 16-255: 0.1s SV = 500 input on. Setting range: SV = 0-65535 Done Contact: TC + channel no.
D50 PLC User's Manual Comparison Instructions Mnemonic Command Byte Word Description STR = START = On if A(C) value and B(D) value are AND = AND = the same. OR = OR = STR <> START <> On if A(C) value and B(D) value are different.
D50 PLC User's Manual Logic Instructions Mnemonic Command Byte Word Description WAND Bitwise AND (logic Store AND of S1 and S2 in D. DAND (DAND) multiply) S1 0 S1 = S1 = S2 = S2 = S2 0 Bitwise OR (logic Store OR of S1 and S2 in D.
Chapter 6: Instructions Word Conversion Instructions Mnemonic Command Byte Word Description Binary Coded Convert binary number of S to BCD DBCD (DBCD) Decimal and store in D. S ..0 0 1 1 1 1 1 1 =63 D ..0 1 1 0 0 0 1 1 =$63 Binary Convert BCD of S to binary number DBIN...
D50 PLC User's Manual Bit Conversion Instructions Mnemonic Command Byte Word Description BSET Bit Set Set Nth bit of D to 1. BSET ..0 1 1 1 1 1 0 0 BRST Bit Reset Reset Nth bit of D to 0.
Chapter 6: Instructions Transfer Instructions Mnemonic Command Byte Word Description Load D←(Sr) Store value at absolute address Sr in DLDR (DLDR) Sr = Sr = Register Absolute Data Value Address Value Sr = Store (D)←Sr Store Sr in register at absolute DSTO (DSTO) address D.
D50 PLC User's Manual Block Processing Instructions Mnemonic Command Byte Word Description For Loop Begin execution of instructions DFOR (DFOR) between FOR and corresponding NEXT. Repeat execution D times. NEXT Next Decrease D of FOR instruction by 1. NEXT If not zero, repeat from FOR Instruction.
Chapter 6: Instructions How to Read the Description of Instructions Each instruction is explained in three parts: the instruction itself, its ladder diagram, and a description. This section explains how to read the instructions. Sample Instruction Mnemonic Substitution Formula Range (Assignment expression) Direct substitution of number (direct output of number)
D50 PLC User's Manual Sample Description Range: LET: 0 to 255 DLET: 0 to 65,535 Either a register (R, M, K, L, or W) address or a constant number can be assigned for S. When S is a register address, copy the data of the register to D.
Chapter 6: Instructions Basic Instruction Details Instruction Mnemonic Start of the Circuit Range I Bit Start rung with NO contact Start rung with NC contact Byte Word Ladder Used for the start of a circuit. STR: Start NO (normally open) contact STN: Start NC (normally closed) contact (STR NOT) A: Circuit started with NO contact →...
D50 PLC User's Manual Instruction Mnemonic Series Connection Range Series connection I Bit Byte (ADN) Word Ladder AND: NO (normally open) contact series connection. ANN: NC (normally closed) contact series connection. Description AND and ADN (AND NOT) indicate a series connection of each contact.
Chapter 6: Instructions Instruction Mnemonic Parallel Circuit Range Parallel connection I Bit Byte Word Ladder OR: NO (normally open) contact parallel connection. ORN: NC (normally closed) contact parallel connection. Description OR and ORN (OR NOT) indicate parallel connection of each contact. The number of ORs and ORNs used within a branch is unlimited.
D50 PLC User's Manual Instruction Mnemonic Output Range Relay output I Bit On output Byte Off output Word Ladder OUT: Relay coil turns On or Off based on the state of the input conditions. (OUT) SET: Relay coil turns On when the input conditions are true.
Chapter 6: Instructions Instruction Mnemonic Reverse Range Reverse the previous status of the I Bit logic. Byte Word Ladder Reverse the logic result of the input conditions before A at B. Reverse the previous On/Off state and transfer to the next input. The results of the NOT execution: Before After...
D50 PLC User's Manual Instruction Mnemonic Edge Contact Range STR DIF Contact which is On for one scan I Bit at the up or down point of contact STR DFN Byte AND DIF Word AND DFN OR DIF OR DFN Ladder ) (Off →...
Chapter 6: Instructions Instruction Mnemonic Block Circuit Range Connect circuit by block I Bit Byte Word 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 ANB: block in series ORB: block in parallel Description Block in series:...
D50 PLC User's Manual Instruction Mnemonic Master Control Set (Reset) Range Execute block circuit using the specified conditions. Byte Word Ladder MCS: Enable processing of the following block of instructions. condition (MCS) MCR: End block of instructions enabled by MCS.
Chapter 6: Instructions Timer/Counter Instruction Details Instruction Mnemonic Timer Range I Bit On delay timer Single shot timer Byte Word Ladder In t seconds (t = SV × time base) after the input is On, the output is On. T CH = SV = If the input is Off, the output is Off.
Page 81
D50 PLC User's Manual Example R000.0 T CH = 12 R000.0 SV = 70 0.7 sec TC12 R000.1 T CH = 200 SV = 70 R000.1 TC012 M11.5 7 sec (OUT) TC200 TC200 M22.5 (OUT) Program Expression Time Chart Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Chapter 6: Instructions Instruction Mnemonic Timer (I) Range Up counter I Bit Down counter Byte Word Example of UC with SV = 3. condition U CH = Whenever count input condition (U input) turns On, PV SV = condition increases by 1. When PV and SV are the same, the output TC done contact is On.
Page 83
D50 PLC User's Manual Example Program Expression Time Chart R000.0 U CH = 0 R000.0 R000.1 SV = 3 R000.1 TC000 M0.0 counter (OUT) time value Output TCO Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Chapter 6: Instructions Instruction Mnemonic Up/Down Counter Range Up/Down counter I Bit Byte Word Ladder U input condition U CH = (condition 1) SV = D input condition (condition 2) Reset condition (condition 3) Set Value Present (SV) Value (PV) Output (TC) Description When the up count input (U input) turns On, the Present Value (PV) increases by 1.
Page 85
D50 PLC User's Manual Example Program Expression Time Chart R000.0 U input (R0.0) U CH = 64 R000.1 SV = 5 Down Input (R0.1) TC15 Reset Input (TC15) TC64 M1.0 (OUT) Present Value (PV64) Output (TC64) Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Chapter 6: Instructions Comparison Instruction Details Instruction Mnemonic Comparing the Value Range A = B (A is equal to B) A <> B (A is not equal to B) <> A > B (A is greater than B) I Byte >...
D50 PLC User's Manual Substitution, Increment/Decrement Instruction Details Instruction Mnemonic Substitution Formula Range Direct substitution of number (direct output of number) DLET I Byte I Word Ladder D: Destination S: Source Example: S = M0, and M0 is 123 D = R17, and R17 is 45...
Chapter 6: Instructions Instruction Mnemonic Increment Range Increment (INC, DINC) DINC BCD increment (INCB, DINCB) I Byte INCB I Word DINCB Ladder D = D + 1: Decimal number increment INCB D = D + 1: BCD increment Description INC and DINC increase D in decimal by 1 when the input is On. INCB and DINCB increase D in BCD (Binary Coded Decimal) by 1.
D50 PLC User's Manual Instruction Mnemonic Decrement Range Decrement (DEC, DDEC) DDEC BCD decrement (DECB, DDECB) I Byte DECB I Word DDECB Ladder D = D - 1: Decimal decrement DECB D = D - 1: BCD decrement Description DEC and DDEC decrease D by 1 down to 0 when the input is On.
D50 PLC User's Manual Instruction Command Addition with Carry Range Decimal addition with carry (ADC, DADC) DADC I Byte BCD addition with carry (ADCB, ADCB I Word DADCB) DADCB Ladder D = S1 + S2 + carry Decimal: S1 = 21, and S2 = 22...
D50 PLC User's Manual Instruction Command Subtraction with Carry Range Decimal subtraction with carry (SBC, DSBC) DSBC I Byte BCD subtraction with carry SBCB I Word (SBCB, DSBCB) DSBCB Ladder D = S1 - S2 - carry Decimal: S1 = 34 and S2 = 19...
D50 PLC User's Manual Instruction Mnemonic Absolute Value, NEG and NOT Range ABS: Absolute value DABS NEG: 2's complement I Byte NOT: 1's complement I Word DNEG DNOT Ladder ABS: Take the absolute value of D, and store it in D.
Chapter 6: Instructions Logic Instruction Details Instruction Mnemonic Bit AND Operation Range WAND Bit AND operation DAND I Byte I Word Ladder Process each bit of S1 and S2 in bit AND operation and store the WAND result in D. S1 = S2 = DAND...
D50 PLC User's Manual Instruction Mnemonic Bit OR Operation Range Bit OR operation I Byte I Word Ladder Process S1 and S2 in bit OR operation and store the result in D. S1 = S2 = S1 = S2 = Description Process S1 and S2 (byte/word) by bit OR operation and store the result in D.
Chapter 6: Instructions Instruction Mnemonic Bit Exclusive OR Operation Range Bit exclusive OR operation DXOR I Byte I Word Ladder Process S1 and S2 in bit exclusive OR operation and store the result in D. S1 = S2 = DXOR S1 = S2 = Description...
D50 PLC User's Manual Instruction Mnemonic Bit Exclusive NOR Operation Range Bit exclusive OR NOT operation DXNR I Byte I Word Ladder Process S1 and S2 in bit exclusive OR NOT operation and store the result in D. S1 =...
Chapter 6: Instructions Rotation Instruction Details Instruction Mnemonic Rotate to the Left Without Carry Range Rotate specified address to the left (low to high) DRLC I Byte I Word Ladder D = Register address N = Number of bits to rotate 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 carry p o n m l k j...
D50 PLC User's Manual Instruction Mnemonic Rotate to the Right Without Carry Range Rotate the specified address to the right (high to low) DRRC I Byte I Word Ladder D = Register address N = Number of bits to rotate...
Chapter 6: Instructions Instruction Mnemonic Rotate to the Left Range Rotate the specified address to the left with the carry flag DROL I Byte I Word Ladder D = Register address N = Number of bits to rotate 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 carry p o n m l k j i h g f e d c b a...
Chapter 6: Instructions Instruction Mnemonic Rotate to the Right Range Rotate the specified address to the right with the carry flag DROR I Byte I Word Ladder D = Register address N = Number of bits to rotate 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 p o n m l k j i h g f e d c b a carry...
D50 PLC User's Manual Instruction Mnemonic Shift to Left Range Shift to left (high-order bit) by N I Bit bits DSHL Byte Lowest bit becomes 0 Word Ladder D = Register address N = Number of bits to rotate 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1...
Page 110
Chapter 6: Instructions Example Program Expression Operation Results R0.0 DLET R0.0 D = MO S = $FFFF R0.1 $FFF0 R0.1 DSHL $FFFF $FFFC D = M0 N = 2 1 1 1 1 1 1 1 1 1 1 1 1 0 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 Regardless of N, the MSB moves to the carry bit...
D50 PLC User's Manual Instruction Mnemonic Shift to Right Range Shift to right (low-order bit) by N bits DSHR I Byte The highest bit becomes 0 I Word Ladder D = Register address N = Number of bits to rotate...
Chapter 6: Instructions Word Conversion Instruction Details Instruction Mnemonic BCD Conversion, Range Binary Conversion BCD: Convert binary to BCD DBCD BIN: Convert BCD to binary I Byte I Word DBIN Ladder BCD: Convert the S value from binary into BCD and store in D. BIN: Convert the S value from BCD into binary and store in D.
D50 PLC User's Manual Instruction Mnemonic Data Exchange Range XCHG Exchange registers of D1, D2 with each other DXCHG I Byte I Word Ladder XCHG Exchange registers D1 and D2 (byte /word) with each other. D1 = D2 = D1 => D2, D2 => D1 DXCHG D1 ..
Chapter 6: Instructions Instruction Mnemonic 7-Segment Decoder Range Convert the low-order 4 bits of S into 7-segment display format and I Byte store in D Word Ladder Convert the value in the low-order 4 bits of address S (0 to 15) into the proper format for display by a 7-segment display and store in D.
D50 PLC User's Manual Instruction Mnemonic Decoder and Encoder with 8421 Range ENCO ENCO: 8421 encoder DECO DECO: 8421 decoder I Byte Word Ladder ENCO ENCO: Inspect the S register. If there is a bit in the On state, encode it (on bit n) and store it in the low-order 8 bits of D.
Page 116
Chapter 6: Instructions Example Program Expression Operation Results Initial conditions: W0 = $0070 (hex) R0.0 ENCO W1 = $1235 (hex) D = W2 S = W0 W2 = $5678 (hex) DECO W3 = $9ABC (hex) D = W3 S = W1 Operation results: W0 = $0070 (hex) W1 = $1235 (hex)
D50 PLC User's Manual Instruction Mnemonic Dissemble by 4 bit units/ Range Unify by 4 bit units DIS: Dissemble by 4 bit units UNI: Unify by 4 bit units I Byte Word Ladder DIS: Separate Sr into Nd+1 units of 4 bits each, and store in the low 4 bits of words starting at D.
D50 PLC User's Manual Bit Conversion Instruction Details Instruction Instruction Bit Set, Reset, Reverse, Test Range BSET BSET: Nth bit set BRST BRST: Nth bit reset Byte BNOT BNOT: Nth bit reverse I Word BTST BTST: Nth bit test Ladder...
D50 PLC User's Manual Instruction Mnemonic Count Number of On (= 1) Bits Range Count On (= 1) bits in the S register I Byte Word Ladder SUM: Count the number of On (= 1) bits in the S register and store the result in the D register.
Chapter 6: Instructions Instruction Mnemonic Carry Bit (F1.8) Set, Reset, Range Reverse SC: Set carry bit RC: Reset carry bit Byte CC: Reverse carry bit Word Ladder SC: Carry bit set (F1.8: X → 1). RC: Carry bit reset (F1.8: X → 0). CC: Carry bit reverse (F1.8: 0 →...
D50 PLC User's Manual Transfer Instruction Details Instruction Mnemonic Load Absolute Address Range Store value at absolute address Sr in D, D←(Sr) DLDR I Byte I Word Ladder Store the value located at the absolute address pointed to by Sr into register D.
Page 124
Chapter 6: Instructions Example Program Expression Operation Results Initial conditions: W0 = 611 R0.0 D = W0 R0.0 (bit) D = R15 data of data of data of data of data of Sr = W0 W100 W101 W102 W198 W199 R2 (word) process output Artisan Technology Group - Quality Instrumentation ...
D50 PLC User's Manual Instruction Mnemonic Store Absolute Address Range Store Sr in register at absolute address D, (D)←Sr DSTO I Byte I Word Ladder Store the data contained in the Sr register into the register pointed Sr = to by the absolute address contained in register D.
Page 126
Chapter 6: Instructions Example Program Expression Operation Results Initial conditions: W0 = 611 R0.0 D = W0 R0.0 (bit) Sr = R1 D = W0 (word process measurement) Store in Store in Store in Store in Store in W100 W101 W102 W198 W199...
D50 PLC User's Manual Instruction Mnemonic Duplicate Word, Duplicate the Range Same Word MOV: Copy a block of words FMOV FMOV: Fill a block of words with Byte the same value I Word Ladder MOV: Copy Ns words from Sr to D.
D50 PLC User's Manual Instruction Mnemonic Copy Bit, Copy the Same Bit Range BMOV BMOV: Copy a block of bits I Bit BFMV BFMV: Fill a block of bits with the Byte same bit value Word Ladder BMOV BMOV: Copy Ns bits from bit address Sb into bit address D.
Chapter 6: Instructions Block Processing Instruction Details Instruction Mnemonic FOR-NEXT Loop Range FOR (DFOR): Start loop DFOR NEXT: End loop I Byte NEXT I Word Ladder FOR: Begin execution of instructions between (D)FOR and corresponding NEXT. Repeat execution D times. ………...
Page 131
D50 PLC User's Manual Example Program Expression Operation Results Initial condition: W0 = 10 R0.0 M0 = 0 D = W0 Operation results: W0 = 0 D = M0 M0 = 10 NEXT When the R0.0 contact changes from Off On, execution of the FOR/NEXT loop occurs.
Chapter 6: Instructions Instruction Mnemonic Jump by Pointer Range JMP: Jump by pointer LBL: Specify the pointer Byte Word Ladder JMP: Jump to the LBL instruction L (L = 0 to 31). LBL: Position jumped to by the JMP instruction. (OUT) Description This instruction is used to conditionally perform a set of instructions in the program.
D50 PLC User's Manual Instruction Mnemonic Jump Range JMPS JMPS: Start jump JMPE JMPE: End jump Byte Word Ladder JMPS: Jump directly to the corresponding JMPE instruction. JMPS JMPE JMPE: Position jumped to by JMPS instruction. (OUT) Description The JMPS and JMPE instruction function identically to the JMP and LBL instructions, but do not require the use of a label.
Page 134
Chapter 6: Instructions Example Program Expression Operation Results By executing a JMPS: R0.0 JMPS When contact R0.0 or R0.1 turns On, execution of the program jumps directly from the associated JMPS to its corresponding JMPE. JMPE R0.1 JMPS JMPE Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
D50 PLC User's Manual Instruction Mnemonic Call Subroutine Range CALL CALL: Call subroutine SBR: Start subroutine Byte RET: End subroutine Word Ladder CALL Sb = CALL: Call subroutine Sb (Sb = 0 to 31) SBR: Start Subroutine Sb = RET: Return from Subroutine...
Page 136
Chapter 6: Instructions Example Program Expression Operation Results When contact R0.0 and/or R0.1 turns On, the CALL Sb = R0.0 CALL 3 instruction is executed and the instructions between Sb = 3 SBR Sb = 3 and RET are executed. After executing this subroutine, the program returns to the next instruction R0.1 CALL...
D50 PLC User's Manual Instruction Mnemonic Clear Watchdog Time Range WAT: Clear watchdog time Byte Word Ladder WAT: Clears the watchdog timer while executing the program. Description 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.
Chapter 6: Instructions Instruction Mnemonic End Control Program Range END: End control program (Inserted automatically) Byte Word Ladder Description This instruction indicates the end of the control program. This instruction is automatically added by GPC. It is not programmed by the user. Artisan Technology Group - Quality Instrumentation ...
Chapter 7: Testing and Troubleshooting Testing and Troubleshooting This chapter provides information on testing and troubleshooting the D50 PLC. This chapter discusses: • Testing procedures for the D50 PLC • How to troubleshoot the D50 PLC Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
D50 PLC User's Manual Test Precautions When checking the system: CAUTION: Always turn off the power whenever you install or remove a module. Check the module more than one time before exchanging the part. Include a complete description of the symptoms when you return a defective module for repair.
Page 142
Chapter 7: Testing and Troubleshooting Item What to Check • Check that the wiring is secure and intact. The connection of the power cable and the I/O expansion • Check that the terminal screws are tightly fastened. cables. • Check that I/O module is firmly fixed. •...
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 Check I/O Wiring Programming Testing Correct Program Store Program Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 144
Chapter 7: Testing and Troubleshooting Item What to Check/Do • Check that the input voltage to the power supply is within specification. Power source • Check that the control voltage to the I/O is within specification. • Turn on the power source. •...
D50 PLC User's Manual Correcting Errors System Check Refer to the system check flow chart when you encounter problems during startup and testing. System Check Flowchart Go to the Power Supply Is RUN LED Check flowchart ON or Flashing? Go to the RUN...
Chapter 7: Testing and Troubleshooting Power Supply Check Power Supply Check Flowchart Is power being Supply power applied to the terminals? Is RUN LED On or Flashing? Is the voltage Adjust voltage within within the specified the specified range range? Is RUN LED On or Flashing? Are the terminal...
D50 PLC User's Manual Run Check RUN Check Flowchart Is the controller Set mode switch to RUN mode switch set to RUN? Is RUN LED On? Place in Run using GPC - Is RUN LED On? Is the ERR Go to the Error...
Chapter 7: Testing and Troubleshooting Error Check Error Check Flowchart Are any F0.0 = 1 System Error - of the bits from Resupply Power F0.0 to F0.7 in the ON state? F0.1 = 1 System ROM Error - Resupply Power F0.2 = 1 System RAM Error - Resupply Power...
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.
Page 150
Chapter 7: Testing and Troubleshooting Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
D50 PLC User's Manual Troubleshooting, Maintenance and Inspection Tables The following tables list some common problems and troubleshooting procedures for the PLC system in the event of faulty operation. Additionally, a table is provided which covers the routine maintenance procedures to be followed to ensure long life of the PLC system with minimum downtime and maintenance cost.
Page 152
Chapter 7: Testing and Troubleshooting Digital Inputs Symptom Expected Cause Troubleshooting No inputs on the module will No external input power Supply power. turn On (LEDs are not Low external input voltage Make sure full voltage is being illuminated). supplied. Terminal screw is loose/ Tighten screw/ Defective contact...
Page 153
D50 PLC User's Manual Digital Outputs Symptom Expected Cause Troubleshooting No outputs on the module will No external input power Supply power. turn On. Low external input voltage Make sure full voltage is being supplied. Terminal screw is loose/ Tighten screw/...
Chapter 7: Testing and Troubleshooting Periodic Inspection and Preventive Maintenance The D50 PLC Series requires regular inspection and maintenance for proper operation. The following items should be checked every six months. Item What to Check Criteria Test Equipment Supplied Does the voltage measured within the...
Chapter 8: Troubleshooting Noise Problems Troubleshooting Noise Problems 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. This chapter discusses: • The causes of noise •...
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.
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. Noise Generated by Electronic Equipment All electronic devices radiate noise in the form of a magnetic field.
D50 PLC User's Manual Advised Installation Practices Shield the PLC The most common method of shielding, is to install the PLC inside a grounded steel enclosure. Proper Cable Selection Use twisted, shielded-pair cable for the power cable and field wiring. Properly terminate the shields of all cables to a single-point high-quality ground.
Chapter 8: Troubleshooting Noise Problems Isolation and Filtering Techniques 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.
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.
Some typical surge absorbers are listed in the following table. For actual installation and application details, refer to manufacturers manuals. Model Name Specifications Manufacturer Remarks CHSA 470 V Cutler-Hammer 120/240 V power CHSA01 490 V Cutler-Hammer 120/240 V power Burying Wire •...
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.
Chapter 8: Troubleshooting Noise Problems Methods to Handle I/O Inductive Loads Several methods exist for handling I/O inductive loads. DC Input Module Attach a diode in a reverse biased direction parallel to the inductive load, as close as possible to the load.
Page 165
D50 PLC User's Manual Countermeasures Application Characteristics Selection of Parts Load Load Attach a surge If the load is a relay or a solenoid, For a contact voltage of 1 V and a suppressor: the load is slow to return to the contact current of 1 A, use the normal status.
Chapter 8: Troubleshooting Noise Problems 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.
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.
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).
D50 PLC User's Manual Communication Rules Communication Environment The D50 PLC communications protocol uses the following settings: • Half Duplex Asynchronous • No Parity • 1 Stop bit • Communication method: RS485 • Communication speed: 9600 bps • Number of PLCs on a single network: Maximum of 32 (communicating 1:N using RS485) •...
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.
No Service 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.
Appendix A: D50 PLC Communication Protocol Cyclic Redundancy Checking (CRC) • 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.
D50 PLC User's Manual The Structure of the Communications Frame Query and Response Frame Length Information CRC L CRC H Length of the CRC-16 code information field (byte) (2 byte) 1-255:1-255 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.
Appendix A: D50 PLC Communication Protocol Read Bits The following can be read: • Bits stored in the absolute address (R, L, M, K, or F). • N consecutive bit contents (On/Off). Query (Q) frame Base Number of bits to be read...
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.
Appendix A: D50 PLC Communication Protocol Read Words • Read the content of the words (R, L, M, K, F, or W) assigned to the absolute address. • Read n consecutive words. Query (Q) Frame Base Number of words to be read.
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. Query (Q) Frame Base Base+0 word values Base+N word values …...
Appendix A: D50 PLC Communication Protocol Read Bits and Words • 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. Query (Q) Frame …...
D50 PLC User's Manual Write Bits and Words • 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. Query (Q) Frame …...
This particular program was written for the Cutler-Hammer D320 PLC, and so uses register addresses beyond the D50 limits. For use with a D50, adjust the register addresses used in this program (M000 to M127 and K000 to K127) to within the D50 range.
Page 181
D50 PLC User's Manual 1. Adjusts the initial communication port and the board rate for communication. Then initializes the variables. 2. Using the communication function codes, reads the data of the M field, reads the word values of the M0 to M127 area and stores them in the K0 to K127 word area.
Page 182
Appendix A: D50 PLC Communication Protocol printf("----------------\nPLC-ID (CPU ID) :"); CPU-ID: Input PLC ID (0 to 255) scanf("%d",&PlcID); if(PlcID<256) Mword_reading(); Read the register value for the M area Kword_writing(); (M0 to M127) Store the value for the M area in the...
Page 183
D50 PLC User's Manual /* JobID=7 : Change to receiving-Mode for Serial port */ /* JobID=8 : Address Polling of RES from CPU */ /* JobID=9 : Receive RES from CPU /* JobID=10 : Success communication Processing */ switch(JobID) case 0: case 5:if (port_number != 5)
Page 184
Appendix A: D50 PLC Communication Protocol if(index==3) values match, and proceeds on to the next sequence. if(receiving_frame[3]==0) receiving_Index_max=256+5; else receiving_Index_max=receiving_frame[3]+5; else if(index==receiving_Index_max-1) receiving_frame[index]=Recport(); if(receiving_frame[index]!=lower_byte(Crc)) JobID=(JobID & 0x05); else if(index==receiving_Index_max) receiving_frame[index]=Recport(); if(receiving_frame[index]==upper_byte(Crc)) JobID++; else JobID=(JobID & 0x05); }; index++; break; case 10:Success=TRUE;...
Page 185
D50 PLC User's Manual else printf("communication error\n"); Note: Sending frame[6] = The number of words to be read. Sends a function code requesting to read the M area, and stores the received data in the buffer. void Kword_writing(void) Writing Function of the K Register.
Appendix B: Special I/O Functions Appendix B: Special I/O Functions 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.
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.
To handle the requirements of configuration and operation of the special function I/O, the D50 provides 21 special I/O function registers. These registers are assigned to the various functions, and are programmed and edited by the user in the D50 PLC ladder program. The purpose of each individual register is outlined below.
D50 PLC User's Manual High Speed Counter The D50 PLC provides two 24-bit, 10kHz high-speed counters (on the DC-input units only). Each of the two counters functions identically to the other. Each has a set of 7 registers allocated for its configuration and operation, plus an additional comparision register that they share.
Appendix B: Special I/O Functions 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.
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.
Appendix B: Special I/O Functions Configurable Input Response Delay The special I/O function register FTIME (R27) controls the amount of time that an input must remain on before the input state is changed in the PLC I/O map. This amount of time is called the “Input Response Delay”, and affects all eight inputs on the controller module (R0.0 to R0.7).
PLC is of very short duration, often less than the scan time of the PLC. To allow the user program to detect those types of short-duration input signals, the D50 allows any or all of the digital inputs on the controller to be configured as “Pulse Catch”...
Appendix B: Special I/O Functions 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.
Page 195
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 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.
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.
Appendix C: D50PGM10 Pocket Editor 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.
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.
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.
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.
Appendix C: D50PGM10 Pocket Editor 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.
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.
Appendix C: D50PGM10 Pocket Editor 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.
In the example below, the small rung of ladder shown is entered one step at a time, as described in the Operating Procedure table. • Function: Add new program instructions to the D50 PLC • PLC Mode: STOP Ladder Program R0.1...
Appendix C: D50PGM10 Pocket Editor 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.
Page 207
D320 PLC User's Manual Operating Procedure Display Key Sequence 5-Digit Display Remarks STR R 00001 R0.1 OR K 01502 K15.2 OUT K 01502 K15.2 STR K 01502 K15.2 Displays the step number Moves to the next step AND NOT R 01603 R15.3 OUT TIM...
Page 208
In the example below, the small rung of ladder shown is monitored by searching for various steps in the program. • Function: Search for a specific step in the D50 PLC • PLC Mode: STOP or RUN Ladder Program R0.0...
Page 209
D320 PLC User's Manual Operating Procedure Display Key Sequence 5-Digit Display Remarks SHF 0 9 9 9 SCH 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...
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.
Page 211
D320 PLC User's Manual Delete Instruction In the example below, one contact is deleted from the rung of ladder, as shown. • Function: Delete an existing step out of the D50 PLC program • PLC Mode: STOP Ladder Program R0.1 M0.5...
Page 212
Appendix C: D50PGM10 Pocket Editor Change Instruction In the example below, the address of one contact is changed in the rung of ladder, as shown. • Function: Change an existing step in the D50 PLC program • PLC Mode: STOP Ladder Program R0.3...
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.
Appendix C: D50PGM10 Pocket Editor 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.
Page 215
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.
Page 216
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.
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.
Appendix C: D50PGM10 Pocket Editor 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 5-Digit Display STR NOT STR NOT...
D320 PLC User's Manual Advanced Instructions Instruction Function No. Instruction Function No. STR ==S1, S2 FUN 1 ADD D, S1, S2 FUN 35 AND ==S1, S2 FUN 2 ADC D, S1, S2 FUN 36 OR ==S1, S2 FUN 3 SUB D, S1, S2 FUN 37 STR <>...
Page 220
Appendix C: D50PGM10 Pocket Editor Instruction Function No. Instruction Function No. OR D>= S1, S2 FUN 69 DOR D, S1, S2 FUN 102 STR D< S1, S2 FUN 70 DXOR D, S1, S2 FUN 103 AND D< S1, S2 FUN 71 DXNR D, S1, S2 FUN 104 OR D<...
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 Example 1 –...
Page 222
Appendix C: D50PGM10 Pocket Editor Operating Procedure Display Key Sequence 5-Digit Display Mnemonic Instruction STR R 3 INS STR R R0.3 MCS INS STR M 0 INS STR M M0.0 OR M 1 INS OR M M0.1 STR M 2 INS STR M M0.2 OR M 3 INS...
Appendix C: D50PGM10 Pocket Editor Example 3 – Counter Instructions Ladder Program M0.10 U Ch = 25 SV = 100 M0.11 M0.12 D Ch = 255 SV = 100 M0.13 TC25 M0.11 (SET) TC255 M0.13 (SET) Mnemonic Program M0.10 M0.11 M0.12 M0.13 TC25...
Page 225
D320 PLC User's Manual Operating Procedure Display Key Sequence 5-Digit Display Mnemonic Instruction STR M 1 0 INS STR M M0.10 STR M 1 1 INS STR M M0.11 OUT CNT 2 5 ENT OUT CNT UC 25 1 0 0 INS STR M 1 2 INS STR M M0.12...
Page 228
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Need help?
Do you have a question about the D50 and is the answer not in the manual?
Questions and answers