background image

DL06 Micro PLC User Manual, 3rd Edition, Rev. E

5-5

Chapter 5: Standard RLL Instructions

1
2
3
4
5
6
7
8
9

10
11
12
13
14

A

B

C

D

Using Boolean Instructions

Do you ever wonder why so many PLC manufacturers always quote the scan time for a 1K 

Boolean program? Simple. Most programs utilize many Boolean instructions. These are 

typically very simple instructions designed to join input and output contacts in various series 

and parallel combinations. Our 

Direct

SOFT software is a similar program. It uses graphic 

symbols to develop a program; therefore, you don’t necessarily have to know the instruction 

mnemonics in order to develop your program. 
Many of the instructions in this chapter are not program instructions used in 

Direct

SOFT, 

but are implied. In other words, they are not actually keyboard commands, however, they 

can be seen in a Mnemonic View of the program once the 

Direct

SOFT program has been 

developed and accepted (compiled). Each instruction listed in this chapter will have a small 

chart to indicate how the instruction is used with 

Direct

SOFT and the HPP.

The following paragraphs show how these instructions are used to build simple ladder 

programs.

END Statement

All DL06 programs require an END statement as the last instruction. This tells the CPU 

that this is the end of the program. Normally, any instructions placed after the END 

statement will not be executed. There are exceptions to this, such as interrupt routines, etc. 

This chapter will discuss the instruction set in detail.

Simple Rungs

You use a contact to start rungs that contain both contacts and coils. The boolean instruction 

that does this is called a Store or, STR instruction. The output point is represented by the 

Output or, OUT instruction. The following example shows how to enter a single contact 

and a single output coil.

OUT

Y0

X0

END

Handheld Mnemonics

STR X0

OUT Y0

END

Direct

SOFT32 Example

OUT

Y0

X0

END

    

  

     

    

   

   

         

      

   

Direct

SOFT32 Example

All programs must have 

 an END statement

DS Implied

HPP Used

Direct

SOFT

Direct

SOFT

Summary of Contents for DL06

Page 1: ...DL06 Micro PLC User Manual Volume 1 of 2 Manual Number D0 06USER M...

Page 2: ...in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines...

Page 3: ...x n cessitant une s curit absolue par exemple l exploitation d installations nucl aires les syst mes de navigation a rienne ou de communication le contr le de la circulation a rienne les quipements de...

Page 4: ...3 4 5 6 and 7 Chapter 3 HSIO was moved to the Appendices and Chapter 4 was divided into Chapters 3 4 added DS5 Intelligent Boxes to Chapter 5 added Ramp Soak example to Chapter 8 Numbering Systems an...

Page 5: ...DL06 Micro PLC User Manual 3rd Edition Rev E Notes...

Page 6: ...Handheld Programmer 1 5 I O Quick Selection Guide 1 5 Quick Start 1 6 Steps to Designing a Successful System 1 10 Questions and Answers about DL06 Micro PLCs 1 12 Chapter 2 Installation Wiring and Sp...

Page 7: ...oncepts 2 16 I O Common Terminal Concepts 2 17 Connecting DC I O to Solid State Field Devices 2 18 Solid State Input Sensors 2 18 Solid State Output Loads 2 18 Relay Output Wiring Methods 2 20 Relay O...

Page 8: ...tion at Power up 3 7 Using Battery Backup 3 8 Battery Backup 3 8 Auxiliary Functions 3 9 Clearing an Existing Program 3 9 Initializing System Memory 3 9 Setting Retentive Memory Ranges 3 10 Using a Pa...

Page 9: ...4 Memory Map 3 25 Octal Numbering System 3 25 Discrete and Word Locations 3 25 V memory Locations for Discrete Memory Areas 3 25 Input Points X Data Type 3 26 Output Points Y Data Type 3 26 Control Re...

Page 10: ...Power required by option cards 4 5 Configuring the DL06 s Comm Ports 4 7 DL06 Port Specifications 4 7 DL06 Port Pinouts 4 7 Choosing a Network Specification 4 8 RS 232 Network 4 8 RS 422 Network 4 8 R...

Page 11: ...Multiple Read and Write Interlocks 4 21 Network Master Operation using MRX and MWX Instructions 4 22 MODBUS Function Codes Supported 4 22 MODBUS Read from Network MRX 4 23 MRX Slave Memory Address 4 2...

Page 12: ...sing Comparative Contacts 5 43 Using Counters 5 44 Counter Example Using Discrete Status Bits 5 46 Counter Example Using Comparative Contacts 5 46 Stage Counter Example Using Discrete Status Bits 5 48...

Page 13: ...ite to Intelligent Module WT 5 195 Network Instructions 5 196 Direct Text Entry 5 200 Embedding date and or time variables 5 201 Embedding V memory data 5 201 Data Format Suffixes for Embedded V memor...

Page 14: ...mpletion 6 7 Overview of Drum Operation 6 8 Drum Instruction Block Diagram 6 8 Powerup State of Drum Registers 6 9 Drum Control Techniques 6 10 Drum Control Inputs 6 10 Self Resetting Drum 6 11 Initia...

Page 15: ...7 7 Stage Program Example Toggle On Off Lamp Controller 7 8 A 4 State Process 7 8 Four Steps to Writing a Stage Program 7 9 1 Write a Word Description of the application 7 9 2 Draw the Block Diagram 7...

Page 16: ...erge Stage CV and Converge Jump CVJMP 7 23 Block Call BCALL 7 25 Block BLK 7 25 Block End BEND 7 25 Questions and Answers about Stage Programming 7 27 Chapter 8 PID Loop Operation DL06 PID Control 8 2...

Page 17: ...r 33 8 23 Ramp Soak Table Location Addr 34 8 24 Ramp Soak Table Programming Error Flags Addr 35 8 24 Configure the PID Loop 8 25 PID Loop Tuning 8 40 Open Loop Test 8 40 Manual Tuning Procedure 8 41 A...

Page 18: ...file 8 64 Cascade Control 8 65 Introduction 8 65 Cascaded Loops in the DL06 CPU 8 66 Tuning Cascaded Loops 8 67 Time Proportioning Control 8 68 On Off Control Program Example 8 69 Feedforward Control...

Page 19: ...Reducing Electrical Noise 9 10 Machine Startup and Program Troubleshooting 9 11 Syntax Check 9 11 Special Instructions 9 12 Duplicate Reference Check 9 13 Run Time Edits 9 14 Run Time Edit Example 9 1...

Page 20: ...the LCD Display Panel 10 22 Data Format Suffixes for Embedded V memory Data 10 22 Reserved memory registers for the LCD Display Panel 10 23 V7742 bit definitions 10 24 Changing the Default Screen 10 2...

Page 21: ...AUX 56 CPU Network Address A 6 AUX 57 Set Retentive Ranges A 6 AUX 58 Test Operations A 6 AUX 59 Bit Override A 7 AUX 5B Counter Interface Configuration A 7 AUX 5D Select PLC Scan Mode A 7 AUX 6 Hand...

Page 22: ...ounter and Shift Register C 13 Accumulator Data Instructions C 14 Logical Instructions C 15 Math Instructions C 16 Differential Instructions C 19 Bit Instructions C 19 Number Conversion Instructions C...

Page 23: ...cated High Speed I O Circuit E 3 Wiring Diagrams for Each HSIO Mode E 3 Choosing the HSIO Operating Mode E 4 Understanding the Six Modes E 4 Default Mode E 5 Configuring the HSIO Mode E 6 Configuring...

Page 24: ...ng Your Control Program E 29 Program Example 1 Quadrature Counting with an Interrupt E 30 Program Example 2 Up Down Counting with Standard Inputs E 32 Program Example 3 Quadrature Counting E 34 Troubl...

Page 25: ...ity Profile Operation E 62 Program Example 5 Velocity Profile E 63 Automatic Trapezoidal Profile Error Codes E 65 Troubleshooting Guide for Mode 30 E 65 Symptom The stepper motor does not rotate E 65...

Page 26: ...Weights Product Weight Table H 2 Appendix I Numbering Systems Introduction I 2 Binary Numbering System I 2 Hexadecimal Numbering System I 3 Octal Numbering System I 4 Binary Coded Decimal BCD Numberi...

Page 27: ...nd RF Interference J 9 Network Isolation J 9 DC Powered Versions J 9 Items Specific to the DL06 J 10 Appendix K Introduction to Serial Communications Introduction to Serial Communications K 2 Wiring S...

Page 28: ...DL06 Micro PLC User Manual 3rd Edition Rev E xxiii Table of Contents MODBUS RTU Communications K 14 ASCII Communications K 14 Index...

Page 29: ...DL06 Micro PLC User Manual 3rd Edition Rev E xxiv Table of Contents Notes...

Page 30: ...pter Chapter In This Chapter Introduction 1 2 Conventions Used 1 3 DL06 Micro PLC Overview 1 4 I O Quick Selection Guide 1 5 Quick Start 1 6 Steps to Designing a Successful System 1 10 Questions and A...

Page 31: ...optional I O or communications cards If you have purchased one of our operator interface panels or DirectSOFT programming software you will want to refer to the manuals that are written for these pro...

Page 32: ...nt icon in the left hand margin the paragraph to its immediate right will be a warning This information could prevent injury loss of property or even death in extreme cases Any warning in this manual...

Page 33: ...st fits your application DirectSOFT Programming for Windows The DL06 Micro PLC can be programmed with DirectSOFT a Windows based software package that supports familiar features such as cut and paste...

Page 34: ...o a wide variety of field devices In several instances a particular input or output circuit can interface to either DC or AC voltages or both sinking and sourcing circuit arrangements Check this guide...

Page 35: ...e Hook up wire 16 22 AWG DL06 User Manual this manual A small screwdriver 5 8 flat or 1 Philips type You will need at least one of the following programming options DirectSOFT Programming Software V5...

Page 36: ...5 Y2 C0 C2 Y16 Y14 Y13 Y11 Y6 Y4 Y3 Y1 LG G AC L OUTPUT Sinking Output 6 27V 1 0A INPUT 12 24V 3 15mA Y X D0 06DD1 40VA 50 60Hz PWR 100 240V 24 VDC L L L L L L L L L L L L L L L L 0 1 2 3 4 5 6 7 10 1...

Page 37: ...PUT 90 120V 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20 21 22 23 fuse 110 220 VAC Power Input LOGIC Koyo 06 DC Supply C0 C4 C2 X1 X3 X4 X6 X11 X13 X14 X16 X21 X23 N C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X...

Page 38: ...irectSOFT Programming Software Manual There you will learn how to establish a communications link with the DL06 PLC change CPU modes to Run or Program and enter a program If you are learning how to pr...

Page 39: ...cteristics Step 4 Choose a System Wiring Strategy It is important to understand the various system design options that are available before wiring field devices and field side power supplies to the Mi...

Page 40: ...ou draw for your process After reviewing the programming concepts above you ll be equipped with a variety of tools to write your application program 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D TMR T1 K30...

Page 41: ...limited motion control capabilities The High Speed I O features offer either encoder inputs with high speed counting and presets with interrupt or a pulse direction output for stepper control Three t...

Page 42: ...rectSOFT running on a personal computer D2 HPP handheld programmer Other devices which communicate via K sequence Directnet MODBUS RTU protocols should work with the DL06 Micro PLC Contact the vendor...

Page 43: ...DL06 Micro PLC User Manual 3rd Edition Rev E Chapter 1 Getting Started 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 1 14 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D Notes...

Page 44: ...pter Chapter Chapter In This Chapter Safety Guidelines 2 2 Orientation to DL06 Front Panel 2 5 Mounting Guidelines 2 7 Wiring Guidelines 2 11 System Wiring Strategies 2 14 Wiring Diagrams and Specific...

Page 45: ...uits should be designed using simple logic with a minimum number of highly reliable electromechanical components Every automation application is different so there may be special requirements for your...

Page 46: ...Rs and SCRs provide a convenient means for removing power from the I O system during an emergency situation By de energizing an MCR or SCR coil power to the input optional and output devices is remove...

Page 47: ...known starting point Orderly System Shutdown Ideally the first level of fault detection is the PLC control program which can identify machine problems Certain shutdown sequences should be performed Th...

Page 48: ...2 Mode Switch Option Slots Output Status Indicators Communication Ports Output Circuit Power Input for DC output versions only Input Status Indicators Status Indicators Power Inputs Discrete Outputs D...

Page 49: ...crewdriver The drawing below shows the procedure for removing one of the terminal blocks 1 Loosen the retention screws on each end of the connector block 2 From the center of the connector block pry u...

Page 50: ...ing hole locations for all versions of the DL06 Make sure you follow the installation guidelines to allow proper spacing from other components Enclosures Your selection of a proper enclosure is import...

Page 51: ...must be a minimum of 7 2 183 mm between the units 2 Provide a minimum clearance of 1 5 38 mm between the unit and all sides of the cabinet Remember to allow for any operator panels or other items moun...

Page 52: ...ommended for protecting the DL06 PLCs from power surges and EMI RFI noise The Automationdirect power line filter for use with 120VAC and 240VAC 1 5 Amps is an excellent choice locate at automationdire...

Page 53: ...se the equipment in low humidity environments Agency Approvals Some applications require agency approvals for particular components The DL06 Micro PLC agency approvals are listed below UL Underwriters...

Page 54: ...81 lb in 0 882 N m to 9 03 lb in 1 02 N m LOGIC Koyo 06 C0 C4 C2 X1 X3 X4 X6 X11 X13 X14 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C AC N 24V 0V N C C1 C3 Y0 Y15 Y12 Y10 Y17 Y7 Y5 Y...

Page 55: ...WG wire or two 18 AWG size wires Do not exceed this recommended capacity 2 Always use a continuous length of wire Do not splice wires to attain a needed length 3 Use the shortest possible wire length...

Page 56: ...em used on other DirectLogic family PLCs starting at X0 and Y0 The letter X is always used to indicate inputs and the letter Y is always used for outputs The I O numbering always starts at zero and do...

Page 57: ...secondary sides Opto couplers provide optical isolation in Input and Output circuits This isolates logic circuitry from the field side where factory machinery connects Note that the discrete inputs a...

Page 58: ...50 60Hz PWR 100 240V 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20 21 22 23 PORT1 PORT2 TERM RUN STOP PWR RUN CPU TX1 RX1 TX2 RX2 Use cable part no EA 2CBL 1 15 pin D shell male 15 pin VGA male DL06 Micr...

Page 59: ...an successfully connect the supply and field device every time by understanding sourcing and sinking For example the figure to the right depicts a sinking input To properly connect the external supply...

Page 60: ...4 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C AC N 24V 0V V C1 C3 Y0 Y15 Y12 Y10 Y17 Y7 Y5 Y2 C0 C2 Y16 Y14 Y13 Y11 Y6 Y4 Y3 Y1 LG G AC L I O Common Terminal Concepts In order for a...

Page 61: ...iary 24VDC power supply or another supply 12VDC or 24VDC as long as the input specifications are met In the next circuit a field device has an open emitter PNP transistor output It sources current to...

Page 62: ...utput point logic In other words the field device input is energized when the PLC output is OFF from a ladder logic point of view Your ladder program must comprehend this and generate an inverted outp...

Page 63: ...ey are organized with four relays per common The figure below shows the relays and the internal wiring of the PLC Note that each group is isolated from the other group of outputs In the circuit below...

Page 64: ...ied to the coil These transient voltages can damage PLC outputs or other electronic devices connected to the circuit and cause unreliable operation of other electronics in the general area Transients...

Page 65: ...nto parallel wiring and may disrupt the PLC and other electronics in the area This EMI can make an otherwise stable control system behave unpredictably at times PLC s Integrated Transient Suppressors...

Page 66: ...ed in both these examples If you are unable to measure the transients generated by the connected loads of your control system using additional transient suppression on all inductive loads would be the...

Page 67: ...D ASMD 250 Protection Diode Module 784 4C SKT 1 Relay Socket ZL TSD8 24 Transorb Module Two more common options for DC coils are Metal Oxide Varistors MOV or TVS diodes These devices should be connect...

Page 68: ...eight bi directional 180V TVS diodes ZL TSD8 120 Transorb Module NOTE Manufacturers of devices with coils frequently offer MOV or TVS diode suppressors as an add on option which mount conveniently acr...

Page 69: ...iode as shown in the following diagram DO NOT use this circuit with an AC power supply When the load is energized the diode is reverse biased high impedance When the load is turned off energy stored i...

Page 70: ...C0 C4 C2 X1 X3 X4 X6 X11 X13 X14 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C AC N 24V 0V V C1 C3 Y0 Y15 Y12 Y10 Y17 Y7 Y5 Y2 C0 C2 Y16 Y14 Y13 Y11 Y6 Y4 Y3 Y1 LG G AC L OUTPUT Sinkin...

Page 71: ...ply However you can split the outputs among any number of supplies as long as all supply voltages are within the specified range all output points are wired as sinking all source terminals are connect...

Page 72: ...d control such as stepper motor intelligent drive systems Output Y0 and Y1 can generate pulse and direction signals or it can generate CCW and CW pulse signals respectively See Appendix E on high spee...

Page 73: ...pical bank Outputs are organized into four banks of four triac switches Each bank has a common terminal The wiring example below shows all commons connected together but separate supplies and common c...

Page 74: ...Immunity NEMA ICS3 304 Terminal Type Removable Wire Gauge One 16 AWG or two 18 AWG 24 AWG minimum AC Input Specifications Input Voltage Range Min Max 80 132 VAC 47 63 Hz Operating Voltage Range 90 12...

Page 75: ...L L C0 C4 C2 X1 X3 X4 X6 X11 X13 X14 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C L L L L L L L L L L L L AC N 24V 0V N C C1 C3 Y0 Y15 Y12 Y10 Y17 Y7 Y5 Y2 C0 C2 Y16 Y14 Y13 Y11 Y6 Y4...

Page 76: ...ating Temperature 32 to 131 F 0 to 55 C Storage Temperature 4 to 158 F 20 to 70 C Relative Humidity 5 to 95 non condensing Environmental air No corrosive gases permitted Vibration MIL STD 810C 514 2 S...

Page 77: ...equivalent circuit for standard inputs is shown below and the high speed input circuit is shown to the left Outputs are organized into four banks of four triac switches Each bank has a common termina...

Page 78: ...8 AWG 24 AWG minimum DC Input Specifications Parameter High Speed Inputs X0 X3 Standard DC Inputs X4 X23 Input Voltage Range 10 8 26 4 VDC 10 8 26 4 VDC Operating Voltage Range 12 24 VDC 12 24 VDC Max...

Page 79: ...D0 06DD1 PLC has twenty sinking sourcing DC inputs and sixteen sinking DC outputs The following diagram shows a typical field wiring example The AC external power connection uses four terminals as sho...

Page 80: ...Operating Voltage Range 12 24 VDC 12 24 VDC Peak Voltage 30VDC 7kHz maximum frequency 30VDC Minimum Pulse Width 100 s N A ON Voltage Level 10 0 VDC 10 0 VDC OFF Voltage Level 2 0 VDC 2 0 VDC Max Input...

Page 81: ...ed common terminal and may be wired as either sinking or sourcing inputs The wiring example below shows all commons connected together but separate supplies and common circuits may be used All outputs...

Page 82: ...8 26 4 VDC 10 8 26 4 VDC Operating Voltage Range 12 24 VDC 12 24 VDC Peak Voltage 30 VDC 7 kHz maximum frequency 30VDC Minimum Pulse Width 70 s N A ON Voltage Level 10 0 VDC 10 0 VDC OFF Voltage Level...

Page 83: ...cuit is shown to the left Outputs are organized into four banks of four normally open relay contacts Each bank has a common terminal The wiring example below shows all commons connected together but s...

Page 84: ...um DC Input Specifications Parameter High Speed Inputs X0 X3 Standard DC Inputs X4 X23 Min Max Voltage Range 10 8 26 4 VDC 10 8 26 4 VDC Operating Voltage Range 12 24 VDC 12 24 VDC Peak Voltage 30VDC...

Page 85: ...may be wired as either sinking or sourcing inputs The wiring example below shows all commons connected together but separate supplies and common circuits may be used All outputs actually share the sam...

Page 86: ...C 10 8 26 4 VDC Operating Voltage Range 12 24 VDC 12 24 VDC Peak Voltage 30VDC 7kHz maximum frequency 30VDC Minimum Pulse Width 70 s N A ON Voltage Level 10 0 VDC 10 0 VDC OFF Voltage Level 2 0 VDC 2...

Page 87: ...ed All outputs actually share the same common Note the requirement for external power LOGIC Koyo 06 C0 C4 C2 X1 X3 X4 X6 X11 X13 X14 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C V1 V3...

Page 88: ...Range 10 8 26 4 VDC 10 8 26 4 VDC Operating Voltage Range 12 24 VDC 12 24 VDC Peak Voltage 30VDC 7kHz maximum frequency 30VDC Minimum Pulse Width 70 s N A ON Voltage Level 10 0 VDC 10 0 VDC OFF Volta...

Page 89: ...y open relay contacts Each bank has a common terminal The wiring example above shows all commons connected together but separate supplies and common circuits may be used The equivalent output circuit...

Page 90: ...t Specifications Parameter High Speed Inputs X0 X3 Standard DC Inputs X4 X23 Min Max Voltage Range 10 8 26 4 VDC 10 8 26 4 VDC Operating Voltage Range 12 24 VDC 12 24 VDC Peak Voltage 30VDC 7kHz maxim...

Page 91: ...input circuit Maximum Voltage Maximum voltage allowed for the input circuit ON Voltage Level The minimum voltage level at which the input point will turn ON OFF Voltage Level The maximum voltage leve...

Page 92: ...tup 3 4 Using Battery Backup 3 8 CPU Operation 3 12 I O Response Time 3 17 CPU Scan Time Considerations 3 20 Memory Map 3 25 DL06 System V memory 3 29 DL06 Aliases 3 31 DL06 Memory Map 3 32 X Input Y...

Page 93: ...he CPU board in the PLC In addition there is RAM with the CPU which will store system parameters V memory and other data not in the application program The RAM is backed up by a super capacitor storin...

Page 94: ...ws Yes Built in communication ports RS232C Yes FLASH Memory Standard on CPU Local Discrete I O points available 36 Local Analog input output channels maximum None High Speed I O quad pulse out interru...

Page 95: ...Receive data RS 232C 4 RTS Ready to send 5 CTS Clear to send 6 RXD Receive data RS 422 485 7 0V Power connection GND 8 0V Power connection GND 9 TXD Transmit data RS 422 485 10 TXD Transmit data RS 42...

Page 96: ...ng retentive memory ranges The following paragraphs provide the setup information necessary to get the CPU ready for programming They include setup instructions for either type of programming device y...

Page 97: ...X14 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C AC N 24V 0V N C C1 C3 Y0 Y15 Y12 Y10 Y17 Y7 Y5 Y2 C0 C2 Y16 Y14 Y13 Y11 Y6 Y4 Y3 Y1 LG G AC L D0 06DR 2 0A OUTPUT 6 240V 50 60Hz 2 0A...

Page 98: ...warning note below WARNING Once the super capacitor has discharged the system memory may not retain the previous mode of operation When this occurs the PLC can power up in either Run or Program Mode i...

Page 99: ...ttery in the DL06 CPU 1 Press the retaining clip on the battery door down and swing the battery door open 2 Place the battery into the coin type slot with the or larger side out 3 Close the battery do...

Page 100: ...AUX 31 Clear V memory Initializing System Memory The DL06 Micro PLC maintains system parameters in a memory area often referred to as the scratchpad In some cases you may make changes to the system s...

Page 101: ...o PLC memory Setting Retentive Memory Ranges The DL06 PLCs provide certain ranges of retentive memory by default The default ranges are suitable for many applications but you can change them if your a...

Page 102: ...irect to require the memory of the PLC to be cleared along with the password There are three ways to lock the CPU once the password has been entered 1 If the CPU power is disconnected the CPU will be...

Page 103: ...n retentive configuration Update input Service peripheral PGM Mode RUN Execute program Update output Do diagnostics NO NO Fatal error Force CPU into PGM mode OK Report error set flag register turn on...

Page 104: ...12 13 14 15 16 17 20 21 22 23 PORT1 PORT2 TERM RUN STOP PWR RUN CPU TX1 RX1 TX2 RX2 Read Inputs Read Inputs from Specialty I O Solve the Application Program Write Outputs Diagnostics Service Peripher...

Page 105: ...rcing can temporarily change the status of a discrete bit For example you may want to force an input on even though it is really off This allows you to change the point status that was stored in the i...

Page 106: ...the execution cycle used to communicate with these modules The CPU performs both read and write requests during this segment Update Clock Special Relays and Special Registers The DL06 CPUs have an in...

Page 107: ...PID loop calculation on the overall CPU scan time Write Outputs Once the application program has solved the instruction logic and constructed the output image register the CPU writes the contents of...

Page 108: ...lly reported For example the Handheld Programmer would display the following message E003 S W TIMEOUT when the scan overrun occurs You can use AUX 53 to view the minimum maximum and current scan time...

Page 109: ...response time is longest when the input changes just after the Read Inputs portion of the execution cycle In this case the new input status is not read until the following scan The following diagram s...

Page 110: ...the response time In this case you can calculate the response time by simply adding the following items Input Delay Instruction Execution Time Output Delay Response Time The instruction execution time...

Page 111: ...ance of a system As we ve shown previously there are several segments that make up the scan cycle Each of these segments requires a certain amount of time to complete Of all the segments the following...

Page 112: ...is portion of the cycle the CPU completes any CPU bus communications The actual time required depends on the type of modules installed and the type of request being processed Update Clock Calendar Spe...

Page 113: ...rupt management for every 1ms of instruction time The total scan time is calculated by adding the program execution time to the overhead shown above and multiplying the result ms by 1 18 Overhead incl...

Page 114: ...clear distinction between number systems After counting PLC resources it s time to access PLC resources there s a difference The CPU instruction set accesses resources of the PLC using octal addresse...

Page 115: ...vert or move the data on its own Binary Coded Decimal Numbers Since humans naturally count in decimal 10 fingers 10 toes we prefer to enter and view PLC data in decimal as well However computers are m...

Page 116: ...for DL06 Micro PLCs on the following pages X0 X1 X2 X3 X4 X5 X6 X7 X10 X11 LOGIC Koyo 06 C0 C4 C2 X1 X3 X4 X6 X11 X13 X14 X16 X21 X23 N C C1 C3 X2 X5 X7 X10 X12 X15 X17 X20 X22 X0 N C AC N 24V 0V N C...

Page 117: ...world device that is they cannot be physically tied to switches output coils etc There are 1024 control relays internal to the CPU Because of this control relays can be programmed as discrete inputs...

Page 118: ...r Status Bits CT Data type There are 128 counters available in the CPU Counter status bits that reflect the relationship between the current value and the preset value of a specified counter The count...

Page 119: ...flowchart Each program Stage denotes a program segment When the program segment or Stage is active the logic within that segment is executed If the Stage is off or inactive the logic is not executed a...

Page 120: ...t value 0000 to 9999 R W V7630 Starting location for the multi step presets for channel 1 The default value is 3630 which indicates the first value should be obtained from V3630 Since there are 24 pre...

Page 121: ...V7743 V Memory address in which the default display message is stored as set R W V7744 V7746 Reserved R W V7747 Location contains a 10 ms counter 0 99 This location increments once every 10 ms R V7750...

Page 122: ...word memory reference for discrete bits X0 through X17 therefore its alias is VX0 V40401 is the word memory reference for discrete bits X20 through X37 therefore its alias is VX20 V40500 VY0 V40500 is...

Page 123: ...ter Status Bits CT0 CT177 V41140 V41147 128 CT0 Data Words See Appendix F None V400 V677 V1200 V7377 V10000 V17777 192 3200 4096 None specific used with many instructions Data Words EEPROM See Appendi...

Page 124: ...13 312 311 310 307 306 305 304 303 302 301 300 V40414 V40514 337 336 335 334 333 332 331 330 327 326 325 324 323 322 321 320 V40415 V40515 357 356 355 354 353 352 351 350 347 346 345 344 343 342 341 3...

Page 125: ...260 V41013 317 316 315 314 313 312 311 310 307 306 305 304 303 302 301 300 V41014 337 336 335 334 333 332 331 330 327 326 325 324 323 322 321 320 V41015 357 356 355 354 353 352 351 350 347 346 345 344...

Page 126: ...1325 1324 1323 1322 1321 1320 V41055 1357 1356 1355 1354 1353 1352 1351 1350 1347 1346 1345 1344 1343 1342 1341 1340 V41056 1377 1376 1375 1374 1373 1372 1371 1370 1367 1366 1365 1364 1363 1362 1361 1...

Page 127: ...0633 717 716 715 714 713 712 711 710 707 706 705 704 703 702 701 700 V40634 737 736 735 734 733 732 731 730 727 726 725 724 723 722 721 720 V40635 757 756 755 754 753 752 751 750 747 746 745 744 743 7...

Page 128: ...25 1724 1723 1722 1721 1720 V40675 1757 1756 1755 1754 1753 1752 1751 1750 1747 1746 1745 1744 1743 1742 1741 1740 V40676 1777 1776 1775 1774 1773 1772 1771 1770 1767 1766 1765 1764 1763 1762 1761 176...

Page 129: ...0 V41147 MSB DL06 Timer T Contacts LSB Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 017 016 015 014 013 012 011 010 007 006 005 004 003 002 001 000 V41100 037 036 035 034 033 032 031 030 027 026 025...

Page 130: ...260 V40013 V40213 317 316 315 314 313 312 311 310 307 306 305 304 303 302 301 300 V40004 V40214 337 336 335 334 333 332 331 330 327 326 325 324 323 322 321 320 V40015 V40215 357 356 355 354 353 352 35...

Page 131: ...1734 1733 1732 1731 1730 1727 1726 1725 1724 1723 1722 1721 1720 V40075 V40275 1757 1756 1755 1754 1753 1752 1751 1750 1747 1746 1745 1744 1743 1742 1741 1740 V40076 V40276 1777 1776 1775 1774 1773 1...

Page 132: ...2734 2733 2732 2731 2730 2727 2726 2725 2724 2723 2722 2721 2720 V40135 V40335 2757 2756 2755 2754 2753 2752 2751 2750 2747 2736 2735 2734 2733 2732 2731 2730 V40136 V40336 2777 2776 2775 2774 2773 2...

Page 133: ...3730 3727 3726 3725 3724 3723 3722 3721 3720 V40175 V40375 3757 3756 3755 3754 3753 3752 3751 3750 3747 3746 3745 3744 3743 3742 3741 3740 V40176 V40376 3777 3776 3775 3774 3773 3772 3771 3770 3767 3...

Page 134: ...ies 4 2 Module Placement 4 3 Power Budgeting 4 5 Configuring the DL06 s Comm Ports 4 7 Connecting to MODBUS and DirectNET Networks 4 9 Non Sequence Protocol ASCII In Out and PRINT 4 11 Network Slave O...

Page 135: ...selection information Networking Configurations The DL06 PLCs offers the following ways to add networking Ethernet Communications Module s connects a DL06 to high speed peer to peer networks Any PLC c...

Page 136: ...E 4 3 Chapter 4 System Design and Configuration 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D Module Placement Slot Numbering The DL06 has four slots which are numbered as follows 1 2 3 4 5 6 7 8 9 10 11 1...

Page 137: ...used Automatic Manual Manual I O Configuration It may never become necessary but DL06 CPUs allow manual I O address assignments for any I O slot s You can manually modify an auto configuration to mat...

Page 138: ...power Be aware of the trade off between 5VDC power and 24VDC power The amount of 5VDC power available depends on the amount of 24VDC power being used and the amount of 24VDC power available depends o...

Page 139: ...L06 Base Unit Power Required Part Number 5 VDC mA 24 VDC mA D0 06AA 800mA none D0 06AR 900mA none D0 06DA 800mA none D0 06DD1 600mA 280mA note 1 D0 06DD2 600mA none D0 06DR 950mA none D0 06DD1 D 600mA...

Page 140: ...automationdirect com Select Documentation Misc DA DNET M Communications Port 2 Port 2 Connects to HPP DirectSOFT 5 operator interfaces etc 15 pin multifunction port RS232C RS422 RS485 Communication sp...

Page 141: ...RXD 0V TXD RXD TXD RXD Signal GND TXD RXD TXD RXD Signal GND RTS RTS CTS CTS RTS RTS CTS CTS DL06 CPU Port 2 1 6 11 1 6 11 5 10 15 5 10 15 The recommended cable for RS422 is AutomationDirect L19954 B...

Page 142: ...ounter problems the time can be increased Station Number For making the CPU port a MODBUS master choose 1 The possible range for MODBUS slave numbers is from 1 to 247 but the DL06 network instructions...

Page 143: ...nd the RTS OFF Delay time must be set to 2ms or more If you encounter problems the time can be increased Station Number For making the CPU port a DirectNET master choose 1 The allowable range for Dire...

Page 144: ...ion if you have Port 2 wired for Hardware Flow Control Xon Xoff with RTS and CTS signal connected between all devices RTS Flow Control Choose this selection if you have Port 2 RTS signal wired between...

Page 145: ...function code determines whether the access is a read or a write and whether to access a single data point or a group of them The DL06 supports the MODBUS function codes described below Determining th...

Page 146: ...ppropriate MODBUS address if required The table below shows the exact equation used for each group of data DL06 Memory Type QTY Decimal PLC Range Octal MODBUS Address Range Decimal MODBUS Data Type Fo...

Page 147: ...mal 16 3 Add the starting address for the range 2048 4 Use the MODBUS data type from the table Example 3 T10 Current Value Find the MODBUS address to obtain the current value from Timer T10 1 Find Tim...

Page 148: ...ocations within each data type If your software only supports 484 mode then there may be some PLC memory locations that will be unavailable The actual equation used to calculate the address depends on...

Page 149: ...nters V1000 V1177 3513 4513 30513 40513 V memory Data Words V1200 V1377 3641 4641 30641 40641 V1400 V1746 3769 4769 30769 40769 V1747 V1777 31000 41000 V2000 V7377 41025 V10000 V17777 44097 1 Refer to...

Page 150: ...S and DirectNet are single master multiple slave networks The master is the only member of the network that can initiate requests on the network This section teaches you how to design the required lad...

Page 151: ...5 X17 X20 X22 X0 N C AC N 24V 0V N C C1 C3 Y0 Y15 Y12 Y10 Y17 Y7 Y5 Y2 C0 C2 Y16 Y14 Y13 Y11 Y6 Y4 Y3 Y1 LG G AC L D0 06DR 2 0A OUTPUT 6 240V 50 60Hz 2 0A 6 27V INPUT 12 24V 3 15mA Y X 40VA 50 60Hz PW...

Page 152: ...pes of DirectLOGIC products NOTE Since V memory words are always 16 bits you may not always use the whole word For example if you only specify 3 bytes and you are reading Y outputs from the slave you...

Page 153: ...ress and a valid data type for the slave DirectNET slaves specify the same address in the WX and RX instruction as the slave s native I O address MODBUS DL405 DL205 or DL06 slaves specify the same add...

Page 154: ...a separate program stage to ensure proper execution and switch from stage to stage allowing only one of them to be active at a time Communications from a Ladder Program Typically network communicatio...

Page 155: ...to access a single data point or a group of them The DL06 supports the MODBUS function codes described below 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D MODBUS Function Code Function DL06 Data Types Avai...

Page 156: ...The following MODBUS function codes are supported by the MRX instruction 01 Read a group of coils 02 Read a group of inputs 03 Read holding registers 04 Read input registers 07 Read Exception status 0...

Page 157: ...4001 4999 03 Read Holding Register 584 984 40001 49999 5 digit or 4000001 465535 6 digit 04 Read Input Register 484 Mode 3001 3999 04 Read Input Register 584 984 Mode 30001 39999 5 digit or 3000001 36...

Page 158: ...ess specify a slave station address 0 247 Function Code The following MODBUS function codes are supported by the MWX instruction 05 Force Single coil 06 Preset Single Register 08 Diagnostics 15 Force...

Page 159: ...01 49999 5 digit or 400001 465535 6 digit 08 Diagnostics 484 and 584 984 Mode 0 65535 15 Force Multiple Coils 484 1 999 15 Force Multiple Coils 585 984 Mode 1 65535 16 Preset Multiple Registers 484 Mo...

Page 160: ...ogram must wait for the communications to finish before starting the next transaction The Port Communication Error bit turns on when the PLC has detected an error Use of this bit is optional When used...

Page 161: ...rites to one register Use function code 16 to write to multiple registers Only one Network Instruction WX RX MWX MRX can be enabled in one scan That is the reason for the interlock bits For using many...

Page 162: ...ut Data Instructions 5 52 Logical Instructions Accumulator 5 69 Math Instructions 5 86 Transcendental Functions 5 118 Bit Operation Instructions 5 120 Number Conversion Instructions Accumulator 5 127...

Page 163: ...100 Add Binary Top of Stack ADDBS 5 114 Add Double ADDD 5 87 Add Formatted ADDF 5 106 Add Real ADDR 5 88 Add to Top ATT 5 162 Add Top of Stack ADDS 5 110 And AND 5 14 And Bit of Word AND 5 15 And AND...

Page 164: ...terrupt INT 5 183 Interrupt Return IRT 5 183 Interrupt Return Conditional IRTC 5 183 Invert INV 5 129 LCD 5 200 Load LD 5 57 Load Accumulator Indexed LDX 5 61 Load Accumulator Indexed from Data Consta...

Page 165: ...SETI 5 36 SETBIT 5 144 Shift Left SHFL 5 121 Shift Register SR 5 51 Shift Right SHFR 5 122 Shuffle Digits SFLDGT 5 139 Sine Real SINR 5 118 Source to Table STT 5 156 Square Root Real SQRTR 5 119 Stage...

Page 166: ...een developed and accepted compiled Each instruction listed in this chapter will have a small chart to indicate how the instruction is used with DirectSOFT and the HPP The following paragraphs show ho...

Page 167: ...il The instructions used would be STR X0 AND X1 followed by OUT Y0 Midline Outputs Sometimes it is necessary to use midline outputs to get additional outputs that are conditional on other contacts The...

Page 168: ...join one or more parallel branches in series The And Store ANDSTR instruction allows this operation The following example shows a simple network with contact branches in series with parallel contacts...

Page 169: ...6 PLCs use an 8 level boolean stack to evaluate the various logic elements The boolean stack is a temporary storage area that solves the logic for the rung Each time the program encounters a STR instr...

Page 170: ...the CPU cycle NOTE Even though the immediate input instruction reads the most current status from the input point it only uses the results to solve that one instruction It does not use the new status...

Page 171: ...Type DL06 Range A aaa Inputs X 0 777 Outputs Y 0 777 Control Relays C 0 1777 Stage S 0 1777 Timer T 0 377 Counter C CT 0 177 Special Relay SP 0 777 DS Used HPP Used DirectSOFT DirectSOFT Boolean Inst...

Page 172: ...inter PB See memory map 0 to 15 Handheld Programmer Keystrokes DirectSOFT32 Y2 OUT B1400 12 STR V 1 OUT 2 SHFT 4 0 0 1 2 ENT ENT K B Y2 OUT B1400 12 DirectSOFT32 OUT 2 ENT Handheld Programmer Keystrok...

Page 173: ...s Direct SOFT32 Operand Data Type DL06 Range A aaa Inputs X 0 777 Outputs Y 0 777 Control Relays C 0 1777 Stage S 0 1777 Timer T 0 377 Counter CT 0 177 Special Relay SP 0 777 DS Implied HPP Used DS Im...

Page 174: ...ectSOFT32 ORN V 1 OUT 7 4 0 0 7 B1400 7 ENT ENT ENT K SHFT B Operand Data Type DL06 Range A aaa bb V memory B See memory map 0 to 15 Pointer PB See memory map 0 to 15 DS Implied HPP Used DS Implied HP...

Page 175: ...trokes Direct SOFT32 Operand Data Type DL06 Range A aaa Inputs X 0 777 Outputs Y 0 777 Control Relays C 0 1777 Stage S 0 1777 Timer T 0 377 Counter CT 0 177 Special Relay SP 0 777 DS Implied HPP Used...

Page 176: ...grammer Keystrokes V 1 SHFT 4 0 0 4 ENT K B STR 1 ENT AND X1 Y5 OUT B1400 4 DirectSOFT32 STR 1 Handheld Programmer Keystrokes OUT 5 ANDN V 1 SHFT 4 0 0 4 ENT K B ENT ENT DS Implied HPP Used DS Implied...

Page 177: ...STR ENT 2 C AND V ENT 3 D OR Q ENT 4 E ANDST L ENT OUT GX 5 F ENT Y5 OUT X1 X2 X4 X3 Handheld Programmer Keystrokes Direct SOFT32 STR 1 B ENT STR ENT AND V ENT OUT GX 5 F ENT 2 C 3 D AND V ENT 4 E ORS...

Page 178: ...energize Aaaa OUT STR 1 B ENT STR ENT 4 E Y2 OR OUT X1 Y2 OR OUT X4 Handheld Programmer Keystrokes Direct SOFT32 INST O 5 F 3 D ENT ENT 2 C ENT 2 C ENT INST O 5 F 3 D ENT ENT A aaa OROUT STR 1 B ENT...

Page 179: ...c state controlled by X0 To avoid this situation multiple outputs using the same location must not be used in programming Aaaa bb OUT B1400 3 OUT X1 B1401 6 OUT DirectSOFT32 STR 1 Handheld Programmer...

Page 180: ...lected in DirectSOFT from the Instruction Browser The rung cannot be created or displayed in DirectSOFT versions earlier than 1 1i In the following example every time X1 makes an Off to On transition...

Page 181: ...ed DS Used HPP Used DirectSOFT DirectSOFT Store Positive Differential STRPD The Store Positive Differential instruction begins a new rung or an additional branch in a rung with a contact The contact c...

Page 182: ...X 0 777 Outputs Y 0 777 Control Relays C 0 1777 Stage S 0 1777 Timer T 0 377 Counter CT 0 177 DS Implied HPP Used DS Implied HPP Used DirectSOFT DirectSOFT Or Positive Differential ORPD The Or Positiv...

Page 183: ...tus of the contact will be open until the associated image register point makes an On to Off transition closing it for one CPU scan Thereafter it remains open until another On to Off transition Aaaa A...

Page 184: ...ata Type DL06 Range A aaa Inputs X 0 777 Outputs Y 0 777 Control Relays C 0 1777 Stage S 0 1777 Timer T 0 377 Counter CT 0 177 DS Used HPP Used DS Used HPP Used DirectSOFT DirectSOFT Set SET The Set i...

Page 185: ...rokes STR 2 RST V 1 SHFT 4 0 0 1 ENT K B ENT Operand Data Type DL06 Range A aaa bb V memory B See memory map 0 to 15 Pointer PB See memory map 0 to 15 DS Used HPP Used DS Used HPP Used DirectSOFT Dire...

Page 186: ...some cases you may want certain output points in the specified pause range to operate normally In that case use Aux 58 to over ride the Pause instruction DirectSOFT32 PAUSE X1 Y5 Y7 STR 1 B ENT Handh...

Page 187: ...3 Y3 OUT DirectSOFT32 Handheld Programmer Keystrokes STR SHFT 4 E 2 C 0 A 0 A 0 A 4 E 9 J 3 D 3 D ENT OUT GX ENT 3 D Y3 OUT V2000 K5060 DirectSOFT32 Handheld Programmer Keystrokes SHFT OUT GX ENT 3 D...

Page 188: ...F ENT 4 E 5 F ENT 0 A 0 A Y3 OUT V2002 K2500 V2000 K4500 DirectSOFT32 Handheld Programmer Keystrokes SHFT 4 E 2 C 0 A 0 A 0 A STR OR Q SHFT 4 E 2 C 0 A 0 A 2 C OUT GX ENT 3 D V aaa B bbb V aaa B bbb O...

Page 189: ...eystrokes 2 C 3 D 4 E 5 F ENT 5 F 0 A ENT 0 A 0 A 2 C STR SHFT 4 E 0 A 0 A 0 A AND V SHFT 4 E 2 C 0 A 0 A 2 C OUT GX ENT 3 D Y3 OUT V2002 K2345 V2000 K5000 DirectSOFT32 Handheld Programmer Keystrokes...

Page 190: ...ENT 3 D Y3 OUT V2000 K1000 DirectSOFT32 Handheld Programmer Keystrokes STR ENT OUT GX SHFT AND V 2 C 0 A 0 A 0 A 1 B 0 A 0 A 0 A ENT 3 D 0 A ENT 0 A 4 E 5 F Y3 OUT V2000 K4050 DirectSOFT32 Handheld P...

Page 191: ...2 C 5 F ENT 0 A 0 A ENT 1 B 0 A 0 A 0 A 4 E Y3 OUT V2000 K1000 V2002 K2500 DirectSOFT32 Handheld Programmer Keystrokes STR SHFT 2 C 0 A 0 A 0 A ORN R OUT GX SHFT AND V 2 C 0 A 0 A 2 C Operand Data Ty...

Page 192: ...A 0 A 7 H ENT 0 A 0 A 0 A 2 C Y3 OUT V2000 K7000 V2002 K2500 DirectSOFT32 Handheld Programmer Keystrokes STR SHFT 4 E 2 C 0 A 0 A 0 A ANDN W OUT GX SHFT AND Y ENT 3 D SHFT AND V 2 C 0 A 0 A Operand Da...

Page 193: ...anch in a rung The status of the contact will be the same as the status of the associated input point at the time the instruction is executed The image register is not updated Store Not Immediate STRN...

Page 194: ...ammer Keystrokes DirectSOFT32 STR 1 B ENT AND V SHFT 8 I ENT 2 C ENT 5 F X1 X2 Y5 OUT Handheld Programmer Keystrokes DirectSOFT32 STR ANDN W SHFT 8 I OUT GX 1 B ENT ENT 2 C ENT 5 F Operand Data Type D...

Page 195: ...erand Data Type DL06 Range aaa Outputs Y 0 777 DS Used HPP Used DS Used HPP Used DirectSOFT DirectSOFT Out Immediate OUTI The Out Immediate instruction reflects the status of the rung on off and outpu...

Page 196: ...3 22 21 20 19 18 17 16 K8 Y30 X10 X11 X12 X13 X14 X15 X16 X17 ON OFF ON OFF ON ON OFF ON Y30 Y31 Y32 Y33 Y34 Y35 Y36 Y37 ON OFF ON OFF ON ON OFF ON K8 Load the value of 8 consecutive locations into th...

Page 197: ...Keystrokes STR SHFT 8 I 5 F 2 C 2 C ENT RST S Operand Data Type DL06 Range aaa Ouputs Y 0 777 DS Used HPP Used DS Used HPP Used DirectSOFT DirectSOFT Set Immediate SETI The Set Immediate instruction...

Page 198: ...52 Y53 Y54 Y55 Y56 Y57 OFF OFF ON OFF ON ON OFF ON DirectSOFT32 X0 X1 X2 X3 X4 X5 X6 X7 ON OFF ON OFF ON ON OFF ON Y40 Y41 Y42 Y43 Y44 Y45 Y46 Y47 ON OFF ON OFF ON ON OFF ON LDI V40400 V40502 Load the...

Page 199: ...technique is useful to quickly copy an input pattern to outputs without waiting for the CPU scan K bbb X aaa LDIF LDIF X10 K8 C0 Load the value of 8 consecutive location into the accumulator starting...

Page 200: ...resume from where it previously stopped The accumulating timer works similarly to the regular timer but two inputs are required The enable input starts and stops the timer When the timer stops the el...

Page 201: ...w these two methods of programming timers T aaa aaa T TMR B bbb Preset Timer TMRF B bbb Preset Timer Operand Data Type DL06 Range A B aaa bbb Timers T 0 777 V memory for preset values V 400 677 1200 7...

Page 202: ...4 and Y5 at one second intervals respectively When X1 is turned off the timer will be reset to 0 and the comparative contacts will turn off Y3 Y4 and Y5 STR TMR N 2 C STR SHFT MLR T 2 C ENT OUT GX Han...

Page 203: ...T 0 777 V memory for preset values V 400 677 1200 7377 7400 7577 10000 17777 Pointers preset only P 400 677 1200 7377 7400 7577 10000 17777 Constants preset only K 0 99999999 Timer discrete status bi...

Page 204: ...imer is reset Handheld Programmer Keystrokes X1 T6 TMRA T6 K30 C10 Y7 OUT X1 C10 1 2 3 4 5 6 7 8 0 0 10 10 20 30 40 50 0 Current Value T6 Timing Diagram Direct SOFT32 Seconds Handheld Programmer Keyst...

Page 205: ...p between the counter up and down inputs counter reset associated discrete bit current value and counter preset The UDC counter preset and current value are both double word BCD values NOTE The UDC us...

Page 206: ...nge A B aaa bbb Counters CT 0 177 V memory preset only V 400 677 1200 7377 7400 7577 10000 17777 Pointers preset only P 400 677 1200 7377 7400 7577 10000 17777 Constants preset only K 0 9999 Counter d...

Page 207: ...are used to energize Y3 Y4 and Y5 at different counts When the reset C10 turns on the counter status bit will turn off and the counter current value will be 0 and the comparative contacts will turn o...

Page 208: ...t must change the preset NOTE May be non volatile if MOV instruction is used With the HPP both the Counter discrete status bits and current value are accessed with the same data reference DirectSOFT u...

Page 209: ...d Y5 at different counts Although this is not shown in the example when the counter is reset using the Reset instruction the counter status bit will turn off and the current value will be 0 The curren...

Page 210: ...s used With the HPP both the Counter discrete status bits and current value are accessed with the same data reference DirectSOFT uses separate references such as CT2 for discrete status bit for Counte...

Page 211: ...y one Comparative contacts are used to energize Y3 and Y4 at different counts When the reset X3 turns on the counter status bit will turn off the current value will be 0 and the comparative contacts w...

Page 212: ...relays SR aaa From A bbb To B DATA CLOCK RESET Data Input Clock Input Reset Input Shift Register Bits C0 C17 Data Reset 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 1 Inputs on Successive Sc...

Page 213: ...memory The following example copies data from V memory location V2000 to V memory location V2010 Since the accumulator is 32 bits and V memory locations are 16 bits the Load Double and Out Double or...

Page 214: ...to V2010 and V2011 using the Out Double instruction LD K4935 X1 Load the value 4935 into the accumulator Shift the data in the accumulator 4 bits K4 to the right Output the lower 16 bits of the ac cu...

Page 215: ...When a POP is executed the value which was in the accumulator is cleared and the value that was on top of the stack is in the accumulator The values in the stack are shifted up one position in the sta...

Page 216: ...POP POP V2000 4 5 4 5 X X X X X X X X X X X Acc 0 0 0 0 4 5 4 5 4 5 Previous Acc value Current Acc value 0 0 0 0 3 7 9 2 Level 1 0 0 0 0 7 9 3 0 Level 2 X X X X X X X X Level 3 X X X X X X X X Level 4...

Page 217: ...X X X V2200 2 6 3 5 V2201 X X X X 2 6 3 5 Accumulator V2000 V2000 P2000 contains the value 440 Hex 440 Hex 2100 Octal which contains the value 2635 LDA O 2100 X1 OUT V 2000 Copy the data from the low...

Page 218: ...e value in the lower 16 bits of the accumulator to V2010 V2010 Acc V2000 8 9 3 5 8 9 3 5 0 0 0 0 8 9 3 5 8 9 3 5 Direct SOFT32 The unused accumulator bits are set to zero 1 B 2 C 0 A 0 A 0 A ENT Handh...

Page 219: ...output to V2010 and V2011 Operand Data Type DL06 Range A aaa V memory V See memory map Pointer P See memory map Constant K 0 FFFFFFFF Discrete Bit Flags Description SP53 On when the pointer is outside...

Page 220: ...f zero into the accumulator 0 A 7 H ENT Handheld Programmer Keystrokes LDF C10 K7 C0 Load the status of 7 consecutive bits C10 C16 into the accumulator OUTF Y0 K7 Copy the value from the specified num...

Page 221: ...SOFT32 LDA O 40400 X1 Load The HEX equivalent to the octal number into the lower 16 bits of the accumulator OUT V2000 Copy the value in lower 16 bits of the accumulator to V2000 V2000 Acc Hexadecimal...

Page 222: ...nused accumulator bits are set to zero V1500 Acc Octal 1 4 3 5 2 3 4 5 0 0 0 0 2 3 4 5 V Octal 1 4 1 0 The unused accumulator bits are set to zero 1 5 HEX Value in 1st stack location 0 0 0 0 0 0 1 5 L...

Page 223: ...FFF LD K1 X1 Load the offset value of 1 K1 into the lower 16 bits of the accumulator LDSX K2 Move the offset to the stack Load the accumulator with the data label number END K2 NCON K3333 NCON K2323 N...

Page 224: ...when any instruction loads a value of zero into the accumulator DS Used HPP N A DirectSOFT allows you to enter real numbers directly by using the leading R to indicate a real number entry You can ente...

Page 225: ...tion OUT A aaa Operand Data Type DL06 Range A aaa V memory V See memory map Pointer P See memory map Operand Data Type DL06 Range A aaa V memory V See memory map Pointer P See memory map Discrete Bit...

Page 226: ...tion SP63 ON when the result of the instruction causes the value in the accumulator to be zero bbb K OUTF A aaa Operand Data Type DL06 Range A aaa bbb Inputs X 0 777 Outputs Y 0 777 Control Relays C 0...

Page 227: ...X X X X Level 8 Accumulator Stack 0 0 0 0 7 9 3 0 Level 1 X X X X X X X X Level 2 X X X X X X X X Level 3 X X X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level...

Page 228: ...ctSOFT32 V 1 5 2 5 1 5 0 0 V The unused accumulator bits are set to zero Acc Octal HEX Octal Octal Octal The hex 15 converts to 25 octal which is added to the base address of V1500 to yield the final...

Page 229: ...lator using the LD instruction The value in the upper 8 bits of the lower 16 bits of the accumulator is copied to V1500 using the OUTM instruction A aaa OUTL LD Acc 8 9 3 5 0 0 3 5 0 0 0 0 8 9 3 5 Dir...

Page 230: ...e in V2000 into the lower 16 bits of the accumulator AND V2006 AND the value in the accumulator with the value in V2006 OUT V2010 Copy the lower 16 bits of the accumulator to V2010 0 0 1 0 1 0 0 0 0 1...

Page 231: ...1 1 1 1 0 1 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 2 8 7 A 0 0 0 1 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28...

Page 232: ...9 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 C10 C11 C12 C13 Y20 Y21 Y22 Y23 Accumulator 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 Acc Acc 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

Page 233: ...1 0 1 0 DirectSOFT32 0 1 1 0 1 0 1 0 0 0 1 1 1 0 0 0 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 LDD V1400 Load the value in V1400 and 1401 into the accumulator ANDS AND the value in the accumulator with the fir...

Page 234: ...0 2 8 7 A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 The upper 16 bits of the accumulator will be set to 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 31 30 29 28 27 26 25 24 23 22 21 20...

Page 235: ...1 1 1 1 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Acc Acc Acc V2010 6 A 7 A 5 4 7 E V2011 7 6 7 F 0 1 0...

Page 236: ...lator bits are set to zero OR Y20 Y23 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 DirectSOFT32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Acc Constant C20 K4 ON ON ON OFF OFF OFF ON ON C13 C12 C11 C10 C23 C22 C21 C2...

Page 237: ...1 0 0 0 1 1 1 DirectSOFT32 X1 Load the value in V1400 and V1401 in the accumulator ORS OR the value in the accumulator with the value in the first level of the accumulator stack OUTD V1500 36476A38 O...

Page 238: ...0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 The upper 16 bits of the accumulator will be set to 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 2...

Page 239: ...1 0 1 0 1 0 0 0 1 1 1 1 1 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Acc Acc Acc V2010 4 2 4 2 V2001 5 4...

Page 240: ...11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 C10 C11 C12 C13 OFF ON ON OFF Y20 Y21 Y22 Y23 OFF ON OFF ON Accumulator 0 0 0...

Page 241: ...0 0 0 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 0 0 1 1 1 0 0 0 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 DirectSOFT32 Handheld Programmer Keystrokes 1 B ENT 1 B 4 E 0 A 0 A ENT STR SHFT ANDST L 3 D OUT GX SHFT 3 D 1 B...

Page 242: ...to the instruction value SP62 On when the value in the accumulator is greater than the instruction value Handheld Programmer Keystrokes V2000 Acc CONSTANT 4 5 2 6 8 9 4 5 0 0 0 0 4 5 2 6 4 5 2 6 LD C...

Page 243: ...V2000 CMPD X1 V2010 Compared with SP60 C30 V2010 Acc V2000 4 5 2 6 7 2 9 9 V2001 4 5 2 6 7 2 9 9 V2011 6 7 3 9 5 0 2 6 DirectSOFT STR SHFT ANDST L 3 D SHFT 2 C ORST M CV P STR SHFT ENT STRN SP 6 G 0...

Page 244: ...ulator with the value of the specified discrete location Y20 Y23 Load the value of the specified discrete locations C10 C13 into the accumulator C10 K4 CMPF X1 Y20 K4 SP60 DirectSOFT32 C30 OUT Operand...

Page 245: ...ue in the stack SP60 will turn on energizing C30 CMPS X1 Acc 6 5 0 0 3 5 4 4 V1400 3 5 4 4 SP60 C30 OUT V1401 6 5 0 0 Acc 5 5 0 0 3 5 4 4 V1410 3 5 4 4 V1411 5 5 0 0 DirectSOFT32 Handheld Programmer K...

Page 246: ...he accumulator Compare the value with the real number representation for decimal 6 CMPR A aaa Operand Data Type DL06 Range A aaa V memory V See memory map Pointer P See memory map Constant R 3 402823E...

Page 247: ...in the accumulator is negative SP75 On when a BCD instruction is executed and a NON BCD number was encountered Direct SOFT32 Handheld Programmer Keystrokes LD V2000 X1 Load the value in V2000 into the...

Page 248: ...V2010 V2000 V2001 6 7 3 9 5 0 2 6 V2001 8 7 3 9 9 0 7 2 V2006 and V2007 Accumulator 2 0 0 0 4 0 4 6 8 7 3 9 9 0 7 2 Acc STR 1 B SHFT 0 A 3 D 3 D SHFT ANDST L 3 D 3 D 3 D OUT GX SHFT 3 D AND V 2 C 0 A...

Page 249: ...ccumulator is an invalid floating point number SP73 On when a signed addition or subtraction results in a incorrect sign bit SP74 On anytime a floating point math operation results in an underflow err...

Page 250: ...accumulator to V2010 V2010 2 0 0 _ V2000 4 7 5 8 8 3 0 0 0 0 2 4 7 5 1 5 9 2 Acc 8 8 3 The unused accumulator bits are set to zero SHFT ANDST L 3 D STR SHFT SHFT AND V 2 C 0 A 0 A ENT 6 G OUT GX SHFT...

Page 251: ...0 3 9 0 8 9 9 0 1 0 6 3 2 7 4 0 1 0 6 3 2 7 4 V2010 V2000 V2001 V2011 0 0 3 9 0 8 9 9 6 7 2 3 7 5 ACC STR SHFT SHFT ANDST L 3 D 3 D 3 D OUT GX SHFT 3 D RST S ISG U 1 B 1 B ENT 2 C 0 A 0 A ENT 6 G 2 C...

Page 252: ...r 4 1 7 0 0 0 0 0 0 0 0 0 4 0 E 0 Acc 2 2 decimal 1 5 7 1 11 x 2 exp 2 111 binary 7 decimal 128 1 129 DirectSOFT32 Exponent 8 bits Operand Data Type DL06 Range A aaa V memory V See memory map Pointer...

Page 253: ...0 and V2011 0 0 0 2 5 0 0 0 0 X 0 0 0 0 1 0 0 0 V2010 1 V2000 0 0 0 0 2 5 0 0 0 2 5 The unused accumulator bits are set to zero Acc STR SHFT ANDST L 3 D SHFT ORST M ISG U ANDST L OUT GX SHFT 3 D 1 B E...

Page 254: ...tor BCD Convert the value to BCD format It will occupy eight BCD digits 32 bits OUTD V1400 Output the number to V1400 and V1401 using the OUTD instruction 3 5 6 2 4 6 9 6 7 8 Accumulator 1 2 3 4 5 6 7...

Page 255: ...X 0 0 0 0 4 2 D 2 Acc 7 decimal x 1 5 1 0 5 1 101001 x 2 exp 6 1101001 binary 105 decimal 128 4 1 133 Exponent 8 bits Mantissa 23 bits Operand Data Type DL06 Range A aaa V memory V See memory map Poi...

Page 256: ...NON BCD number was encountered Direct SOFT32 Handheld Programmer Keystrokes LD V2000 X1 Load the value in V2000 into the lower 16 bits of the accumulator DIV V2006 The value in the accumulator is divi...

Page 257: ...0 Accumulator V1421 and V1420 0 0 1 5 0 0 0 0 0 0 V1500 V1400 0 0 0 0 V1401 V1501 0 0 0 3 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 First stack location contains the remainder The unused accumulator bits are set...

Page 258: ...it 4 1 7 0 0 0 0 0 0 0 0 0 4 1 7 0 DIVR Accumulator 4 1 2 0 0 0 0 0 0 0 0 0 3 F C 0 Acc 1 5 decimal 1 0 1 1 1 x 2 exp 0 1 1 binary 1 5 decimal 64 32 16 8 4 2 1 127 Exponent 8 bits 5 Discrete Bit Flags...

Page 259: ...MR N 1 B 4 E 0 A 0 A 2 C Operand Data Type DL06 Range A aaa V memory V See memory map Pointer P See memory map Discrete Bit Flags Description SP63 On when the result of the instruction causes the valu...

Page 260: ...mulator LD BIN ADDB OUTD V1500 K2565 Use either OR Constant V memory V1420 V1400 V1420 V1500 V1400 The binary value in the accumulator is added to the binary value in V1420 Copy the value in the lower...

Page 261: ...ccumulator L DD BIN K2561 Use either OR Constant V memory DirectSOFT Handheld Programmer Keystrokes STR X IN 1 LD V 1 4 0 0 OUT V 1 5 0 0 V 1 4 0 ADD 2 SHFT D SHFT SHFT D SHFT SHFT D SHFT B Operand Da...

Page 262: ...1 9 0 0 0 0 2 4 A 0 B Acc 6 1 9 The unused accumulator bits are set to zero STR X IN 1 D V 1 4 0 0 OUT V 1 5 0 0 V 1 4 0 S 2 SHFT B SHFT D ENT SHFT L ENT U B ENT ENT SHFT Use either OR Constant V memo...

Page 263: ...nstant V memory L DD BIN K393471 Load the value in V1400 and V1401 into the accumulator DirectSOFT Handheld Programmer Keystrokes STR X IN 1 D V 1 4 0 0 OUT V 1 5 0 0 V 1 4 0 S 2 SHFT B SHFT D ENT SHF...

Page 264: ...A 0 1 0 2 E The unused accumulator bits are set to zero 2 E 0 0 0 1 C C C V1500 C 2 E V1501 0 0 0 1 Acc STR X 1 D V 1 4 0 0 OUT V 1 5 0 0 V 1 4 0 M 2 SHFT B SHFT D ENT SHFT L ENT U L ENT ENT Copy the...

Page 265: ...Acc 3 2 0 The unused accumulator bits are set to zero 0 0 0 0 0 0 0 0 First stack location contains the remainder STR X 1 D V 1 4 0 0 OUT V 1 5 0 0 V 1 4 0 D 2 SHFT B SHFT D ENT SHFT L ENT I V ENT EN...

Page 266: ...0 4 A 3 C V2000 4 A 3 B STR 2 C 5 F SHFT ENT SHFT 2 C 3 D 4 E 1 B 2 C 0 A 0 A 0 A ENT Operand Data Type DL06 Range A aaa V memory V See memory map Pointer P See memory map Discrete Bit Flags Descripti...

Page 267: ...instruction is executed and a NON BCD number was encountered Operand Data Type DL06 Range A aaa bbb Inputs X 0 777 Outputs Y 0 777 Control Relays C 0 1777 Stage Bits S 0 1777 Timer Bits T 0 377 Counte...

Page 268: ...ANDST L 3 D 0 A 4 E ENT 5 F 5 F RST S NEXT NEXT NEXT NEXT SHFT Load the BCD value represented by discrete locations X0 X3 into the accumulator Subtract the BCD value represented by C0 C3 from the val...

Page 269: ...0 0 0 0 0 0 0 0 0 0 3 C0 C3 Accumulator 2 X0 X1 X2 X3 ON ON OFF OFF C0 C1 C2 C3 OFF ON OFF OFF Y10 Y11 Y12 Y13 OFF ON ON OFF The unused accumulator bits are set to zero Acc Handheld Programmer Keystro...

Page 270: ...11 Y12 Y13 OFF OFF ON OFF The unused accumulator bits are set to zero 0 0 0 0 0 0 0 0 First stack location contains the remainder Acc Handheld Programmer Keystrokes STR SHFT 8 I AND V OUT GX SHFT 5 F...

Page 271: ...3 X X X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 ADDS Add the value in the accumulator with the value in the first level of th...

Page 272: ...X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 SUBS Subtract the value in the first level of the accumulator stack from the value i...

Page 273: ...X X X X X X X Level 2 X X X X X X X X Level 3 X X X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 MULS Multiply the value in the acc...

Page 274: ...X X X X X X Level 7 X X X X X X X X Level 8 DIVS Divide the value in the accumulator by the value in the first level of the accumulator stack Acc V1400 0 0 2 0 0 0 0 0 0 0 2 0 Acc V1420 0 0 0 0 0 0 5...

Page 275: ...X X X X X X Level 2 X X X X X X X X Level 3 X X X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 ADDBS Add the binary value in the a...

Page 276: ...X X X Level 3 X X X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 SUBBS Subtract the binary value in the first level of the accumul...

Page 277: ...X X X X Level 2 X X X X X X X X Level 3 X X X X X X X X Level 4 X X X X X X X X Level 5 X X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 MULBS Multiply the binary value in the...

Page 278: ...X X X X X X X Level 6 X X X X X X X X Level 7 X X X X X X X X Level 8 DIVBS Divide the binary value in the accumulator by the binary value in the first level of the accumulator stack Acc V1400 0 0 1...

Page 279: ...the value in the accumulator to be zero SP70 On anytime the value in the accumulator is negative SP72 On anytime the value in the accumulator is an invalid floating point number SP73 On when a signed...

Page 280: ...oad Real instruction ACOSR ATANR SQR TR DirectSOFT 5 LDR R45 X1 Load the real number 45 into the accumulator RADR Convert the degrees into radians leaving the result in the accumulator OUTD V2000 Copy...

Page 281: ...ct SOFT32 Display LDF X10 K8 X1 Load the value represented by discrete locations X10 X17 into the accumulator SUM Sum the number of bits in the accumulator set to 1 OUT V1500 Copy the value in the low...

Page 282: ...0 0 0 0 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 C 4 0 4 1 0 0 1 1 1 0 0 0 0 0 1 0 1 0 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 0 1 1 0 0 1 1 1...

Page 283: ...0 0 0 0 0 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 4 C 4 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0 0 1 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 0 1 1 0 0 1 1...

Page 284: ...3 D SHFT ORN R MLR T ANDST L ENT OUT GX SHFT 3 D 1 B ENT INST O ENT 1 B 4 E 0 A 0 A ENT 2 C 1 B 5 F 0 A 0 A X1 LDD V1400 ROTL K2 OUTD V1500 Load the value in V1400 and V1401 into the accumulator The b...

Page 285: ...2 bit positions to the right OUTD V1500 Copy the value in the accumulator to V1500 and V1501 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 V1500 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 15 14...

Page 286: ...22 21 20 19 18 17 16 Acc 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 2...

Page 287: ...0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Acc 0 0 0 0 1 0...

Page 288: ...25 24 23 22 21 20 19 18 17 16 Acc 1 2 4 8 1 6 3 2 6 4 1 2 8 2 5 6 5 1 2 1 0 2 4 2 0 4 8 4 0 9 6 8 1 9 2 1 6 3 8 4 3 2 7 6 8 6 5 5 3 6 1 3 1 0 7 2 2 6 2 1 4 4 5 2 4 2 8 8 1 0 4 8 5 7 6 2 0 9 7 1 5 2 4...

Page 289: ...6 4 1 2 8 2 5 6 5 1 2 1 0 2 4 2 0 4 8 4 0 9 6 8 1 9 2 1 6 3 8 4 3 2 7 6 8 6 5 5 3 6 1 3 1 0 7 2 2 6 2 1 4 4 5 2 4 2 8 8 1 0 4 8 5 7 6 2 0 9 7 1 5 2 4 1 9 4 3 0 4 8 3 8 8 6 0 8 1 6 7 7 7 2 1 6 3 3 5 5...

Page 290: ...py the value in the accumulator to V2010 and V2011 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16...

Page 291: ...eld Programmer Keystrokes DirectSOFT32 LDD V2000 X1 Load the value in V2000 and V2001 into the accumulator BC DC PL Takes a 10 s complement of the value in the accumulator OUTD V2010 C opy the value i...

Page 292: ...lator BTOR 0 1 1 1 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 Acc 0 0 0 5 7 2 4 1 V1400 V1401 Binary Value Copy the real va...

Page 293: ...1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 Acc 0 0 0 5 7 2 4 1 V1500 V1501 Binary Value Copy the real value in the accumulator to V1500 and V1501 OUTD V1500 The binary number copied to V1500 0 0 1 0 1...

Page 294: ...ove the result from the accumulator to V memory The result is 32 bits wide requiring the Out Double to move it R ADR DEG R DirectSOFT32 LDR R45 X1 Load the real number 45 into the accumulator RADR Con...

Page 295: ...to the accumulator using the Load Address instruction The starting location for the HEX table V1600 is specified in the ASCII to HEX instruction The table below lists valid ASCII values for ATH conver...

Page 296: ...able in the HTA instruction Helpful Hint For parameters that require HEX values when referencing memory locations the LDA instruction can be used to convert an octal address to the HEX equivalent and...

Page 297: ...s value defines the number of V locations in the HEX table LDA O 1500 Convert octal 1500 to HEX 340 and load the value into the accumulator HTA V1400 V1400 is the starting location for the ASCII table...

Page 298: ...HEX value in the accumulator to seven segment display format OUTF Y20 K32 Copy the value in the accumulator to Y20 Y57 LD V1400 Load the value in V1400 nto the lower 16 bits of the accumulator 0 1 1...

Page 299: ...mulator GRAY Convert the 16 bit grey code value in the accumulator to a BCD value OUT V2010 Copy the value in the lower 16 bits of the accumulator to V2010 0000000000 Gray Code BCD 0000000001 00000000...

Page 300: ...order the digits will be shuffled The digits are shuffled and the result resides in the accumulator Digits to be shuffled first stack location Specified order accumulator D E F 0 9 A B C 3 6 5 4 1 2...

Page 301: ...is used in the result D E F 0 9 A B C Handheld Programmer Keystrokes Direct SOFT32 LDD V2000 X1 Load the value in V2000 and V2001 into the accumulator LDD V2006 Load the value in V2006 and V2007 into...

Page 302: ...Direct SOFT32 LD K6 X1 Load the constant value 6 HEX into the lower 16 bits of the accumulator LDA O 2000 Convert octal 2000 to HEX 400 and load the value into the accumulator MOV V2030 Copy the spec...

Page 303: ...Refer to page 5 188 for an example WARNING The offset for this usage of the instruction starts at 0 but may be any number that does not result in data outside of the source data area being copied int...

Page 304: ...e MOVMC instruction specifies the destination starting location and executes the copying of data from the Data Label Area to V memory Direct SOFT32 LD K4 X1 Load the value 4 into the accumulator speci...

Page 305: ...s 96 bits decimal or 140 octal The permissible range of bit reference numbers would be 0 to 137 octal SP 53 will be set if the bit specified is outside the range of the table NOTE Status flags are onl...

Page 306: ...to hex by using the LDA command Finally we use the Set Bit or Reset Bit instruction and specify the octal address of the bit bit 34 referenced from the table Handheld Programmer Keystrokes Direct SOF...

Page 307: ...starting location for the table and is loaded into the accumulator using the Load Address instruction The value to fill the table with V1400 is specified in the Fill instruction FILL A aaa Handheld Pr...

Page 308: ...ly valid until another instruction that uses the same flags is executed The pointer for this instruction starts at 0 and resides in the accumulator In the following example when X1 is on the constant...

Page 309: ...stant value 6 HEX into the lower 16 bits of the accumulator LDA O 1400 LD K2 Load the constant value 2 into the lower 16 bits of the accumulator FIND K8989 Find the location in the table where the val...

Page 310: ...r than the search value a zero is stored in the accumulator and SP53 will come ON Handheld Programmer Keystrokes STR X IN 1 LD K C ON 6 LD SHFT A OC T 1 4 0 0 SHFT F D G T SHFT K C ON 8 9 8 9 DirectSO...

Page 311: ...n should be set to the value where the table operation will begin The special relay SP0 or a one shot PD should be used so the value will only be set in one scan and will not affect the instruction op...

Page 312: ...NT SHFT ANDST L 3 D 1 B 4 E 0 A ENT 0 A 1 B 5 F 0 A ENT V1401 0 5 0 0 V1402 9 9 9 9 V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X S S V1500 X X X X 0 6 1 2 3 4 5 Destination V1...

Page 313: ...2 0 4 6 V1407 X X X X V1500 9 9 9 9 0 6 1 2 3 4 5 Destination V1400 0 0 0 2 Table V1401 0 5 0 0 V1402 9 9 9 9 V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X V1500 2 0 4 6 0 6 1...

Page 314: ...will begin The special relay SP0 or a one shot PD should be used so the value will only be set in one scan and will not affect the instruction operation NOTE Status flags SPs are only valid until ano...

Page 315: ...ied destination V1500 V1401 0 5 0 0 V1402 9 9 9 9 V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X S S V1500 X X X X 1 2 3 4 5 6 Destination V1400 0 0 0 0 Table Pointer Table Dire...

Page 316: ...0 0 5 Table Pointer Automatically Decremented Table V1401 0 5 0 0 V1402 9 9 9 9 V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X V1500 1 0 1 0 Destination V1400 0 0 0 4 Table V140...

Page 317: ...he operation Also it must be set to a value that is within the length of the table For example if the table is 6 words long then the allowable range of values that could be in the pointer should be be...

Page 318: ...om the source location V1500 to the table V1401 X X X X V1402 X X X X V1403 X X X X V1404 X X X X V1405 X X X X V1406 X X X X V1407 X X X X S S V1500 0 5 0 0 0 6 1 2 3 4 5 Data Source V1400 0 0 0 0 Ta...

Page 319: ...TT Execution Before STT Execution Before STT Execution Table Pointer Automatically Incremented Table Pointer Automatically Incremented V1500 0 5 0 0 Before STT Execution After STT Execution Scan N 1 2...

Page 320: ...Helpful Hint The table counter value should be set to indicate the starting point for the operation Also it must be set to a value that is within the length of the table For example if the table is 6...

Page 321: ...1 B 4 E 0 A ENT 0 A 1 B 5 F 0 A ENT V1401 0 5 0 0 V1402 9 9 9 9 V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X S S V1500 X X X X 1 2 3 4 5 6 Destination V1400 0 0 0 6 Table C ou...

Page 322: ...404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X V1500 X X X X 1 2 3 4 5 6 V1400 0 0 0 4 V1401 9 9 9 9 V1402 4 0 7 9 V1403 8 9 8 9 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X V1500 0...

Page 323: ...ues when referencing memory locations the LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator Helpful Hint The table counter value sho...

Page 324: ...V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X V1500 X X X X 1 2 3 4 5 6 Data Source V1400 0 0 0 2 Table Counter Table e g 6 2 4 DirectSOFT32 Display optional one shot method L...

Page 325: ...1404 3 0 7 4 V1405 8 9 8 9 V1406 1 0 1 0 V1407 X X X X 1 2 3 4 5 6 V1401 0 5 0 0 V1402 9 9 9 9 V1403 3 0 7 4 V1404 8 9 8 9 V1405 1 0 1 0 V1406 2 0 4 6 V1407 X X X X V1500 1 2 3 4 1 2 3 4 5 6 V1400 0 0...

Page 326: ...ress to hex Step 3 Insert the Table Shift Left or Table shift Right instruction This specifies the number of bit positions you wish to shift the entire table The number of bit positions must be in oct...

Page 327: ...o HEX and load the value into the accumulator This is the table beginning Do a table shift right by 12 bits which is 14 octal Handheld Programmer Keystrokes STR SHFT ANDST L 3 D SHFT MLR T RST S 7 H P...

Page 328: ...erforms the ANDMOV operation example above It assumes that the data in the table at V3000 V3001 already exists First we load the table length two words into the accumulator Next we load the starting a...

Page 329: ...ANDST L 3 D PREV 8 I ENT 8 I 8 I 8 I OR Q 3 D SHFT AND V 1 B 0 A 0 A ENT 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 V3000 V3100 XORMOV K3333 Handheld Programmer Keystrokes STR SHFT ANDST L 3 D ORST M INST O PREV...

Page 330: ...o the accumulator This parameter must be a HEX value You can use the LDA instruction to convert an octal address to hex Step 5 Insert the Find Block instruction This specifies the starting location of...

Page 331: ...ngle scan The example program below uses a PD contact triggers for one scan for off to on transition First we load the length of the tables two words into the accumulator Then we load the address of t...

Page 332: ...ek Handheld Programmer Keystrokes 0 A ENT 1 B 4 E 0 A 0 A ENT STR SHFT ANDST L 3 D SHFT MLR T 3 D OUT GX SHFT 3 D NEXT NEXT NEXT NEXT 2 C ENT PREV 0 A 9 0 A 3 D 1 B 0 A ENT 0 A 3 D 0 A 4 E 0 A 2 C ENT...

Page 333: ...e TIME instruction uses the value set in V2000 and V2001 to set the time in the appropriate V memory locations V7766 V7770 Handheld Programmer Keystrokes 0 A ENT 7 H 0 A 0 A ENT STR SHFT ANDST L 3 D S...

Page 334: ...PRG mode SP53 On when the DL06 goes into the PRG mode Direct SOFT32 Handheld Programmer Keystrokes NOP SHFT TMR N INST O CV P ENT DS Used HPP Used DS Used HPP Used DS Used HPP Used DirectSOFT DirectSO...

Page 335: ...nction in your programming package This eliminates the need for the RSTWT instruction In the following example the CPU scan timer will be reset to 0 when the RSTWT instruction is executed See the For...

Page 336: ...OTO X1 C2 OUT X5 Y2 OUT STR SHFT 2 C ENT 7 H SHFT 6 G INST O MLR T INST O 5 F STR OUT GX SHFT 2 C 2 C ENT SHFT ANDST L 1 B ANDST L 5 F ENT STR OUT GX 1 B ENT ENT 5 F 2 C ENT ENT Operand Data Type DL06...

Page 337: ...e For instruction is not energized the section of ladder logic between the For and Next instructions is not executed For Next instructions cannot be nested The normal I O update and CPU housekeeping a...

Page 338: ...nstructions may or may not be necessary depending on your application Also The RSTWT instruction is not necessary if the For Next loop does not extend the scan time beyond the Watch Dog Timer setting...

Page 339: ...um limits are exceeded Typically this will be used in an application where a block of program logic may be slow to execute and is not required to execute every scan The subroutine label and all associ...

Page 340: ...X35 is not on Y0 Y17 will be reset to off and the CPU will return to the main body of the program Direct SOFT32 Display Handheld Programmer Keystrokes SBR K3 X1 K3 GTS END Y5 OUTI X20 Y10 OUTI X21 X35...

Page 341: ...he ladder logic in the subroutine will be executed The CPU will return to the main body of the program after the RT instruction is executed Direct SOFT32 Handheld Programmer Keystrokes SBR K3 X1 K3 GT...

Page 342: ...X0 and X2 are ON logic under the second MLS will be executed The MLR instructions note the end of the Master Control area Operand Data Type DL06 Range aaa Constant K 1 FFFF Operand Data Type DL06 Rang...

Page 343: ...rung is not controlled by either of the MLS coils K1 MLS X0 C0 OUT X1 C1 OUT X2 Y0 OUT X3 K2 MLS X10 Y1 OUT X5 Y2 OUT X4 K1 MLR C2 OUT X5 Y3 OUT X6 K0 MLR Y4 OUT X7 DirectSOFT32 Handheld Programmer Ke...

Page 344: ...INT 1 O aaa INT IRT IRTC ENI Operand Data Type DL06 Range aaa Constant O 1 FFFF DS Used HPP Used DS Used HPP Used DS Used HPP Used DS Used HPP Used Interrupt Instructions Interrupt INT The Interrupt...

Page 345: ...7 SETI X3 IRT Handheld Programmer Keystrokes 8 I ORN R MLR T STR SHFT 8 I 1 B ENT SHFT 8 I 5 F ENT STR SHFT 8 I 3 D ENT SHFT 8 I ENT 7 H SHFT 4 E TMR N 3 D ENT STR ENT 2 C SHFT 4 E TMR N 8 I ENT STRN...

Page 346: ...ll be reset to off and then the CPU will return to the main body of the program Direct SOFT32 INT O0 X4 ENI DISI X4 END Y5 SETI X2 X3 RSTI Y0 Y7 IRT Handheld Programmer Keystrokes LD K40 SP0 Load the...

Page 347: ...FAULT A aaa Direct SOFT32 DLBL K1 END FAULT K1 X1 ACON A SW NCON K 2031 NCON K 3436 Handheld Programmer Keystrokes STR SHFT 4 E TMR N 3 D ENT SHFT 3 D ANDST L 1 B ANDST L 1 B ENT SHFT 0 A 2 C INST O...

Page 348: ...truction to store ASCII text for use with other instructions Two ASCII characters can be stored in an ACON instruction If only one character is stored in a ACON a leading space will be inserted Numeri...

Page 349: ...ld a text message See the FAULT instruction for information on displaying messages The DV 1000 Manual also has information on displaying messages Direct SOFT32 Handheld Programmer Keystrokes DLBL K1 E...

Page 350: ...lator This is where the data will be copied from The MOVBLK instruction specifies the destination starting location and executes the copying of data from the Data Label Area to V memory V aaa MOVBLK D...

Page 351: ...dialog box shown below Baud Rate Choose the baud rate that matches your printer Stop Bits Parity Choose number of stop bits and parity setting to match your printer Memory Address Choose a V memory a...

Page 352: ...with one CR and one LF 0 D 0 A Length 2 with one CR and one LF Length 1 with one mark In printing an ordinary line of text you will need to include double quotation marks before and after the text str...

Page 353: ...perature labels the data which is at V2000 You can use the B qualifier after the V2000 if the data is in BCD format for example The final string adds the units of degrees to the line of text and the N...

Page 354: ...mber of characters for each element is listed in the table below The handheld programmer s mnemonic is PRINT followed by the DEF field Special relay flags SP116 and SP117 indicate the status of the DL...

Page 355: ...the information into V memory loacations V1400 V1402 DS32 Used HPP Used V aaa RD Operand Data Type DL06 Range aaa V memory V See memory map Discrete Bit Flags Description SP54 On when RX WX RD WT ins...

Page 356: ...odule and copy the data from V memory locations V1400 V1402 V aaa WT DS32 Used HPP Used Direct SOFT 5 Handheld Programmer Keystrokes LD K0102 X1 The constant value K0102 specifies the base number 01 a...

Page 357: ...the starting Vmemory location Aaaa where the data will be read from in the slave Helpful Hint For parameters that require HEX values the LDA instruction can be used to convert an octal address to the...

Page 358: ...tant value K10 specifies the number of bytes to be read LDA O 2300 Octal address 2300 is converted to 4C0 HEX and loaded into the accumulator V2300 is the starting location for the Master CPU where th...

Page 359: ...is parameter requires a HEX value Step 4 Insert the WX instruction which specifies the starting V memory location Aaaa where the data will be written to in the slave Helpful Hint For parameters that r...

Page 360: ...0 specifies the number of bytes to be written LDA O 2300 WX V2000 V2000 is the starting location in the for the Slave CPU where the specified data will be written to V2001 8 5 3 4 V2002 1 9 3 6 V2003...

Page 361: ...Direct Text Entry The two dialogs to the right show the selections necessary to create the two ladder instructions below Double quotation marks are required to delineate the text string In the first...

Page 362: ...instruction that prints the date on the second line of the display when enabled A l a r m 1 1 1 2 1 P M 0 5 0 8 0 2 Date and Time Variables and Formats _date us US format MM DD YY _date e European fo...

Page 363: ...1 8 0 V2000 0 1 8 B 4 digit BCD V2000 0000 0000 0001 0010 1 2 3 4 B V2000 B 0 0 1 2 BS V2000 BS 1 2 BC0 V2000 BC0 0 0 1 2 B0 V2000 B0 1 2 D 32 bit decimal V2000 0000 0000 0000 0000 Double Word V2001...

Page 364: ...once for each line on the display The dialog requires the address of the first character to be displayed and the number of characters to be displayed For example the two dialogs shown on this page wo...

Page 365: ...ils inputs holding registers or input register will be read See the table on the following page MODBUS Data Format specifies MODBUS 584 984 or 484 data format to be used Exception Response Buffer spec...

Page 366: ...Mode 40001 49999 5 digit or 4000001 465535 6 digit 04 Read Input Register 484 Mode 3001 3999 04 Read Input Register 584 984 Mode 30001 39999 5 digit or 3000001 365535 6 digit 07 Read Exception Status...

Page 367: ...e slave When the bit is off the program can initiate the next network request The Port Communication Error bit turns on when the PLC has detected an error Use of this bit is optional When used it shou...

Page 368: ...itten to This field is only active when either function code 15 or 16 is selected MODBUS Data Format specifies MODBUS 584 984 or 484 data format to be used Exception Response Buffer specifies the mast...

Page 369: ...999 5 digit or 400001 465535 6 digit 15 Force Multiple Coils 484 Mode 1 999 15 Force Multiple Coils 585 984 Mode 1 65535 16 Preset Multiple Registers 484 Mode 4001 4999 16 Preset Multiple Registers 58...

Page 370: ...s will last longer than 1 CPU scan The program must wait for the communications to finish before starting the next transaction NOTE See Chapter 4 page 4 21 for an RLL example using multiple Read and W...

Page 371: ...The AIN instruction is not used in this case 3 If a DL06 PLC is a master on a network the Network Read instruction RX can be used to read embedded ASCII data from a slave device via a supported commu...

Page 372: ...AEX Extracts a specific portion usually some data value from the ASCII find location or other known ASCII data location Compare V memory CMPV This instruction is used to compare two blocks of V memor...

Page 373: ...reset when the AIN instruction permissive bits are disabled 0ms selection disables this feature Byte Swap swaps the high byte and low byte within each V memory register of the Fixed Length ASCII stri...

Page 374: ...13 14 A B C D Parameter Data Destination All V memory Fixed Length K1 128 Bits Busy Complete Timeout Error Overflow C0 3777 AIN Fixed Length Examples Fixed Length example when the PLC is reading the...

Page 375: ...ists of either 1 or 2 characters Refer to Appendix G ASCII Table Busy Bit is ON while the AIN instruction is receiving ASCII data Complete Bit is set once the ASCII data has been received up to the te...

Page 376: ...Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D AIN Variable Length Example AIN variable length example used to read barcodes on boxes PE photoelectric sensor Parameter Data Destination All V me...

Page 377: ...of Bytes specifies the total number of bytes to search for the desired ASCII string Search Starting Index specifies which byte to skip to with respect to the Base Address before beginning the search...

Page 378: ...bined with a Forward Direction Search is used to prevent finding the day portion of the word Today The Found Index will be placed into V4000 Base Address T o d a y s F r i d a y 54h 6Fh 64h 61h 79h 20...

Page 379: ...struction to complete Give delay time for AFIND instruction to complete Give delay time for AFIND instruction to complete Delay for AFIND to complete Give delay time for AFIND instruction to complete...

Page 380: ...ber of Bytes specifies the number of bytes to be extracted Shift ASCII Option shifts all extracted data one byte left or one byte right to displace unwanted characters if necessary Byte Swap swaps the...

Page 381: ...arting Address All V memory Compare to Starting Address All V memory Number of Bytes K0 127 Strings are equal C1 OUT AIN Complete CMPV Compare from Starting Address V2001 Compare to Starting Address V...

Page 382: ...me 24 standard 24 hour clock 0 23 hour min am pm Parameter DL06 Range Print to Starting V memory Address All V memory DS Used HPP N A The ASCII Print to V memory instruction will write a specified ASC...

Page 383: ...V2000 and V2001 V2000 R Print floating point number in V2000 V2001 as real number V2000 E Print floating point number in V2000 V2001 as real number with exponent The following modifiers can be added...

Page 384: ...nating point and bit number preceded by the V memory number or relay number The output type is described as shown in the table below Example V2000 15 Prints the status of bit 15 in V2000 in 1 0 format...

Page 385: ...the length of the output to the printer In printing an ordinary line of text you will need to include double quotation marks before and after the text string Error code 499 will occur in the CPU when...

Page 386: ...the string out of port 2 VPRINT Example Combined with PRINTV Instruction Delay Permissive for RST Delay permissive for VPRINT Create String Permissive SET PRINTV Port Number K2 Start Address V4001 Num...

Page 387: ...truction Parameter DL06 Range Port Number port 2 K2 Start Address All V memory Number of Bytes All V memory or k1 128 Bits Busy Complete C0 3777 DS Used HPP N A Port Number must be DL06 port 2 K2 Star...

Page 388: ...V2477 V2500 V2501 V2502 V2477 V2500 V2501 V2502 0005h A B C D E xx 0005h B A D C xx E Byte High Low Byte High Low Byte Swap All Byte Swap All but Null Discrete Bit Flags Description SP53 On if the CP...

Page 389: ...ed to trigger the SWAPB instruction Use a one shot so the SWAPB only executes once ASCII Clear Buffer ACRB The ASCII Clear Buffer instruction will clear the ASCII receive buffer of the specified commu...

Page 390: ...DL06 Micro PLC User Manual 3rd Edition Rev E 5 229 Chapter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D This page intentionally left blank...

Page 391: ...403 5 239 Filter Over Time BCD FILTER IB 422 5 240 Filter Over Time Binary FILTERB IB 402 5 242 Hi Low Alarm BCD HILOAL IB 421 5 244 Hi Low Alarm Binary HILOALB IB 401 5 246 Discrete Helper IBoxes In...

Page 392: ...ress ECWRGWA IB 731 5 306 ECOM100 Write IP Address ECWRIP IB 723 5 308 ECOM100 Write Module ID ECWRMID IB 721 5 310 ECOM100 Write Name ECWRNAM IB 725 5 312 ECOM100 Write Subnet Mask ECWRSNM IB 733 5 3...

Page 393: ...he analog input data Number of Output Channels specifies the number of analog output channels that will be used Output Data Format 0 BCD 1 BIN specifies the format of the analog output data BCD or Bin...

Page 394: ...truction is used to setup the pointer method for an analog I O combination module that is installed in option slot 2 Four input channels are enabled and the analog data will be written to V2000 V2003...

Page 395: ...of Input Channels specifies the number of input channels to scan Input Data Format 0 BCD 1 BIN specifies the analog input data format BCD or Binary the binary format may be used for displaying data on...

Page 396: ...NLGIN Example In the following example the ANLGIN instruction is used to setup the pointer method for an analog input module that is installed in option slot 1 Eight input channels are enabled and the...

Page 397: ...0 BCD 1 BIN specifies the format of the analog output data BCD or Binary Output Data Address specifies the starting V memory location that will be used to source the analog output data DS Used HPP N...

Page 398: ...LGOUT Example In the following example the ANLGOUT instruction is used to setup the pointer method for an analog output module that is installed in option slot 3 Two output channels are enabled and th...

Page 399: ...wing example the ANSCL instruction is used to scale a raw value 0 4095 BCD that is in V2000 The engineering scaling range is set 0 100 low engineering value high engineering value The scaled value wil...

Page 400: ...d ANSCLB Example In the following example the ANSCLB instruction is used to scale a raw value 0 4095 binary that is in V2000 The engineering scaling range is set 0 1000 low engineering value high engi...

Page 401: ...he calculation is enabled If it is disabled the Filter Value is not updated On the first scan from Program to Run mode the Filter Value is initialized to 0 to give the calculation a consistent startin...

Page 402: ...llowing example the Filter instruction is used to filter a BCD value that is in V2000 Timer T0 is set to 0 5 sec the rate at which the filter calculation will be performed The filter constant is set t...

Page 403: ...lation is enabled If it is disabled the Filter Value is not updated On the first scan from Program to Run mode the Filter Value is initialized to 0 to give the calculation a consistent starting point...

Page 404: ...owing example the FILTERB instruction is used to filter a binary value that is in V2000 Timer T1 is set to 0 5 sec the rate at which the filter calculation will be performed The filter constant is set...

Page 405: ...d DS Used HPP N A Parameter DL06 Range Monitoring Value BCD V See DL06 V memory map Data Words High High Limit V K K0 9999 or see DL06 V memory map Data Words High High Alarm X Y C GX GY B See DL06 V...

Page 406: ...ase to meet exceed the high high limit C100 will turn on Both bits would be on in this case The high and high high limits and alarms can be set to the same value if one high limit or alarm is desired...

Page 407: ...t is reached Parameter DL06 Range Monitoring Value Binary V See DL06 V memory map Data Words High High Limit V K K0 65535 or see DL06 V memory map Data Words High High Alarm X Y C GX GY B See DL06 V m...

Page 408: ...high high limit value in V2010 C100 will turn on Both bits would be on in this case The high and high high limits and alarms can be set to the same V memory location value if one high limit or alarm i...

Page 409: ...umber which is used by the OFFDTMR instruction Off Delay Time 0 01sec specifies how long the Output will remain on once power flow to the Ibox is removed Output specifies the output that will be delay...

Page 410: ...the following example the OFFDTMR instruction is used to delay the turning off of output C20 Timer 2 T2 is set to 5 seconds the off delay period When C100 turns on C20 turns on and will remain on whil...

Page 411: ...he output that will be delayed turning on by the On Delay Time Parameter DL06 Range Timer Number T T0 377 On Delay Time K V K0 9999 See DL06 V memory map Data Words Output X Y C GX GY B See DL06 V mem...

Page 412: ...4 A B C D ONDTMR Example In the following example the ONDTMR instruction is used to delay the turning on of output C21 Timer 1 T1 is set to 2 seconds the on delay period When C101 turns on C21 is dela...

Page 413: ...different name for the PD Coil Positive Differential ONESHOT Parameters Discrete Output specifies the output that will be on for one scan ONESHOT Example In the following example the ONESHOT instruct...

Page 414: ...e PONOFF instruction is used to control the on and off states of the output C20 with a single input C10 When C10 is pressed once C20 turns on When C10 is pressed again C20 turns off C100 is an interna...

Page 415: ...from a memory location or indirectly through a pointer MOVEW Parameters From WORD specifies the word that will be moved to another location To WORD specifies the location where the From WORD will be m...

Page 416: ...location or indirectly through a pointer to a double memory location MOVED Parameters From DWORD specifies the double word that will be moved to another location To DWORD specifies the location where...

Page 417: ...to a Real number Number of Decimal Points specifies the number of implied decimal points in the Result DWORD Result DWORD REAL specifies the location where the Real number will be placed BCDTOR Exampl...

Page 418: ...converted to a Real number Number of Decimal Points specifies the number of implied decimal points in the Result DWORD Result DWORD REAL specifies the location where the Real number will be placed BCD...

Page 419: ...95 The multiply term most likely will exceed 9999 but fits within 32 bits The divide operation will divide 4095 into the 32 bit accumulator yielding a result that will always fit in 16 bits You can re...

Page 420: ...ctions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D MATHBCD Example In the following example the MATHBCD instruction is used to calculate the math expression which multiplies the BCD value in V1200 by 100...

Page 421: ...00 K1000 K4095 The multiply term most likely will exceed 65535 but fits within 32 bits The divide operation will divide 4095 into the 32 bit accumulator yielding a result that will always fit in 16 bi...

Page 422: ...ions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D MATHBIN Example In the following example the MATHBIN instruction is used to calculate the math expression which multiplies the Binary value in V1200 by 10...

Page 423: ...SINR RADR V3000 R10 0 Every V memory reference MUST be able to fit into a double word Real formatted value MATHR Parameters DWORD Result specifies the location where the Real result of the mathematica...

Page 424: ...D specifies the location where the rounded implied decimal points BCD value will be placed RTOBCD Example In the following example the RTOBCD instruction is used to convert the 32 bit REAL floating po...

Page 425: ...ber of implied decimal points in the Result DWORD Result DWORD BCD specifies the location where the rounded implied decimal points DWORD BCD value will be placed RTOBCDD Example In the following examp...

Page 426: ...ecifies the BCD Word or constant that will be squared Result DWORD BCD specifies the location where the squared DWORD BCD value will be placed SQUARE Example In the following example the SQUARE instru...

Page 427: ...UAREB instruction is used to square the single word Binary value in V2000 and store the 8 digit double word Binary result in V3000 and V3001 when C100 turns on Parameter DL06 Range Value WORD Binary V...

Page 428: ...nstruction is used to square the 32 bit floating point REAL value in V2000 and V2001 and store the REAL value result in V3000 and V3001 when C100 turns on Parameter DL06 Range Value REAL DWORD V P R R...

Page 429: ...sum of the block of V memory BCD values will be placed SUMBCD Example In the following example the SUMBCD instruction is used to total the sum of all BCD values in words V2000 thru V2007 and store th...

Page 430: ...the sum of the block of V memory binary values will be placed SUMBIN Example In the following example the SUMBIN instruction is used to total the sum of all Binary values in words V2000 thru V2007 and...

Page 431: ...Addr inclusive DWORD specifies the ending address of a block of V memory location values to be added together Real Result DWORD specifies the location where the sum of the block of V memory Real value...

Page 432: ...3 4 5 6 7 8 9 10 11 12 13 14 A B C D SUMR Example In the following example the SUMR instruction is used to total the sum of all floating point REAL number values in words V2000 thru V2007 and store t...

Page 433: ...s particular ECOM100 module All other ECxxxx IBoxes that need to reference this ECOM1000 module must reference this logical number Slot specifies the option slot the module occupies Status specifies a...

Page 434: ...eporting any completion or error information to other ECOM100 IBoxes This V Memory register must not be used anywhere else in the entire program The Workspace register is used to maintain state inform...

Page 435: ...ion you must turn ON dip switch 7 on the ECOM100 circuit board ECDHCPD Parameters ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx I...

Page 436: ...100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module Rung 2 On the 2nd scan disable DHCP in the ECOM100 DHCP is the same pro...

Page 437: ...h 7 on the ECOM100 circuit board ECDHCPE Parameters ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference t...

Page 438: ...e same protocol used by PCs for using a DHCP Server to automatically assign the ECOM100 s IP Address Gateway Address and Subnet Mask Typically this is done using NetEdit but this IBox allows you to en...

Page 439: ...ssfully Error specifies a bit that will turn on if the instruction is not successfully completed DHCP Enabled specifies a bit that will turn on if the ECOM100 s DHCP is enabled or remain off if disabl...

Page 440: ...is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using...

Page 441: ...Server you MUST have the SMTP parameters configured properly in the ECOM100 via the ECOM100 s Home Page and or the EMail Setup instruction ECEMSUP To get to the ECOM100 s Home Page use your favorite I...

Page 442: ...ted successfully Error specifies a bit that will turn on if the instruction is not successfully completed Error Code specifies the location where the Error Code will be written To specifies an E mail...

Page 443: ...d to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this s...

Page 444: ...MM100 Send EMAIL IBOX Status Codes 0 1 Success ECEMAIL completed successfully 1 Busy ECEMAIL IBOX logic sets the Error register to this value when the ECEMAIL starts a new request Internal ECOM100 Err...

Page 445: ...Octet offset is the transaction offset 4xx client request error replies 421 domain Service not available closing transmission channel 432 A password transition is needed 450 Requested mail action not...

Page 446: ...that need to reference this ECOM100 module must reference this logical number Workspace specifies a V memory location that will be used by the instruction Success specifies a bit that will turn on on...

Page 447: ...nly need to change this one IBox V400 is used as a global result status register for the other ECxxxx IBoxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of...

Page 448: ...ail setup in the ECOM100 The ECEMRDS is leading edge triggered not power flow driven similar to a counter input leg The ROM based EMail configuration stored in the ECOM100 will be copied over the work...

Page 449: ...n the ECOM100 circuit board ECEMSUP Parameters ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this E...

Page 450: ...ork administrator for information on this setting Timeout sec optional parameter that specifies the number of seconds to wait for the SMTP Server to send the EMail to all the recipients Cc optional pa...

Page 451: ...xes refer to this module as K0 If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other E...

Page 452: ...ng edge triggered not power flow driven similar to a counter input leg At power up the ROM based EMail configuration stored in the ECOM100 is copied to a RAM based working copy You can change this wor...

Page 453: ...reference this logical number Workspace specifies a V memory location that will be used by the instruction Success specifies a bit that will turn on once the request is completed successfully Error sp...

Page 454: ...module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx I...

Page 455: ...sfully Error specifies a bit that will turn on if the instruction is not successfully completed Description specifies the starting buffer location where the ECOM100 s Module Name will be placed Num Ch...

Page 456: ...Cxxxx IBoxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffe...

Page 457: ...at will turn on once the request is completed successfully Error specifies a bit that will turn on if the instruction is not successfully completed Gateway IP Addr specifies the starting address where...

Page 458: ...es using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer availabl...

Page 459: ...t will turn on once the request is completed successfully Error specifies a bit that will turn on if the instruction is not successfully completed IP Address specifies the starting address where the E...

Page 460: ...xx IBoxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer a...

Page 461: ...turn on once the request is completed successfully Error specifies a bit that will turn on if the instruction is not successfully completed Module ID specifies the location where the ECOM100 s Module...

Page 462: ...l result status register for the other ECxxxx IBoxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 mod...

Page 463: ...ror specifies a bit that will turn on if the instruction is not successfully completed Module Name specifies the starting buffer location where the ECOM100 s Module Name will be placed Num Chars speci...

Page 464: ...other ECxxxx IBoxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byt...

Page 465: ...at will turn on once the request is completed successfully Error specifies a bit that will turn on if the instruction is not successfully completed Subnet Mask specifies the starting address where the...

Page 466: ...x IBoxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer av...

Page 467: ...number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number Workspace specifies a V...

Page 468: ...ed to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this...

Page 469: ...is specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number Workspace specifies a V memory location that will...

Page 470: ...le V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxe...

Page 471: ...pecific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number Workspace specifies a V memory location that will be...

Page 472: ...odule V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IB...

Page 473: ...odule in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number Workspace specifies a V memory location that will be used by the instr...

Page 474: ...le V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxe...

Page 475: ...ciated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number Workspace specifies a V memory loca...

Page 476: ...V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes u...

Page 477: ...this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number Workspace specifies a V memory location that wi...

Page 478: ...module V401 is used to coordinate interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx I...

Page 479: ...fies the slave ECOM 100 PLC that will be targeted by the ECRX instruction From Slave Element Src specifies the slave address of the data to be read Number of Bytes specifies the number of bytes to rea...

Page 480: ...es refer to this module as K0 If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other EC...

Page 481: ...P busy bits or error bits or what slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is driving both the E...

Page 482: ...ave ECOM 100 PLC that will be targeted by the ECWX instruction From Master Element Src specifies the location in the master ECOM100 PLC where the data will be sourced from Number of Bytes specifies th...

Page 483: ...es refer to this module as K0 If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other EC...

Page 484: ...P busy bits or error bits or what slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is driving both the E...

Page 485: ...is the same value as in the high byte of the first LD instruction if you were coding the RX or WX rung yourself This value is CPU and port specific check your PLC manual Use KF2 for the DL06 CPU seria...

Page 486: ...etwork K0 to be for the local CPU serial port 2 KF2 For local CPU serial ports or DCM ECOM modules use the same value you would use in the most significant byte of the first LD instruction in a normal...

Page 487: ...rom Slave Element Src specifies the slave address of the data to be read Number of Bytes specifies the number of bytes to read from the slave device To Master Element Dest specifies the location where...

Page 488: ...be for the local CPU serial port 2 KF2 For local CPU serial ports or DCM ECOM modules use the same value you would use in the most significant byte of the first LD instruction in a normal RX WX rung...

Page 489: ...busy bits or error bits or what port number or slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is drivi...

Page 490: ...r Element Src specifies the location in the master PLC where the data will be sourced from Number of Bytes specifies the number of bytes to write to the slave PLC To Slave Element Dest specifies the s...

Page 491: ...be for the local CPU serial port 2 KF2 For local CPU serial ports or DCM ECOM modules use the same value you would use in the most significant byte of the first LD instruction in a normal RX WX rung...

Page 492: ...busy bits or error bits or what port number or slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is drivi...

Page 493: ...scan this IBox cannot have any input logic CTRIO Parameters CTRIO specifies a specific CTRIO module based on a user defined number Slot specifies which PLC option slot the CTRIO module occupies Worksp...

Page 494: ...a separate CTRIO I box before any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Paramete...

Page 495: ...OT be used anywhere else in your program CTRAPT Parameters CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Output specifies a CTRIO output to be used by the ins...

Page 496: ...reset table for output 0 on the CTRIO in slot 2 The new preset will be a command to RESET entry type K1 reset pulse time is left at zero as the reset type does not use this and the count at which it w...

Page 497: ...ter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRADPT Example cont d Rung 3 This rung allows the programmer to reset the counter from the ladder logic Rung 4 This rung allow...

Page 498: ...t that will turn on if the instruction does not complete successfully DS Used HPP N A Parameter DL06 Range CTRIO K K0 255 Output K K0 3 Workspace V See DL06 V memory map Data Words Success X Y C GX GY...

Page 499: ...testing purposes Turning on C0 will cause the CTRCLRT instruction to clear the preset table for output 0 on the CTRIO in slot 2 Operating procedure for this example code is to load the CTRCLRT_ex1 cw...

Page 500: ...nstructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRCLRT Example cont d Rung 3 This rung allows the programmer to reset the counter from the ladder logic Rung 4 This rung allows the operator to en...

Page 501: ...Pulse Off uses Pulse Time K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT b...

Page 502: ...nd V2030 through V2061 for its output data Parameter DL06 Range CTRIO K K0 255 Output K K0 3 Table V K K0 255 See DL06 V memory map Data Words Entry V K K0 255 See DL06 V memory map Data Words Entry T...

Page 503: ...example code is to load the CTREDPT_ex1 cwb file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 10...

Page 504: ...ter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTREDPT Example cont d Rung 3 This rung allows the programmer to reset the counter from the ladder logic Rung 4 This rung allow...

Page 505: ...cific CTRIO module based on a user defined number see CTRIO Config Ibox Output specifies a CTRIO output to be used by the instruction Table specifies the Table number of which an Entry is to be edited...

Page 506: ...nd V2030 through V2061 for its output data Parameter DL06 Range CTRIO K K0 255 Output K K0 3 Table V K K0 255 See DL06 V memory map Data Words Entry V K K0 255 See DL06 V memory map Data Words Entry T...

Page 507: ...his example code is to load the CTREDRL_ex1 cwb file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above...

Page 508: ...ter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTREDRL Example cont d Rung 3 This rung allows the programmer to reset the counter from the ladder logic Rung 4 This rung allow...

Page 509: ...me K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in...

Page 510: ...ed to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Parameter DL06 Range CTRIO K K0 255 Output K K0 3 Entry Type V K K0 5 See DL06 V memory map Data Words Puls...

Page 511: ...t as a file and use it for the output 0 In this case the single preset will be a set at a count of 15 for output 0 Operating procedure for this example code is to load the CTRINPT_ex1 cwb file to your...

Page 512: ...ter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRINPT Example cont d Rung 3 This rung allows the programmer to reset the counter from the ladder logic Rung 4 This rung allow...

Page 513: ...me K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in...

Page 514: ...ed to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Parameter DL06 Range CTRIO K K0 255 Output K K0 3 Entry Type V K K0 5 See DL06 V memory map Data Words Puls...

Page 515: ...ble but not as a file and use it for output 0 the new preset will be loaded when the current count is reset In this case the single preset will be a set at a count of 25 for output 0 Operating procedu...

Page 516: ...ter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRINTR Example cont d Rung 3 This rung allows the programmer to reset the counter from the ladder logic Rung 4 This rung allow...

Page 517: ...at will turn on if the instruction does not complete successfully DS Used HPP N A Parameter DL06 Range CTRIO K K0 255 Output K K0 3 File V K K0 255 See DL06 V memory map Data Words Workspace V See DL0...

Page 518: ...ox before any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Rung 2 This CTRIO Load Profil...

Page 519: ...icro PLC User Manual 3rd Edition Rev E 5 358 Chapter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRLDPR Example cont d Rung 3 If the file is successfully loaded set Profile_L...

Page 520: ...ied preset function is invalid 109 Preset table is full 110 Specified Table entry is out of range 111 Specified register number is out of range 112 Specified register is an unconfigured input or outpu...

Page 521: ...separate CTRIO I box before any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Rung 2 Thi...

Page 522: ...omplete If the Error Bit is on you can use the CTRIO Read Error Code CTRRDER IBox to get extended error information The Workspace register is for internal use by this IBox instruction and MUST NOT be...

Page 523: ...Run To Limit Mode IBox sets up Output 0 in CTRIO 1 to output pulses at a Frequency of 1000 Hz until Llimit 0 comes on This example program requires that you load CTRRTLM_IBox cwb into your Hx CTRIO 2...

Page 524: ...nual 3rd Edition Rev E 5 363 Chapter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRRTLM Example cont d Rung 3 If the Run To Limit Mode parameters are OK set the Direction Bit...

Page 525: ...on The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRRTPM Parameters CTRIO specifies a specific CTRIO module based on a user def...

Page 526: ...onfigured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Parameter DL06 Range CTRIO K K0 255 Output K K0 3 Frequency V K K20 20000 See DL06 V memory map Data...

Page 527: ...To Position Mode IBox sets up Output 0 in CTRIO 1 to output pulses at a Frequency of 1000 Hz use the Greater than Ch1 Fn1 comparison operator until the input position of 1500 is reached This example...

Page 528: ...causes the CTRIO to output pulses continuously Negative Step Count values must be V Memory references Workspace specifies a V memory location that will be used by the instruction Success specifies a b...

Page 529: ...e any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Rung 2 This CTRIO Velocity Mode IBox...

Page 530: ...Manual 3rd Edition Rev E 5 369 Chapter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRVELO Example cont d Rung 3 If the Velocity Mode parameters are OK set the Direction Bit a...

Page 531: ...The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRWFTR Parameters CTRIO specifies a specific CTRIO module based on a user defin...

Page 532: ...before any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data Rung 2 This CTRIO Edit Preset Ta...

Page 533: ...pter 5 Standard RLL Instructions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D CTRWFTR Example cont d Rung 3 If the file is successfully edited use a Write File To ROM IBox to save the edited table back to...

Reviews: