background image

DL205 User Manual, 4th Edition, Rev. B

5–264

Chapter 5: Intelligent Box (IBox) Instructions

1

2

3

4

5

6

7

8

9

10

11

12

13

14

A

B

C

D

Real to Double BCD with Implied Decimal Point and Rounding (RTOBCDD)
(IB-563)

Real to Double BCD with Implied Decimal
Point and Rounding converts the absolute
value of the given Real number to an 8-digit
DWORD BCD number, compensating for
an implied number of decimal points (K0-
K8) and performs rounding.

For example, RTOBCDD R38156.74 with
an implied number of decimal points equal
to K1, would yield 381567 BCD. If the
implied number of decimal points was 0,
then the function would yield 38157 BCD
(note that it rounded up).

If the Real number is negative, the Result will equal its positive, absolute value.

RTOBCDD Parameters

• Value (DWORD Real): specifies the Dword Real number that will be converted and rounded to a

BCD number with decimal points

• Number of Decimal Points: specifies the number 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 example, the RTOBCDD instruction is used to convert the 32-bit REAL
(floating point) data format in V3000 and V3001 to the 8-digit BCD data format and store
in V2000 and V2001 when C100 turns on.

K2 in the Number of Decimal Points implies the data will have two implied decimal points.

DS5

Used

HPP

N/A

Parameter

DL205 Range

Value (DWORD Real)   . . . . . . . . . . . . . . . . . V,P,R

R ; See DL205 V-memory map - Data Words

Number of Decimal Points   . . . . . . . . . . . . . . . K

K0-8

Result (DWORD BCD) . . . . . . . . . . . . . . . . . . . . V

See DL205 V-memory map - Data Words

ý

ý

þ

þ

230

240

2

5

0

-1

2

6

0

Summary of Contents for DirectLOGIC DL205 Series

Page 1: ...DL205 PLC User Manual Volume 1 of 2 Manual Number D2 USER 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: ...E 11 00 added CE information minor corrections Rev F 11 01 added surge protection info corrected RLL and DRUM instructions minor corrections 3rd Edition 6 02 added DL250 1 and DL260 CPUs local expans...

Page 5: ...Used 1 3 Key Topics for Each Chapter 1 3 DL205 System Components 1 4 CPUs 1 4 Bases 1 4 I O Configuration 1 4 I O Modules 1 4 DL205 System Diagrams 1 5 Programming Methods 1 7 DirectSOFT Programming f...

Page 6: ...ts in the Base 2 12 Base Wiring Guidelines 2 13 Base Wiring 2 13 I O Wiring Strategies 2 14 PLC Isolation Boundaries 2 14 Powering I O Circuits with the Auxiliary Supply 2 15 Powering I O Circuits Usi...

Page 7: ...8SIM Input Simulator 2 35 D2 04TD1 DC Output 2 36 D2 08TD1 DC Output 2 37 D2 08TD2 DC Output 2 37 D2 16TD1 2 DC Output 2 38 D2 16TD2 2 DC Output 2 38 F2 16TD1 2 P DC Output With Fault Protection 2 39...

Page 8: ...agrams 3 6 Port 1 Specifications 3 7 Port 2 Specifications 3 8 Selecting the Program Storage Media 3 9 Built in EEPROM 3 9 EEPROM Sizes 3 9 EEPROM Operations 3 9 Installing the CPU 3 10 Connecting the...

Page 9: ...ID Loop Equations 3 25 Write Outputs 3 25 Write Outputs to Specialty and Remote I O 3 26 Diagnostics 3 26 I O Response Time 3 27 Is Timing Important for Your Application 3 27 Normal Minimum I O Respon...

Page 10: ...T Data type 3 39 Counter Current Values V Data Type 3 39 Word Memory V Data Type 3 39 Stages S Data type 3 40 Special Relays SP Data Type 3 40 Remote I O Points GX Data Type 3 40 DL230 System V memory...

Page 11: ...ulation Example 4 9 Power Budget Calculation Worksheet 4 10 Local Expansion I O 4 11 D2 CM Local Expansion Module 4 11 D2 EM Local Expansion Module 4 12 D2 EXCBL 1 Local Expansion Cable 4 12 DL260 Loc...

Page 12: ...the Data Type and Address 4 35 If Your Modbus Host Software Requires an Address ONLY 4 38 Example 1 V2100 584 984 Mode 4 40 Example 2 Y20 584 984 Mode 4 40 Example 3 T10 Current Value 484 Mode 4 40 Ex...

Page 13: ...RLL and Intelligent Box IBOX Instructions 5 1 Introduction 5 2 Using Boolean Instructions 5 5 END Statement 5 5 Simple Rungs 5 5 Normally Closed Contact 5 6 Contacts in Series 5 6 Midline Outputs 5 6...

Page 14: ...nter Example Using Comparative Contacts 5 51 Accumulator Stack Load and Output Data Instructions 5 53 Logical Instructions Accumulator 5 71 Math Instructions 5 88 Transcendental Functions DL260 only 5...

Page 15: ...vent Transitions 6 5 Event Only Transitions 6 6 Counter Assignments 6 6 Last Step Completion 6 7 Overview of Drum Operation 6 8 Drum Instruction Block Diagram 6 8 Powerup State of Drum Registers 6 9 D...

Page 16: ...Transitions 7 7 Stage Jump Set and Reset Instructions 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 Stage Program Example...

Page 17: ...Jump NJMP 7 24 Converge Stage CV and Converge Jump CVJMP 7 25 Block Call BCALL 7 27 Block BLK 7 27 Block End BEND 7 27 Stage View in DirectSOFT 7 28 Questions and Answers about Stage Programming 7 29...

Page 18: ...8 23 Ramp Soak Table Flags Addr 33 8 23 Ramp Soak Table Location Addr 34 8 24 Ramp Soak Table Programming Error Flags Addr 35 8 24 PV Auto Transfer Addr 36 from I O Module Base Slot Channel Option 8 2...

Page 19: ...rectSOFT Ramp Soak Example 8 62 Setup the Profile in PID Setup 8 62 Program the Ramp Soak Control in Relay Ladder 8 62 Test the Profile 8 63 Cascade Control 8 64 Introduction 8 64 Cascaded Loops in th...

Page 20: ...rs 9 10 PWR Indicator 9 11 Incorrect Base Power 9 11 Faulty CPU 9 11 Device or Module causing the Power Supply to Shutdown 9 12 Power Budget Exceeded 9 12 Run Indicator 9 13 CPU Indicator 9 13 BATT In...

Page 21: ...er A 3 AUX 2 RLL Operations A 4 AUX 21 24 A 4 AUX 21 Check Program A 4 AUX 22 Change Reference A 4 AUX 23 Clear Ladder Range A 4 AUX 24 Clear Ladders A 4 AUX 3 V memory Operations A 5 AUX 31 A 5 AUX 3...

Page 22: ...perations A 12 AUX 71 76 A 12 Transferrable Memory Areas A 13 AUX 71 CPU to HPP EEPROM A 13 AUX 72 HPP EEPROM to CPU A 13 AUX 73 Compare HPP EEPROM to CPU A 13 AUX 74 HPP EEPROM Blank Check A 13 AUX 7...

Page 23: ...U Control Instructions C 27 Program Control Instructions C 27 Interrupt Instructions C 28 Network Instructions C 28 Intelligent I O Instructions C 28 Message Instructions C 29 RLLPLUS Instructions C 2...

Page 24: ...E PLC Memory E 1 DL205 PLC Memory E 2 Non volatile V memory in the DL205 E 3 Appendix F DL205 Product Weight Table F 1 DL205 Product Weight Table F 2 Appendix G ASCII Table G 1 ASCII Conversion Table...

Page 25: ...Basic EMC Installation Guidelines I 5 Enclosures I 5 Electrostatic Discharge ESD I 5 AC Mains Filters I 6 Suppression and Fusing I 6 Internal Enclosure Grounding I 6 Equi potential Grounding I 7 Comm...

Page 26: ...APTER In This Chapter Introduction 1 2 Conventions Used 1 3 DL205 System Components 1 4 Programming Methods 1 7 DirectLOGIC Part Numbering System 1 8 Quick Start for PLC Validation and Programming 1 1...

Page 27: ...sed with how much you can accomplish with our products Supplemental Manuals If you have purchased operator interfaces or DirectSOFT you will need to supplement this manual with the manuals that are wr...

Page 28: ...e right will be a warning This information could prevent injury loss of property or even death in extreme cases The word WARNING in boldface will mark the beginning of the text Key Topics for Each Cha...

Page 29: ...se sizes are available 3 4 6 and 9 slot The DL205 PLCs use bases that can be expanded The part numbers for these bases end with 1 These bases have a connector for local expansion located on the right...

Page 30: ...andheld Programmer Operator Interface Programming or Computer Interface Simple Motion Control Flexible solutions in one package High speed counting up to 100 KHz Pulse train output up to 50KHz High sp...

Page 31: ...ture Input Filler Module AC OUTPUT 8pt 18 220 VAC 12pt 18 110 VAC 2 commons RELAY OUTPUT 4pt 5 30 VDC 5 240VAC 8pt 5 30 VDC 5 240 VAC 12pt 5 30VDC 5 240VAC isolated pts module available ANALOG CPUs DL...

Page 32: ...you already know such as cut and paste between applications point and click editing viewing and editing multiple application programs at the same time etc DirectSOFT5 universally supports the DirectLO...

Page 33: ...ct family DL105 Product family DL205 Product family DL305 Product family DL405 Product family D0 F0 D1 F1 D2 F2 D3 F3 D4 F4 Class of CPU Abbreviation 230 330 430 Denotes a differentiation between simi...

Page 34: ...Special I O and Devices Programming DL205 Product family DL305 Product family DL405 Product family D2 F2 D3 F3 D4 F4 Name Abbreviation see example CoProcessors and ASCII BASIC Modules DL205 Product f...

Page 35: ...ded are as follows Base CPU A discrete input module such as a D2 16ND3 2 DC or a F2 08SIM input simulator module A discrete output module such as a D2 16TD1 2 DC Power cord Hook up wire One or more to...

Page 36: ...ter 4 Step 3 Remove Terminal Strip Access Cover Remove the terminal strip cover It is a small strip of clear plastic that is located on the base power supply Step 4 Add I O Simulation To finish this q...

Page 37: ...ogram Edit a DirectSOFT program using the relay ladder diagram below and load it into the PLC If using an HPP the PGM indicator should be illuminated on the HPP Enter the following keystrokes on the H...

Page 38: ...O placement and or configuration options See Chapter 4 for more information Step 4 Determine the I O Module Specifications and Wiring Characteristics There are many different I O modules available wit...

Page 39: ...p operation uses setup to configure 4 loops Features include auto tuning alarms SP ramp soak generation and more Step 7 Choose the Instructions Once you have installed the system and understand the th...

Page 40: ...lling DL205 Bases 2 10 Installing Components in the Base 2 12 Base Wiring Guidelines 2 13 I O Wiring Strategies 2 14 I O Modules Position Wiring and Specification 2 26 Glossary of Specification Terms...

Page 41: ...h a minimum number of highly reliable electromechanical components Every automation application is different so there may be special requirements for your particular application Make sure all national...

Page 42: ...are generally wired into a master control relay MCR or a safety control relay SCR that will remove power from the PLC I O system in an emergency MCRs and SCRs provide a convenient means for removing...

Page 43: ...memory locations or include constants in the control program to insure a known starting point Orderly System Shutdown Ideally the first level of fault detection is the PLC control program which can id...

Page 44: ...The depth varies depending on your choice of I O module The length varies as the number of slots increase Make sure you have followed the installation guidelines for proper spacing 1 2 3 4 5 6 7 8 9 1...

Page 45: ...of 7 2 183mm between bases 3 Provide a minimum clearance of 2 50mm between the base and all sides of the cabinet There should also be at least 1 2 30mm of clearance between the base and any wiring du...

Page 46: ...tabilized If the ambient temperature is not within the operating specification for the DL205 system measures such as installing a cooling heating source must be taken to get the ambient temperature wi...

Page 47: ...e power supply specifications Specification AC Powered Bases 24 VDC Powered Bases 125 VDC Powered Bases Part Numbers D2 03B 1 D2 04B 1 D2 06B 1 D2 09B 1 D2 03BDC1 1 D2 04BDC1 1 D2 06BDC1 1 D2 09BDC1 1...

Page 48: ...mended Agency Approvals Some applications require agency approvals Typical agency approvals which your application may require are UL Underwriters Laboratories Inc CSA Canadian Standards Association F...

Page 49: ...equired Input power requirement AC or DC power Available power budget Mounting the Base All I O configurations of the DL205 may use any of the base configurations The bases are secured to the equipmen...

Page 50: ...7 5mm If you mount the base on a rail you should also consider using end brackets on each end of the rail The end brackets help keep the base from sliding horizontally along the rail This helps minim...

Page 51: ...ase Push the module straight into the base until it is firmly seated in the backplane connector Once the module is inserted into the base push in the retaining clips to firmly secure the module to the...

Page 52: ...ded torque value is 7 81 ld in 0 882 N m NOTE You can connect either a 115 VAC or 220 VAC supply to the AC terminals Special wiring or jumpers are not required as with some of the other DirectLOGIC pr...

Page 53: ...ctory machinery connects Note the discrete inputs are isolated from the discrete outputs because each is isolated from the logic side Isolation boundaries protect the operator interface and the operat...

Page 54: ...supply If input devices AND output loads need 24VDC power the auxiliary supply may be able to power both circuits as shown in the following diagram The 12 24VDC powered DL205 bases are designed for ap...

Page 55: ...drawing below to the left The inputs share the PLC power source supply while the outputs have their own separate supply A worst case scenario from a cost and complexity viewpoint is an application wh...

Page 56: ...ble to connect the external supply and field device to the I O point with current trying to flow in the wrong direction and the circuit will not operate However you can successfully connect the supply...

Page 57: ...return path In this way the four inputs require only five terminals instead of eight NOTE In the circuit above the current in the common path is 4 times any channel s input current when all inputs ar...

Page 58: ...he 24 auxiliary supply or another supply 12 VDC or 24VDC as long as the input specifications are met In the next circuit a field device has an open collector PNP transistor output It sources current t...

Page 59: ...hend this and generate an inverted output Or you may choose to cancel the effect of the inversion elsewhere such as in the field device It is important to choose the correct value of Rpull up In order...

Page 60: ...e relays which are completely isolated from each other In all cases the module drives the relay coil when the corresponding output point is on Relay Outputs Transient Suppression for Inductive Loads i...

Page 61: ...y It will readily couple into 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 Integra...

Page 62: ...uppression The next example uses the same circuit as above but with a larger 24V 290mA 7W relay thereby creating a larger inductive load As you can see the transient voltage generated is much worse pe...

Page 63: ...ransient to roughly 1V over the supply voltage as shown in this example Many AutomationDirect socketed relays and motor starters have add on flyback diodes that plug or screw into the base such as the...

Page 64: ...nsient voltages to an acceptable level For example a MOV or TVS diode rated for use on 24 48 VDC coils would need to have a high enough voltage rating to NOT conduct at 48V That suppressor might typic...

Page 65: ...ble lists the valid locations for all types of modules in a DL205 system Module Unit Local CPU Base Local Expansion Base Remote I O Base CPUs CPU Slot Only DC Input Modules AC Input Modules DC Output...

Page 66: ...rictions related to your particular module You can order the DL205 Analog I O Manual by ordering part number D2 ANLG M Discrete Input Module Status Indicators The discrete modules provide LED status i...

Page 67: ...ly removed If you examine the connectors closely you ll notice there are squeeze tabs on the top and bottom To remove the terminal block press the squeeze tabs and pull the terminal block away from th...

Page 68: ...5 Avoid running wires near high energy wiring Also avoid running input wiring close to output wiring where possible 6 To minimize voltage drops when wires must run a long distance consider using multi...

Page 69: ...rce 24 VDC D2 08ND3 DC Input Inputs per Module 8 sink source Commons per Module 1 2 I O terminal points Input Voltage Range 10 2 26 4 VDC Peak Voltage 26 4 VDC ON Voltage Level 9 5 VDC minimum OFF Vol...

Page 70: ...30 40 50 55 Ambient Temperature C F 32 50 68 86 104 122131 C F Derating Chart 24VDC 24VDC 24VDC 24VDC Sink Source Sink Source Sink Source Sink Source Sink Source D2 32ND3 DC Input Inputs per Module 3...

Page 71: ...ge Level 2 VDC maximum AC Frequency N A Input Impedance 1 0 k 5 15 VDC Input Current 4 mA 5 VDC 11 mA 12 VDC 14 mA 15 VDC Maximum Input Current 16 mA 15 6 VDC Minimum ON Current 3 mA Maximum OFF Curre...

Page 72: ...8NA 1 IN 110 D2 08NA 1 VAC 0 1 2 3 4 5 6 7 50 60Hz Line Derating Chart D2 08NA 1 AC Input Inputs per Module 8 Commons per Module 1 2 I O terminal points Input Voltage Range 80 132 VAC Peak Voltage 132...

Page 73: ...00 mA OFF to ON Response 5 to 30 ms ON to OFF Response 10 to 50 ms Terminal Type included Removable D2 8IOCON Status Indicator Logic side Weight 2 5 oz 70 g Operating Temperature 32 F to 131 F 0 to 55...

Page 74: ...7 D2 16NA AC Input F2 08SIM Input Simulator D2 16NA AC Input Inputs per Module 16 Commons per Module 2 isolated Input Voltage Range 80 132 VAC Peak Voltage 132 VAC ON Voltage Level 70 VAC minimum OFF...

Page 75: ...50 55 Ambient Temperature C F 32 50 68 86 104 122131 C F Points 2A Pt 3A Pt 4A Pt 0V 24V C C C C 0 1 2 3 24VDC Internally connected L L L L 12 24VDC C 24V 0 C 1 C 2 C 3 10 2 26 4VDC 50mA 4A D2 04TD1 O...

Page 76: ...inimum Load Current 0 5 mA Max Load Current 0 3A point 2 4A common Max Leakage Current 0 1 mA 40 VDC Max Inrush Current 1A for 10 ms Base Power Required 5VDC 100 mA OFF to ON Response 1 ms ON to OFF R...

Page 77: ...V 80 mA max Operating Voltage 10 2 26 4 VDC Peak Voltage 30 VDC ON Voltage Drop 0 5 VDC maximum AC Frequency N A Minimum Load Current 0 2 mA Max Load Current 0 1A point 1 6A common Max Leakage Current...

Page 78: ...xternal 24VDC All 16 X bits are on Open load1 Only the X bit assigned to the faulted output is on Over temperature Over load current Fault Status Operation Missing external 24VDC Apply external 24VDC...

Page 79: ...ater D2 260 must be V2 60 or later F2 16TD1P DC Output With Fault Protection NOTE This module does not currently support Think Do 8 0 It does not support Think Do Live or Studio NOTE Not supported in...

Page 80: ...are D2 250 1 must be V4 80 or later D2 260 must be V2 60 or later NOTE This module does not currently support Think Do 8 0 It does not support Think Do Live or Studio NOTE Not supported in D2 230 D2 2...

Page 81: ...us Indicator Module activity no I O status indicators Weight 2 1 oz 60g Fuses None External DC Power Required 20 28 VDC max 120 mA all points on 1 Connector sold separately See Terminal Blocks and Wir...

Page 82: ...Response 0 5 ms 1 2 cycle ON to OFF Response 0 5 ms 1 2 cycle Terminal Type included Removable D2 8IOCON Status Indicator Logic side Weight 3 5 oz Fuses None D2 08TA AC Output Outputs per Module 8 Co...

Page 83: ...F 32 50 68 86 104 122131 C F A B 15 132VAC 10mA 0 3A D2 12TA OUT 18 110 D2 12TA VAC 0 1 2 3 4 5 CA 4 5 CB 4 5 3 2 1 0 3 2 1 0 50 60Hz L L Derating Chart D2 12TA AC Output Outputs per Module 12 Outputs...

Page 84: ...VDC 264 VAC ON Voltage Drop 0 72 VDC maximum AC Frequency 47 to 63 Hz Minimum Load Current 10 mA Max Load Current resistive 4A point 8A module resistive Max Leakage Current 0 1 mA 264 VAC Max Inrush C...

Page 85: ...ns per Module 1 2 I O terminals Output Type Relay form A SPST Operating Voltage 5 30 VDC 5 240 VAC Peak Voltage 30 VDC 264 VAC ON Voltage Drop N A AC Frequency 47 to 60 Hz Minimum Load Current 5mA 5VD...

Page 86: ...e 10A point 3 3 subject to derating Max of 10A common Max Leakage Current N A Max Inrush Current 12A Base Power Required 5VDC 670 mA OFF to ON Response 15 ms typical ON to OFF Response 5 ms typical Te...

Page 87: ...5 Form A SPST normally open Operating Voltage 7A 12 28 VDC 12 250 VAC 0 5A 120VDC Peak Voltage 150 VDC 265 VAC ON Voltage Drop N A AC Frequency 47 to 63Hz Minimum Load Current 10 mA 12 VDC Max Load Cu...

Page 88: ...ating Voltage 5 30 VDC 5 240 VAC Peak Voltage 30 VDC 264 VAC ON Voltage Drop N A AC Frequency 47 to 60 Hz Minimum Load Current 5 mA 5VDC Max Load Current resistive 1 5 A point Max of 3A common Max Lea...

Page 89: ...used Commons per Module 1 Input Voltage Range 20 28 VDC Peak Voltage 30 VDC ON Voltage Level 19 VDC minimum OFF Voltage Level 7 VDC maximum AC Frequency N A Input Impedance 4 7 k Input Current 5 mA 24...

Page 90: ...requency range ON Voltage Level The voltage level at which the input point will turn ON OFF Voltage Level The voltage level at which the input point will turn OFF Input impedance Input impedance can b...

Page 91: ...explained in the power budget configuration section in Chapter 4 7 OFF to ON Response The time the module requires to process an OFF to ON state transition ON to OFF Response The time the module requi...

Page 92: ...ponse Time 3 27 CPU Scan Time Considerations 3 29 PLC Numbering Systems 3 35 Memory Map 3 37 DL230 System V memory 3 41 DL240 System V memory 3 43 DL250 1 System V memory DL250 also 3 46 DL260 System...

Page 93: ...the factory installed EEPROM In addition to the EEPROM there is also RAM on the CPU which will store system parameters V memory and other data which is not in the application program The DL230 provid...

Page 94: ...tom port is a 15 pin RS 232 RS 422 port It will interface with DirectSOFT and operator interfaces and provides DirectNet and Modbus RTU Master Slave connections DL260 CPU Features The DL260 offers all...

Page 95: ...ses max Serial Remote I O points including local I O and expansion I O points N A 896 2048 8192 Serial Remote I O Channels N A 2 8 8 Max Number of Serial Remote Slaves N A 7 Remote 31 Slice 7 Remote 3...

Page 96: ...mended Feature DL230 DL240 DL250 1 DL260 Number of instructions available see Chapter 5 for details 92 129 240 297 Control relays 256 256 1024 2048 Special relays system defined 112 144 144 144 Stages...

Page 97: ...ation Port K sequence DirectNET slave Modbus RTU slave easily connect DirectSOFT handhelds operator interfaces any DirectNet master Port 1 DL250 1 and DL260 Port 2 Additional DL260 Features CH1 CH2 CH...

Page 98: ...ctSOFT D2 HPP DV1000 or DirectNET master 8 data bits one start one stop Asynchronous Half duplex DTE Odd parity NOTE The 5V pins are rated at 200mA maximum primarily for use with some operator interfa...

Page 99: ...o DirectSOFT D2 HPP operator interfaces any DirectNET or Modbus master slave ASCII devices DL260 only 8 data bits one start one stop Asynchronous Half duplex DTE Remote I O Odd even none parity DL205...

Page 100: ...ROM in the Handheld Programmer This enables you to quickly and easily copy programs between a program developed offline in the Handheld and the CPU Also you can erase EEPROMs compare them etc See the...

Page 101: ...the system power before installing or removing any system component Connecting the Programming Devices The Handheld programmer is connected to the CPU with a handheld programmer cable You can connect...

Page 102: ...sary to get the CPU ready for programming They include setup instructions for either type of programming device you are using The D2 HPP Handheld Programmer Manual provides the Handheld keystrokes req...

Page 103: ...In this position you can change between Run and Program modes NOTE If the CPU is switched to the RUN Mode without a program in the PLC the PLC will produce a FATAL ERROR which can be cleared by cyclin...

Page 104: ...his occurs the PLC can power up in either Run or Program Mode if the mode switch is in the term position There is no way to determine which mode will be entered as the startup mode Failure to adhere t...

Page 105: ...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 door making sure that it...

Page 106: ...functions that are not supported with the DL205 CPUs AUX Function and Description 230 240 250 1 260 HPP AUX 6 Handheld Programmer Configuration 61 Show Revision Numbers 62 Beeper On Off X X X X 65 Run...

Page 107: ...erased when AUX 54 is used Make sure you that you have considered all ramifications of this operation before you select it Setting the Clock and Calendar The DL240 DL250 1 and DL260 also have a Clock...

Page 108: ...57 to set the retentive ranges You can also use DirectSOFT menus to select the retentive ranges WARNING The DL205 CPUs do not come with a battery The super capacitor will retain the values in the eve...

Page 109: ...mer or DirectSOFT to enter a password The following diagram shows how you can enter a password with the Handheld Programmer There are three ways to lock the CPU once the password has been entered 1 If...

Page 110: ...Therefore if the span between the upper and lower limits is less than or equal to 256 then you have better resolution or more precise control Use the formula shown to determine the smallest amount of...

Page 111: ...et 100 Y0 DirectSOFT 1 10 Seconds LD K100 OUT V7640 Load the lower limit 100 for the analog range on Ch1 into V7640 LD K600 OUT V7641 Load the upper limit 600 for the analog range on Ch1 into V7641 Us...

Page 112: ...stence of any errors The scan time is defined as the average time around the task loop Note that the CPU is always reading the inputs even during program mode This allows programming tools to monitor...

Page 113: ...program solutions You can use the mode switch to select Run Mode operation DL240 DL250 1 and DL260 Or with the mode switch in TERM position you can use a programming device such as the Handheld Progra...

Page 114: ...every scan but the Remote Master may not have received an update from all the Remote slaves Remember the Remote I O link is managed by the Remote Master not the CPU Service Peripherals and Force I O...

Page 115: ...0 as off The CPU will never update the point with the results from the application program or from the I O update until the bit override is removed The following diagram shows a brief overview of the...

Page 116: ...no solution that results from the application program execution Solve PID Loop Equations The DL260 CPU can process up to 16 PID loops and the DL250 1 can process up to 4 PID loops The loop calculatio...

Page 117: ...ndix B contains a listing of the various error codes available with the DL205 system One of the more important diagnostic tasks is the scan time calculation and watchdog timer control DL205 CPUs have...

Page 118: ...ut point gets updated The following diagram shows an example of the timing for this situation In this case you can calculate the response time by simply adding the following items Input Delay Scan Tim...

Page 119: ...instructions in between NOTE When the immediate instruction reads the current status from a module it uses the results to solve that one instruction without updating the image register Therefore any...

Page 120: ...hings are usually dictated by the application For example if you have a need to count pulses at high rates of speed then you ll probably have to use a High Speed Counter module Also if you have I O po...

Page 121: ...imes required by the CPU For example the time required for a DL240 to read two 8 point input modules would be calculated as follows where NI is the total number of input points Formula Time 32 s 12 3...

Page 122: ...Service Peripherals Communication requests can occur at any time during the scan but the CPU only logs the requests for service until the Service Peripherals portion of the scan The CPU does not spend...

Page 123: ...pecial relays are updated and loaded into special V memory locations during this time This update is performed during both Run and Program Modes Writing Outputs The time required to write the output s...

Page 124: ...s NOTE This total time is the actual time required for the CPU to update these outputs This does not include any additional time that is required for the CPU to actually service the particular specia...

Page 125: ...CPUs Program Control Instructions the DL240 DL250 1 and DL260 CPUs offer additional instructions that can change the way the program executes These instructions include FOR NEXT loops Subroutines and...

Page 126: ...than ten because eight is an even power of 2 Octal means simply counting in groups of eight things at a time In the figure to the right there are eight circles The quantity in decimal is 8 but in oct...

Page 127: ...faces However computersaremoreefficientinusingpurebinarynumbers Acompromise solutionbetweenthetwoisBinary CodedDecimal BCD representation ABCDdigitrangesfrom0to 9 andisstoredasfourbinarybits anibble T...

Page 128: ...is referred to as V memory variable and is a 16 bit location normally used to manipulate data numbers store data numbers etc Some information is automatically stored in V memory For example the timer...

Page 129: ...n which has 16 consecutive discrete locations In this example memory location C5 will energize when input X10 turns on The second rung shows a simple example of how to use a control relay as an input...

Page 130: ...hen the counter reaches the preset of 10 counts K of 10 counter status contact CT3 turns on When CT3 turns on output Y12 turns on Counter Current Values V Data Type Just like the timers the counter cu...

Page 131: ...y There are many different types of special relays For example some aid in program development others provide system operating status information etc Appendix D provides a complete listing of the spec...

Page 132: ...nter interrupt pulse catch pulse train and input filter see the D2 CTRINT Manual D2 CTRIF M for more information Location is also used for setting the with without battery option enable disable CPU mo...

Page 133: ...the fatal error code N A V7756 Error code stores the major error code N A V7757 Error code stores the minor error code V7760 V7764 Module Error stores the slot number and error code where an I O erro...

Page 134: ...ointer Power Up Mode Change Preset Value Password V0 V3760 V0 V3760 1 16 V0 V3760 V0 V3760 V memory location for X Y or C points used 0 1 2 3 12 Default 0000 V7630 Starting location for the multi step...

Page 135: ...ed counter interrupt pulse catch pulse train output and input filter for X3 when D2 CTRINT is installed Default 0000 V7640 V7641 Location for setting the lower and upper limits for the CH1 analog pot...

Page 136: ...stores the number of scan cycles that have occurred since the last Program to Run Mode transition V7766 Contains the number of seconds on the clock 00 to 59 V7767 Contains the number of minutes on the...

Page 137: ...default range is V3630 V3707 You can change the starting point if necessary Default V3630 Range V0 V3710 V7631 Starting location for the multi step presets for channel 2 Since there are 24 presets av...

Page 138: ...mation Locations reserved for set up information used with future options V7720 V7722 V7720 V7721 V7722 Locations for DV 1000 operator interface parameters Titled Timer preset value pointer Title Coun...

Page 139: ...7 Scan stores the maximum scan time that has occurred since the last Program Mode to Run Mode transition milliseconds V36000 36057 Analog pointer method for expansion base 1 DL250 1 V36100 36157 Analo...

Page 140: ...ult range is V3630 V3707 You can change the starting point if necessary Default V3630 Range V0 V3710 V7631 Starting location for the multi step presets for channel 2 Since there are 24 presets availab...

Page 141: ...ed for set up information used with future options V7720 V7722 V7720 V7721 V7722 Locations for DV 1000 operator interface parameters Titled Timer preset value pointer Title Counter preset value pointe...

Page 142: ...1 slave 1 C767 slave 7 System V memory Description of Contents V7766 Contains the number of seconds on the clock 00 to 59 V7767 Contains the number of minutes on the clock 00 to 59 V7770 Contains the...

Page 143: ...ory reference for discrete bits X0 through X17 therefore it s alias is VX0 V40401 is the word memory reference for discrete bits X20 through X37 therefore it s alias is VX20 V40500 VY0 V40500 is the w...

Page 144: ...7 1281 Y0 Control Relays C0 C377 V40600 V40617 256 C0 C0 Special Relays SP0 SP117 SP540 SP577 V41200 V41204 V41226 V41227 112 SP0 Timers T0 T77 64 TMR K100 T0 Timer Current Values None V0 V77 64 V0 K1...

Page 145: ...Y0 Control Relays C0 C377 V40600 V40617 256 C0 C0 Special Relays SP0 SP137 SP540 SP617 V41200 V41205 V41226 V41230 144 SP0 Timers T0 T177 128 TMR K100 T0 Timer Current Values None V0 V177 128 V0 K100...

Page 146: ...0 V40677 1024 C0 C0 Special Relays SP0 SP777 V41200 V41237 512 SP0 Timers T0 T377 256 TMR K100 T0 Timer Current Values None V0 V377 256 V0 K100 Timer Status Bits T0 T377 V41100 V41117 256 T0 Counters...

Page 147: ...12 SP0 Timers T0 T377 256 TMR K100 T0 Timer Current Values None V0 V377 256 V0 K100 Timer Status Bits T0 T377 V41100 V41117 256 T0 Counters CT0 CT377 256 CNT K10 CT0 Counter Current Values None V1000...

Page 148: ...3 202 201 200 V40410 V40510 237 236 235 234 233 232 231 230 227 226 225 224 223 222 221 220 V40411 V40511 257 256 255 254 253 252 251 250 247 246 245 244 243 242 241 240 V40412 V40512 277 276 275 274...

Page 149: ...23 1322 1321 1320 V40455 V40555 1357 1356 1355 1354 1353 1352 1351 1350 1347 1346 1345 1344 1343 1342 1341 1340 V40456 V40556 1377 1376 1375 1374 1373 1372 1371 1370 1367 1366 1365 1364 1363 1362 1361...

Page 150: ...3 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 742 741 740 V40636 777 776 775 774 773 772 771 770 767 766 765 764 763 762 761 760 V40637 MSB D...

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

Page 152: ...2335 2334 2333 2332 2331 2330 2327 2326 2325 2324 2323 2322 2321 2320 V40715 2357 2356 2355 2354 2353 2352 2351 2350 2347 2346 2345 2344 2343 2342 2341 2340 V40716 2377 2376 2375 2374 2373 2372 2371...

Page 153: ...3324 3323 3322 3321 3320 V40755 3357 3356 3355 3354 3353 3352 3351 3350 3347 3346 3345 3344 3343 3342 3341 3340 V40756 3377 3376 3375 3374 3373 3372 3371 3370 3367 3366 3365 3364 3363 3362 3361 3360...

Page 154: ...14 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 343 342 341 340 V41016 377 376 375 374 373 372 371 370 367 366 365 364 363 362...

Page 155: ...6 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...

Page 156: ...13 12 11 10 9 8 7 6 5 4 3 2 1 0 217 216 215 214 213 212 211 210 207 206 205 204 203 202 201 200 V41110 237 236 235 234 233 232 231 230 227 226 225 224 223 222 221 220 V41111 257 256 255 254 253 252 2...

Page 157: ...7 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 351 350 347 346 345 344 343 342 341 340 V40016 V40216...

Page 158: ...2 1321 1320 V40055 V40255 1357 1356 1355 1354 1353 1352 1351 1350 1347 1346 1345 1344 1343 1342 1341 1340 V40056 V40256 1377 1376 1375 1374 1373 1372 1371 1370 1367 1366 1365 1364 1363 1362 1361 1360...

Page 159: ...2 2321 2320 V40115 V40315 2357 2356 2355 2354 2353 2352 2351 2350 2347 2346 2345 2344 2343 2342 2341 2340 V40116 V40316 2377 2376 2375 2374 2373 2372 2371 2370 2367 2366 2365 2364 2363 2362 2361 2360...

Page 160: ...2 3321 3320 V40155 V40355 3357 3356 3355 3354 3353 3352 3351 3350 3347 3346 3345 3344 3343 3342 3341 3340 V40156 V40356 3377 3376 3375 3374 3373 3372 3371 3370 3367 3366 3365 3364 3363 3362 3361 3360...

Page 161: ...Strategies 4 2 Module Placement 4 3 Calculating the Power Budget 4 7 Local Expansion I O 4 11 Expanding DL205 I O 4 17 Network Connections to Modbus and DirectNet 4 32 Network Slave Operation 4 35 Ne...

Page 162: ...ystems DL240 DL250 1 or DL260 CPUs only and DL405 CPU systems in high speed peer to peer networks Any PLC can initiate communications with any other PLC when using either the ECOM or ECOM100 modules D...

Page 163: ...es AC Output Modules Relay Output Modules Analog Input and Output Modules Local Expansion Base Expansion Unit Base Controller Module CPU Slot Only Serial Remote I O Remote Master not Slot O Remote Sla...

Page 164: ...r local expansion bases You can manually modify an auto configuration to match arbitrary I O numbering For example two adjacent input modules can have starting addresses at X20 and X200 Use DirectSOFT...

Page 165: ...ed You can use AUX 42 HPP or DirectSOFT I O diagnostics to determine the exact base and slot location where the change occurred When a configuration error is generated you may actually want to use the...

Page 166: ...e used D2 CTRINT 8 Input 8 Output D2 08TD1 8 Output F2 DEVNETS 1 None D2 16TD1 2 2 2 16 Output H2 PBC None D2 16TD1 2 P 16 Output F2 SDS 1 None D2 32TD1 2 32 Output D2 08SIM 8 Input AC Output Modules...

Page 167: ...r equipment damage CPU Power Specifications The following chart shows the amount of current available for the two voltages supplied from the DL205 base Use these currents when calculating the power bu...

Page 168: ...32TD1 2 350 0 D2 EM 130 0 AC Output Modules F2 CP128 235 0 D2 08TA 250 0 F2 DEVNETS 1 160 0 F2 08TA 250 0 F2 SDS 1 160 0 D2 12TA 350 0 Relay Output Modules D2 04TRS 250 0 D2 08TR 250 0 F2 08TRS 670 0...

Page 169: ...e Power Place the difference in the row labeled Remaining Power Available 4 If Total Power Required is greater than the power available from the base the power budget will be exceeded It will be unsaf...

Page 170: ...Available Base Power Place the difference in the row labeled Remaining Power Available 4 If Total Power Required is greater than the power available from the base the power budget will be exceeded It...

Page 171: ...ect the expansion base number The expansion base I O addressing Xs and Ys is based on the numerical order of the rotary switch selection and is recognized by the CPU on power up Duplicate expansion ba...

Page 172: ...pansion cables with the PLC power turned OFF in order for the ACTIVE indicator to function normally D2 EXCBL 1 Local Expansion Cable The category 5 straight through D2 EXCBL 1 1m is used to connect th...

Page 173: ...rmines the X and Y addressing order The CPU will recognize the local and expansion I O on power up Do not duplicate numerical selections The TERM termination switch on the two endmost D2 EMs must be i...

Page 174: ...bases Specialty modules are not supported in the expansion bases The D2 CMs do not have to be in successive numerical order however the numerical rotary selection determines the X and Y addressing ord...

Page 175: ...fer no harm if the system were shut down all at once In a way it is the equivalent of an E STOP On the other hand for a continuous process such as waste water treatment holding the last state would al...

Page 176: ...automatic addressing is used the CPU would assign addresses from expansion base 1 to base 2 and possibly enter the RUN mode This is not desirable and can be prevented by enabling the I O Configuratio...

Page 177: ...ry 5 UTP cables for distances up to 100 meters 328 ft Repeaters are used to extend the distances and to expand the number of nodes The fiber optic version H2 ERM F uses industry standard 62 5 125 ST s...

Page 178: ...iability of the slave I O and the speed of the I O network Keep ERM networks multiple ERM networks and ECOM office networks isolated from one another Once the ERM remote I O network is configured and...

Page 179: ...the module ID to 0 A Module ID can be set in one of two ways Use the DIP switches on the module 1 63 Use the configuration tools in NetEdit Use the DIP switch to install and change slave modules with...

Page 180: ...Cabling Of the three types of ERM modules available one supports the 10BaseT standard another supports 10 100BaseT and the other one supports the 10BaseFL standard The 10 100BaseT standard uses twist...

Page 181: ...ERM F An explanation of the use of the ERM Workbench software is too lengthy for this manual The full use of the workbench and NetEdit utilities is discussed in the ERM manual DL205 User Manual 4th Ed...

Page 182: ...ications and the H2 EBC F module supports 10BaseFL fiber optic Ethernet standards DL205 User Manual 4th Edition Rev B 4 22 Chapter 4 System Design and Configuration 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A...

Page 183: ...he EBC manual for the complete use of NetEdit3 It is recommended to use the DIP switch to set the Module ID because the DIP switch is simple to set and the Module ID can be determined by looking at th...

Page 184: ...o a hub or repeater use a patch cable sometimes called a straight through cable The cable used to connect a PC directly to an EBC or to connect two hubs is referred to as a crossover cable DL205 User...

Page 185: ...istance per 10 100BaseT cable segment is 100 meters or 328 feet Repeaters extend the distance Each cable segment attached to a repeater can be 100 meters Two repeaters connected together extend the to...

Page 186: ...nel is described in the following section The figure below shows one CPU base and one remote I O channel with six remote bases If the CPU is a DL250 1 or DL260 adding the first remote I O channel does...

Page 187: ...port in DirectSOFT choose the PLC menu then Setup then Setup Secondary Comm Port Port From the port number list box at the top choose Port 2 Protocol Click the check box to the left of Remote I O cal...

Page 188: ...t the last slave to connect the required internal termination resistor Ideally the two termination resistors at the cables opposite ends and the cable s rated impedance will all match For cable impeda...

Page 189: ...rting address of slave s input data 2 Number of slave s input points 3 Starting address of outputs in slave 4 Number of slave s output points The table is 32 words long If your system has fewer than s...

Page 190: ...ion The program segment required to transfer our worksheet results to the Remote I O configuration table is shown to the right Remember to use the LDA or LD instructions appropriately The next page co...

Page 191: ...he CPU the ladder program has finished specifying a remote I O system At that moment the CPU begins remote I O communications Be sure to include this contact after any Remote I O setup program Remote...

Page 192: ...Network RS 232 Point to point DTE Device 4 3 1 PORT 2 DL250 1 DL260 RS 422 Slave 9 TXD 10 TXD 13 RXD 6 RXD 11 RTS 12 RTS 14 CTS 15 CTS 7 0V PC PLC Master PORT 1 DL250 1 DL260 slave only PORT 2 DL240 s...

Page 193: ...n Master mode will access only slaves 1 to 90 Each slave must have a unique number At powerup the port is automatically a slave unless and until the DL250 1 or DL260 executes ladder logic network inst...

Page 194: ...r At powerup the port is automatically a slave unless and until the DL250 1 or DL260 executes ladder logic instructions which attempt to use the port as a master Thereafter the port reverts back to sl...

Page 195: ...d the Modbus address that corresponds to the PLC memory location This is the easiest method but not all packages allow you to do it this way The actual equation used to calculate the address depends o...

Page 196: ...0000 V17777 768 3839 4096 8191 Holding Register V Memory system V 256 V7400 V7777 3480 3735 Holding Register DL260 Memory Type QTY Dec PLC Range Octal Modbus Address Range Decimal Modbus Data Type For...

Page 197: ...onvert C54 into decimal 44 3 Add the starting address for the range 3073 4 Use the Modbus data type from the table DL205 User Manual 4th Edition Rev B 4 37 Chapter 4 System Design and Configuration 1...

Page 198: ...lculate the address depends on the type of PLC data you are using The PLC memory types are split into two categories for this purpose Discrete X GX SP Y R S T CT contacts C contacts Word V Timer curre...

Page 199: ...e function 04 put the number 4 into the most significant position 4xxx when defining the number of bytes to read Four digits must be entered for the instruction to work properly with this mode The max...

Page 200: ...easy Use the ordinary native address of the slave device itself To access a slave PLC s memory address V2000 via DirectNET for example the network master will request V2000 from the slave 230 240 250...

Page 201: ...he WX instruction initiates network write operations and the RX instruction initiates network read operations Before executing either the WX or RX commands we will need to load data related to the rea...

Page 202: ...ends on the type of data you want to obtain For example the DL205 Input points can be accessed by V memory locations or as X input locations However if you only want X0 X27 you ll have to use the X in...

Page 203: ...ction in our sequence is the WX or RX instruction itself Use WX to write to the slave and RX to read from the slave All four of our instructions are shown to the right In the last instruction you must...

Page 204: ...and Write Interlocks If you are using multiple reads and writes in the RLL program you have to interlock the routines to make sure all the routines are executed If you don t use the interlocks then th...

Page 205: ...The Modbus 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 DL260 supports the Modbus function codes described below DL...

Page 206: ...til the DL06 executes ladder logic MWX MRX network instructions which use the port as a master Thereafter the port reverts back to slave mode until ladder logic uses the port again Baud Rate The avail...

Page 207: ...2 4 RTS2 Ready to Send RS 232 5 CTS2 Clear to Send RS 232 6 RXD2 Receive Data RS 422 RS 485 7 0V Logic Ground 8 0V Logic Ground 9 TXD2 Transmit Data RS 422 RS 485 10 TXD2 Transmit Data RS 422 RS 485 1...

Page 208: ...up of inputs 03 Read holding registers 04 Read input registers 07 Read Exception status Start Slave Memory Address specifies the starting slave memory address of the data to be read See the table on t...

Page 209: ...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 365535...

Page 210: ...Single coil 06 Preset Single Register 08 Diagnostics 15 Force Multiple Coils 16 Preset Multiple Registers Start Slave Memory Address specifies the starting slave memory address where the data will be...

Page 211: ...6 digit 15 Force Multiple Coils 484 1 999 15 Force Multiple Coils 584 984 Mode 1 65535 16 Preset Multiple Registers 484 Mode 4001 4999 16 Preset Multiple Registers 584 984 Mode 40001 49999 5 digit or...

Page 212: ...and Configuration 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D Port 2 busy bit SP116 Port 2 error bit SP117 _FirstScan SP0 _FirstScan SP0 CNT Number of times that the PLC has tried to poll network CTO K99...

Page 213: ...t Slave Memory Address 40001 Start Master Memory Address V2000 Number of Elements n a Modbus Data Type 584 984 Mode Exception Response Buffer V400 Instruction interlock bit C100 SET RST C100 Instructi...

Page 214: ...the RTS line after sending the data Data Bits Select either 7 bits or 8 bits to match the number of data bits specified for the connected devices Baud Rate The available baud rates include 300 600 90...

Page 215: ...cated to send the Port configuration to the CPU and click Close RS 485 Network RS 485 signals are for long distances 1000 meters max Use termination resistors at both ends of RS 485 network wiring mat...

Page 216: ...allocate the maximum allowable space buffer size 66 Words for example V2000 V2102 Use For Printing Only Check the box to enable the port settings described below Match the settings to the connected de...

Page 217: ...onfiguration 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D RXD RXD TXD TXD Signal GND PORT 2 Master 9 TXD 10 TXD 13 RXD 6 RXD 11 RTS 12 RTS 14 CTS 15 CTS 7 0V ASCII Slave Device Termination Resistor at bot...

Page 218: ...ons Accumulator 5 71 Math Instructions 5 88 Transcendental Functions DL260 only 5 121 Bit Operation Instructions 5 123 Number Conversion Instructions Accumulator 5 130 Table Instructions 5 144 Clock C...

Page 219: ...08 DECO Decode 5 129 DEGR Degree Real Conversion 5 136 DISI Disable Interrupts 5 188 DIV Divide 5 97 DIVB Divide Binary 5 106 DIVBS Divide Binary Top of Stack 5 120 DIVD Divide Double 5 98 DIVF Divide...

Page 220: ...stack 5 119 MULD Multiply Double 5 95 MULF Multiply Formatted 5 111 MULR Multiply Real 5 96 MULS Multiply Top of Stack 5 115 NCON Numeric Constand 5 199 NEXT Next For Next 5 180 Instruction Page NJMP...

Page 221: ...2 WX Write to Network 5 195 XOR Exclusive Or 5 79 XORD Exclusive Or Double 5 80 XORF Exclusive Or Formatted 5 81 XORMOV Exclusive Or Move 5 171 XORS Exclusive Or Stack 5 82 Instruction Page RT Subrout...

Page 222: ...rectSOFT 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 DirectSOFT and the HPP The follow...

Page 223: ...s two contacts in series and a single output coil 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 out...

Page 224: ...sting of series elements joined in parallel Joining Parallel Branches in Series You can also join one or more parallel branches in series The And Store ANDSTR instruction allows this operation The fol...

Page 225: ...205 CPUs 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 you enter a STR instruction the...

Page 226: ...e write outputs portion of 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 d...

Page 227: ...ory location In the following Store example when input X1 is on output Y2 will energize In the following Store Not example when input X1 is off output Y2 will energize Aaaa Aaaa Operand Data Type DL23...

Page 228: ...enced in the associated memory location In the following Store Bit of Word example when bit 12 of V memory location V1400 is on output Y2 will energize In the following Store Not Bit of Word example w...

Page 229: ...en input X1 or X2 is on output Y5 will energize In the following Or Not example when input X1 is on or X2 is off output Y5 will energize Aaaa Aaaa 230 240 250 1 260 230 240 250 1 260 Operand Data Type...

Page 230: ...it referenced in the associated memory location In the following Or Bit of Word example when input X1 or bit 7 of V1400 is on output Y7 will energize In the following Or Not Bit of Word example when i...

Page 231: ...when input X1 and X2 are on output Y5 will energize In the following And Not example when input X1 is on and X2 is off output Y5 will energize Aaaa Aaaa Operand Data Type DL230 Range DL240 Range DL250...

Page 232: ...t referenced in the associated memory location In the following And Bit of Word example when input X1 and bit 4 of V1400 is on output Y5 will energize In the following And Not Bit of Word example when...

Page 233: ...R The Or Store instruction logically ors two branches of a rung in parallel Both branches must begin with the Store instruction In the following Or Store example the branch consisting of X1 and X2 hav...

Page 234: ...gram contains two Out instructions using the same location Y10 The physical output of Y10 is ultimately controlled by the last rung of logic referencing Y10 X1 will override the Y10 output being contr...

Page 235: ...ng Out Bit of Word example contains two Out Bit of Word instructions using the same bit in the same memory word The final state bit 3 of V1400 is ultimately controlled by the last rung of logic refere...

Page 236: ...g at the point of the instruction In the following example when X1 is off Y2 will energize This is because the Not instruction inverts the status of the rung at the Not instruction Operand Data Type D...

Page 237: ...n off to on transition C0 will energize for one scan NOTE To generate a one shot pulse on an on to off transition place a NOT instruction immediately before the PD instruction The DL250 1 and DL260 CP...

Page 238: ...ew rung or an additional branch in a rung with a contact The contact closes for one CPU scan when the state of the associated image register point makes an On to Off transition Thereafter the contact...

Page 239: ...er point makes an On to Off transition closing it for one CPU scan Thereafter it remains open until another On to Off transition In the following example Y 5 will energize whenever X1 is on or for one...

Page 240: ...ociated 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 In the following example Y5 will energize for one C...

Page 241: ...nputs X s that are assigned to input modules In the following example when X1 is on Y2 through Y5 will energize In the following example when X2 is on Y2 through Y5 will be reset or de energized Opera...

Page 242: ...a V memory location Once the bit is reset it is not necessary for the input to remain on In the following example when X1 turns on bit 1 in V1400 is set to the on state In the following example when...

Page 243: ...xecution of the ladder program will not be affected Since the D2 HPP Handheld Programmer does not have a specific Pause key you can use the corresponding instruction number for entry 960 or type each...

Page 244: ...in V memory location V2000 5060 Y3 will energize A aaa B bbb A aaa B bbb Y3 OUT V2000 K5060 DirectSOFT Handheld Programmer Keystrokes SHFT OUT GX ENT 3 D 4 E 2 C 0 A 0 A 0 A STRN SP 5 F 0 A ENT 6 G 0...

Page 245: ...C 5 F ENT 0 A 0 A 3 D 9 J ENT 1 B 6 G 4 E Y3 OUT V2000 K3916 V2002 K2500 DirectSOFT Handheld Programmer Keystrokes STR SHFT 2 C 0 A 0 A 0 A ORN R SHFT 4 E 2 C 0 A 0 A 2 C OUT GX ENT 3 D 2 C 3 D 4 E 5...

Page 246: ...aa B bbb A aaa B bbb 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 DirectSOFT Handheld Programmer Ke...

Page 247: ...00 4050 Y3 will energize A aaa B bbb A aaa B bbb ENT 3 D Y3 OUT V2000 K1000 DirectSOFT 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...

Page 248: ...e DL250 1 Range DL260 Range A B aaa bbb aaa bbb aaa bbb aaa bbb V memory V All See memory map page 3 53 All See memory map page 3 53 All See memory map page 3 54 All See memory map page 3 54 All See m...

Page 249: ...F ENT ENT 0 A 0 A 5 F 0 A 2 C Y3 OUT V2000 K5000 V2002 K2345 DirectSOFT Handheld Programmer Keystrokes STR SHFT 4 E 0 A 0 A 0 A AND V OUT GX SHFT AND V 2 C 0 A 0 A 2 C 2 C 5 F ENT 0 A 0 A 7 H ENT 0 A...

Page 250: ...s a new rung or additional branch in a rung The status of the contact will be opposite the status of the associated input point at the time the instruction is executed The image register is not update...

Page 251: ...will be opposite the status of the associated input point at the time the instruction is executed The image register is not updated In the following example when X1 or X2 is on Y5 will energize In th...

Page 252: ...will be opposite the status of the associated input point at the time the instruction is executed The image register is not updated In the following example when X1 and X2 are on Y5 will energize In t...

Page 253: ...ng the same output coil may be used since all contacts controlling the output are ored together If the status of any rung is on at the time the instruction is executed the output will also be on In th...

Page 254: ...to outputs without waiting for the CPU scan Operand Data Type DL260 Range aaa bbb Outputs Y 0 1777 Constant K 1 32 bbb K Y aaa OUTIF LDIF X10 CO K8 K8 X10 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 1 0 0 0 0 0 0 0...

Page 255: ...egister and the output point s at the time the instruction is executed Once the outputs are reset it is not necessary for the input to remain on In the following example when X1 is on Y2 through Y5 wi...

Page 256: ...ckly copy an input pattern to output points without waiting for a full CPU scan to occur V aaa LDI C0 OUTI V40400 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 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...

Page 257: ...s 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 startin...

Page 258: ...lications that need an accumulating timer meaning it has the ability to time stop and then resume from where it previously stopped The accumulating timer works similarly to the regular timer but two i...

Page 259: ...Timer 2 would be T2 NOTE A V memory preset is required only if the ladder program or an Operator Interface unit must change the preset NOTE Both the Timer discrete status bits and the current value ar...

Page 260: ...are used to energize Y3 Y4 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 SHF...

Page 261: ...memory location It will be on if the current value is equal to or greater than the preset value For example the discrete status bit for Timer 2 would be T2 NOTE The accumulating timer uses two consecu...

Page 262: ...timer is reset Handheld Programmer Keystrokes X1 T6 TMRA T6 K30 C10 Y10 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 DirectSOFT Seconds Handheld Programmer Keyst...

Page 263: ...it is accessed by referencing the associated CT memory location It will be on if the value is equal to or greater than the preset value For example the discrete status bit for Counter 2 would be CT2 N...

Page 264: ...by one Comparative contacts 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 compa...

Page 265: ...tion It will be on if the value is equal to or greater than the preset value For example the discrete status bit for Counter 2 would be CT2 NOTE When using a counter inside a stage the stage must be a...

Page 266: ...are used to energize Y3 Y4 and 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 curre...

Page 267: ...ses two consecutive V memory locations for the 8 digit value therefore two consecutive counter locations For example if UDC CT1 is used the next available counter number is CT3 NOTE A V memory preset...

Page 268: ...ter CT2 will increment by 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 th...

Page 269: ...t position in the shift register The direction of the shift depends on the entry in the From and To fields From C0 to C17 would define a block of sixteen bits to be shifted from left to right From C17...

Page 270: ...r to copy data from the accumulator to V memory The following example copies data from V memory location V1400 to V memory location V1410 Since the accumulator is 32 bits and V memory locations are 16...

Page 271: ...he accumulator 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 posi...

Page 272: ...el 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 Accumulator Stack X X X X X X X X 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...

Page 273: ...0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 0 0 1 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 Shifted out of accumulator 0 4 9 3 4 9 3 5 SHFR K4...

Page 274: ...dress V memory location V2000 The CPU copies the data from V2000 into the lower word of the accumulator The following example is similar to the one above except for the LDA load address instruction wh...

Page 275: ...Flags Description SP76 On when the value loaded into the accumulator by any instruction is zero LD V2000 X1 Load the value in V2000 into the lower 16 bits of the accumulator OUT V2010 Copy the value i...

Page 276: ...pe DL230 Range DL240 Range DL250 1 Range DL260 Range A aaa aaa aaa aaa bbb V memory V All See Memory map All See Memory map All See Memory map All See Memory map Pointer P All V memory See Memory map...

Page 277: ...nto the accumulator OUTF Y0 K7 Copy the value from the specified number of bits in the accumulator to Y0 Y6 K7 C10 Location Constant 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15...

Page 278: ...e Load Address instruction The value in the lower 16 bits of the accumulator is copied to V2000 using the Out instruction O aaa LDA 1 B ENT 4 E 0 A 4 E 0 A 0 A ENT Handheld Programmer Keystrokes Direc...

Page 279: ...V1410 will be added to the value in the 1st level of the stack and the value in this location V1435 2345 is loaded into the lower 16 bits of the accumulator using the Load Accumulator Indexed instruc...

Page 280: ...nto the first level of the accumulator stack when the LDSX instruction is executed The LDSX instruction specifies the Data Label DLBL K2 where the numerical constant s are located in the program and l...

Page 281: ...ber shown will be very difficult to decipher Just like all other number types you must keep track of real number locations in memory so they can be read with the proper instructions later The previous...

Page 282: ...ge DL240 Range DL250 1 Range DL260 Range A aaa aaa aaa aaa V memory V All See memory map All See memory map All See memory map All See memory map Pointer P All V memory See memory map All V memory See...

Page 283: ...output to V2010 and V2011 using the Out Double instruction 2 C 0 A 0 A 0 A ENT 2 C 0 A 1 B 0 A ENT 1 B ENT Handheld Programmer Keystrokes V2010 Acc V2000 6 7 3 9 5 0 2 6 5 0 2 6 V2001 6 7 3 9 5 0 2 6...

Page 284: ...erand Data Type DL240 Range DL250 1 Range DL260 Range A aaa bbb aaa bbb aaa bbb Constant K 1 32 1 32 1 32 230 240 250 1 260 0 A 7 H ENT Handheld Programmer Keystrokes LDF C10 K7 C0 Load the status of...

Page 285: ...r stack to V1525 2 5 X1 OUTX 0 0 0 0 3 5 4 4 Constant 3 5 4 4 Acc 3 5 4 4 0 0 0 0 0 0 1 5 The unused accumulator bits are set to zero 0 0 0 0 3 5 4 4 Level 1 X X X X X X X X Level 2 X X X X X X X X Le...

Page 286: ...uction The value in the upper 8 bits of the lower 16 bits of the accumulator are copied to V1500 using the Out Most instruction Operand Data Type DL260 Range A aaa V memory V All V memory See memory m...

Page 287: ...X X X X Level 7 X X X X 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...

Page 288: ...ogrammer Keystrokes LD V2000 X1 Load the value 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...

Page 289: ...he value in the accumulator with the constant value 36476A38 OUTD V2010 Copy the value in the accumulator to V2010 and V2011 0 0 1 0 1 0 0 0 0 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...

Page 290: ...10 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 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 23 22 21 20 19 18 17 16...

Page 291: ...1500 and V1501 ANDS 230 240 250 1 260 AND X1 0 0 1 0 1 0 0 0 0 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 V1400 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...

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

Page 293: ...e value in the accumulator with the constant value 36476A38 OUTD V2010 Copy the value in the accumulator to V2010 and V2011 0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 1 1 0 1 0 0 0 0 0 0 1...

Page 294: ...28 27 26 25 24 23 22 21 20 19 18 17 16 Acc Y20 Y21 Y22 Y23 The unused accumulator 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Acc Constant...

Page 295: ...1 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 V1400 2 8 7 A 0 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 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 27 26 25 24 23 22 21 20 19 18...

Page 296: ...he 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 1 1 1 0 1 0 0 1 0 0 1 1 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 V2000 2 8 7 A 0 0 0 0 0 0...

Page 297: ...trokes LDD V2000 X1 Load the value in V2000 and V2001 into the accumulator XORD K36476A38 XORD the value in the accumulator with the constant value 36476A38 OUTD V2010 Copy the value in the accumulato...

Page 298: ...8 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 0 0 0 0 0 0 0 0 0 1 1 0 0 Acc Acc 0...

Page 299: ...S X1 0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 V1400 2 8 7 A 0 1 1 0 0 0 1 0 0 0 1 1 1 0 0 1 0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0 15 14 13 12 11 10 9 8...

Page 300: ...instruction SP60 will turn on energizing contact C30 CMP A aaa 230 240 250 1 260 Discrete Bit Flags Description SP60 On when the value in the accumulator is less than the instruction value SP61 On wh...

Page 301: ...e Compare instruction SP60 will turn on energizing contact C30 Handheld Programmer Keystrokes LDD Compare the value in the accumulator with the value in V2010 and V2011 Load the value in V2000 and V20...

Page 302: ...ess than the value specified in the Compare instruction SP60 will turn on energizing C30 CMPF A aaa K bbb 230 240 250 1 260 K4 C10 Location Constant C10 C11 C12 C13 OFF ON ON OFF The unused accumulato...

Page 303: ...l of the accumulator stack using the CMPS instruction The corresponding discrete status flag will be turned on indicating the result of the comparison In this example if the value in the accumulator i...

Page 304: ...te status flag is turned on special relay SP62 Discrete Bit Flags Description SP60 On when the value in the accumulator is less than the instruction value SP61 On when the value in the accumulator is...

Page 305: ...V2006 Add the value in the lower 16 bits of the accumulator with the value in V2006 OUT V2010 Copy the value in the lower 16 bits of the accumulator to V2010 V2010 V2000 4 9 3 5 7 4 3 5 0 0 0 0 4 9 3...

Page 306: ...mory map All See memory map All See memory map Pointer P All V memory See memory map All V memory See memory map All V memory See memory map Constant K 0 99999999 0 99999999 0 99999999 0 99999999 ADDD...

Page 307: ...e the value in the accumulator 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...

Page 308: ...See memory map All See memory map All See memory map Pointer P All V memory See memory map All V memory See memory map All V memory See memory map Discrete Bit Flags Description SP63 On when the resu...

Page 309: ...age 3 54 All See page 3 55 All See page 3 56 Pointer P All V memory See page 3 54 All V memory See page 3 55 All V memory See page 3 56 Constant K 0 99999999 0 99999999 0 99999999 0 99999999 Discrete...

Page 310: ...4 1 B 0 0 0 0 0 0 0 0 0 4 1 B 0 SUBR Accumulator 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 Exponent 8 bits DirectSOFT Load the real numbe...

Page 311: ...he instruction causes the value in the accumulator to be zero SP70 On anytime the value in the accumulator is negative SP75 On when a BCD instruction is executed and a NON BCD number was encountered D...

Page 312: ...em See page 3 56 230 240 250 1 260 Discrete Bit Flags Description SP63 On when the result of the instruction causes the value in the accumulator to be zero SP70 On anytime the value in the accumulator...

Page 313: ...Copy the result in the accumulator to V1400 and V1401 OUTD V1400 Implies 2 exp 6 133 127 6 Hex number Sign Bit 4 0 E 0 0 0 0 0 0 0 0 0 4 0 E 0 MULR Accumulator 4 1 7 0 0 0 0 0 X 0 0 0 0 4 2 D 2 Acc 7...

Page 314: ...an work with SP63 On when the result of the instruction causes the value in the accumulator to be zero SP70 On anytime the value in the accumulator is negative SP75 On when a BCD instruction is execut...

Page 315: ...ion DIVD A aaa Discrete Bit Flags Description SP53 On when the value of the operand is larger than the accumulator can work with SP63 On when the result of the instruction causes the value in the accu...

Page 316: ...nt 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 error SP75 On when a real number instruc...

Page 317: ...ntact closure to INC DEC the value in V memory once per closure A aaa INC Discrete Bit Flags Description SP63 On when the result of the instruction causes the value in the accumulator to be zero SP75...

Page 318: ...in V1420 is added to the binary value in the accumulator using the Add Binary instruction The value in the accumulator is copied to V1500 V1501 using the Out Double instruction ADDB A aaa Discrete Bi...

Page 319: ...V1400 X1 ADDBD V1420 The binary value in the accumulator is added with the value in V1420 and V1421 OUTD V1500 Copy the value in the accumulator to V1500 and V1501 1 1 1 0 0 0 0 1 0 0 0 0 A A Accumula...

Page 320: ...be loaded into the accumulator using the Load instruction The binary value in V1420 is subtracted from the binary value in the accumulator using the Subtract Binary instruction The value in the accumu...

Page 321: ...ction 230 240 250 1 260 SUBBD A aaa LDD V1400 X1 SUBBD V1420 The binary value in V1420 and V1421 is subtracted from the binary value in the accumulator OUTD V1500 Copy the value in the accumulator to...

Page 322: ...is on the value in V1400 will be loaded into the accumulator using the Load instruction The binary value in V1420 is multiplied by the binary value in the accumulator using the Multiply Binary instruc...

Page 323: ...value in V1400 will be loaded into the accumulator using the Load instruction The binary value in the accumulator is divided by the binary value in V1420 using the Divide Binary instruction The value...

Page 324: ...V2000 is increased by 1 230 240 250 1 260 Discrete Bit Flags Description SP63 On when the result of the instruction causes the value in the accumulator to be zero Operand Data Type DL230 Range DL240 R...

Page 325: ...ecreased by 1 230 240 250 1 260 Handheld Programmer Keystrokes DirectSOFT C5 DECB V2000 Decrement the binary value in V2000 by 1 V2000 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...

Page 326: ...777 Stage Bits S 0 1777 Timer Bits T 0 377 Counter Bits CT 0 377 Special Relays SP 0 777 Global I O GX GY 0 3777 Constant K 1 32 Discrete Bit Flags Description SP63 On when the result of the instructi...

Page 327: ...e value in the accumulator to be zero SP64 On when the 16 bit subtraction instruction results in a borrow SP65 On when the 32 bit subtraction instruction results in a borrow SP70 On anytime the value...

Page 328: ...scription SP63 On when the result of the instruction causes the value in the accumulator to be zero SP70 On anytime the value in the accumulator is negative SP75 On when a BCD instruction is executed...

Page 329: ...value represented by discrete locations X0 X3 into the accumulator DIVF C0 K4 Divide the value in the accumulator with the value represented by discrete location C0 C3 OUTF Y10 K4 Copy the lower 4 bi...

Page 330: ...tor to be zero SP66 On when the 16 bit addition instruction results in a carry SP67 On when the 32 bit addition instruction results in a carry SP70 On anytime the value in the accumulator is negative...

Page 331: ...cumulator to be zero SP64 On when the 16 bit subtraction instruction results in a borrow SP65 On when the 32 bit subtraction instruction results in a borrow SP70 On anytime the value in the accumulato...

Page 332: ...V1420 Load the value in V1420 into the accumulator OUTD V1500 Copy the value in the accumulator to V1500 and V1501 X X X X X X X X 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...

Page 333: ...umulator is negative SP75 On when a BCD instruction is executed and a NON BCD number was encountered LD V1400 X1 Load the value in V1400 into the accumulator LDD V1420 Load the value V1420 and V1421 i...

Page 334: ...value in the accumulator to be zero SP66 On when the 16 bit addition instruction results in a carry SP67 On when the 32 bit addition instruction results in a carry SP70 On anytime the value in the acc...

Page 335: ...of the instruction causes the value in the accumulator to be zero SP64 On when the 16 bit subtraction instruction results in a borrow SP65 On when the 32 bit subtraction instruction results in a borro...

Page 336: ...lags Description SP63 On when the result of the instruction causes the value in the accumulator to be zero SP70 On anytime the value in the accumulator is negative LD V1400 X1 Load the value in V1400...

Page 337: ...the accumulator to be zero SP70 On anytime the value in the accumulator is negative LD V1400 X1 Load the value in V1400 into the accumulator LDD V1420 Load the value in V1420 and V1421 into the accum...

Page 338: ...the accumulator Both the original number and the result are in IEEE 32 bit format Cosine Real COSR The Cosine Real instruction takes the cosine of the real number stored in the accumulator The result...

Page 339: ...orifice flow meter measurement as the PV to a PID loop note that the PID loop already has the square root extract function built in The following example takes the sine of 45 degrees Since these trans...

Page 340: ...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 lower 16 bits of the accumulato...

Page 341: ...l See page 3 54 All See page 3 55 All See page 3 56 Constant K 1 32 1 32 1 32 1 32 Standard RLL Instructions ENT Handheld Programmer Keystrokes Direct SOFT LDD V2000 X1 Load the value in V2000 and V20...

Page 342: ...age 3 53 All See page 3 54 All See page 3 55 All See page 3 56 Constant K 1 32 1 32 1 32 1 32 Handheld Programmer Keystrokes Direct SOFT LDD V2000 X1 Load the value in V2000 and V2001 into the accumul...

Page 343: ...e A aaa aaa V memory V All See page 3 55 All See page 3 56 Constant K 1 32 1 32 DirectSOFT Handheld Programmer Keystrokes STR SHFT ANDST L 3 D 3 D SHFT ORN R MLR T ANDST L ENT OUT GX SHFT 3 D 1 B ENT...

Page 344: ...nstant K 1 32 1 32 Handheld Programmer Keystrokes DirectSOFT LDD V1400 X1 Load the value in V1400 and V1401 into the accumulator ROTR K2 The bit pattern in the accumulator is rotated 2 bit positions t...

Page 345: ...ng the Encode instruction The value in the lower 16 bits of the accumulator is copied to V2010 using the Out instruction 230 240 250 1 260 ENCO Discrete Bit Flags Description SP53 On when the value of...

Page 346: ...tting the corresponding bit position to a 1 using the Decode instruction 230 240 250 1 260 DECO Handheld Programmer Keystrokes DirectSOFT LDF X10 K5 X1 Load the value in represented by discrete locati...

Page 347: ...0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 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 2 8 5 2 9 V2000 V2001 0 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0...

Page 348: ...e 0 1 1 0 1 1 1 1 0 1 1 1 0 0 0 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...

Page 349: ...Programmer Keystrokes DirectSOFT LDD V2000 X1 Load the value in V2000 and V2001 into the accumulator INV Invert the binary bit pattern in the accumulator OUTD V2010 Copy the value in the accumulator t...

Page 350: ...r using the Ten s Complement instruction The value in the accumulator is copied to V2010 and V2011 using the Out Double instruction 230 240 250 1 260 BCDCPL 3 D Handheld Programmer Keystrokes DirectSO...

Page 351: ...d to V1500 and V1501 using the Out Double instruction The handheld programmer would display the binary value in V1500 and V1501 as a HEX value BTOR 4 8 A E 4 8 2 0 V1500 V1501 LDD V1400 X1 Load the va...

Page 352: ...FT LDD V1400 X1 Load the value in V1400 and V1401 into the accumulator RTOB Convert the real number in the accumulator to binary format 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...

Page 353: ...eal instruction The following example takes the sine of 45 degrees Since transcendental functions operate only on real numbers we do a LDR Load Real 45 The trig functions operate only in radians so we...

Page 354: ...rameter must be a HEX value Step 3 Specify the starting V memory location Vaaa for the HEX table in the ATH instruction Helpful hint For parameters that require HEX values when referencing memory loca...

Page 355: ...he HEX table into the accumulator This parameter must be a HEX value Step 3 Specify the starting V memory location Vaaa for the ASCII table in the HTA instruction Helpful hint For parameters that requ...

Page 356: ...oad the constant value into the lower 16 bits of the accumulator This 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 accu...

Page 357: ...binary 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...

Page 358: ...cumulator is converted to BCD using the Gray Code instruction The value in the lower 16 bits of the accumulator is copied to V2010 GRAY 230 240 250 1 260 Handheld Programmer Keystrokes DirectSOFT LDF...

Page 359: ...o the accumulator Step 3 Insert the SFLDGT instruction NOTE If the number used to specify the order contains a 0 or 9 F the corresponding position will be set to 0 See example on the next page NOTE If...

Page 360: ...r specified is used in the result D E F 0 9 A B C Handheld Programmer Keystrokes DirectSOFT LDD V2000 X1 Load the value in V2000 and V2001 into the accumulator LDD V2006 Load the value in V2006 and V2...

Page 361: ...ccumulator using the Load instruction This value specifies the length of the table and is placed in the first stack location after the Load Address instruction is executed The octal address 2000 V2000...

Page 362: ...block into the first level of the accumulator stack Step 3 Load the source data label LDLBL Kaaa into the accumulator when copying data from ladder memory to V memory Load the source address into the...

Page 363: ...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 into the destination table When an offset is outside of the source infor...

Page 364: ...uction starts at 0 If the offset or the specified data table range is large enough to cause data to be copied from V memory to beyond the end of the DLBL area then anything after the specified DLBL ar...

Page 365: ...he Set Bit or Reset Bit instruction This specifies the reference for the bit number of the bit you want to set or reset The bit number is in octal and the first bit in the table is number 0 Helpful hi...

Page 366: ...e length 2 words into the accumulator stack Next we load the starting address into the accumulator Since V3000 is an octal number we have to convert it to hex by using the LDA command Finally we use t...

Page 367: ...cumulator In the following example when X1 is on the constant value K4 is loaded into the accumulator using the Load instruction This value specifies the length of the table and is placed on the first...

Page 368: ...the accumulator 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 load the val...

Page 369: ...memory location which contains the greater than search value is returned to the accumulator as a HEX value SP53 will be set on if the value is not found and 0 will be returned in the accumulator Helpf...

Page 370: ...n the accumulator If there is no value in the table that is greater than the search value a zero is stored in the accumulator and SP53 will come ON Discrete Bit Flags Description SP53 On if there is n...

Page 371: ...r This parameter must be a HEX value Step 3 Insert the TTD instruction which specifies destination V memory location Vaaa Helpful hint For parameters that require HEX values when referencing memory lo...

Page 372: ...lso our example uses a normal input contact X1 to control the execution Since the CPU scan is extremely fast and the pointer increments automatically the table would cycle through the locations very q...

Page 373: ...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 2...

Page 374: ...as the table pointer This parameter must be a HEX value Step 3 Insert the RFB instructions which specifies destination V memory location Vaaa Helpful hint For parameters that require HEX values when r...

Page 375: ...emely fast and the pointer decrements automatically the table would cycle through the locations very quickly If this is a problem for your applicaton you have an option of using a one shot PD to remov...

Page 376: ...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 V1401...

Page 377: ...ation Vaaa This is where the value will be moved from Helpful hint For parameters that require HEX values when referencing memory locations the LDA instruction can be used to convert an octal address...

Page 378: ...x and then resets to one Also our example uses a normal input contact X1 to control the execution Since the CPU scan is extremely fast and the pointer increments automatically the source data would be...

Page 379: ...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 3 4 5 Scan...

Page 380: ...RFT instructions which specifies destination V memory location Vaaa This is where the value will be moved to Helpful hint For parameters that require HEX values when referencing memory locations the L...

Page 381: ...instruction execution Also our example uses a normal input contact X1 to control the execution Since the CPU scan is extremely fast and the pointer decrements automatically the data would be removed f...

Page 382: ...1404 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 383: ...g 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 instruction will be executed every scan if...

Page 384: ...easily be calculated by Table length table counter number of executions Also our example uses a normal input contact X1 to control the execution Since the CPU scan is extremely fast and the table cou...

Page 385: ...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 0 2 V...

Page 386: ...of V memory locations into the first level of the accumulator stack This parameter must be a HEX value 0 to FF Step 2 Load the starting V memory location for the table into the accumulator This parame...

Page 387: ...oad the table length 5 words into the accumulator stack Next we load the starting address into the accumulator Since V3000 is an octal number we have to convert it to hex by using the LDA command Fina...

Page 388: ...the table into the accumulator This parameter must be a HEX value You can use the LDA instruction to convert an octal address to hex Step 3 Load the BCD hex bit pattern into the accumulator which will...

Page 389: ...1 1 1 1 9 9 9 9 9 9 9 9 V3000 V3100 OR MOV K 8888 Handheld Programmer Keystrokes STR SHFT ANDST L 3 D ORST M INST O PREV 0 A ENT 2 C 0 A 0 A ENT SHFT ANDST L 3 D 3 D 0 A 0 A ENT SHFT ANDST L 3 D PREV...

Page 390: ...st be a decimal value from 1 to 128 Step 3 Load the ending location for all the tables into the accumulator This parameter must be a HEX value You can use the LDA instruction to convert an octal addre...

Page 391: ...on a single scan The example to the right shows a table of two words at V3000 We will swap its contents with another table of two words at V3100 by using the Swap instruction The example program belo...

Page 392: ...e DL260 Range aaa aaa V memory V All See page 3 55 All See page 3 56 230 240 250 1 260 Date Range V memory Location BCD READ Only Year 0 99 V7774 Month 1 12 V7773 Day 1 31 V7772 Day of Week 0 06 V7771...

Page 393: ...e time in the CPU TIME V aaa 230 240 250 1 260 Date Range V memory Location BCD READ Only 1 100 seconds 10ms 0 99 V7747 Seconds 0 59 V7766 Minutes 0 59 V7767 Hour 0 23 V7770 DirectSOFT Handheld Progra...

Page 394: ...re no input contact is allowed Stop STOP The Stop instruction changes the operational mode of the CPU from Run to Program Stop mode This instruction is typically used to stop PLC operation in a shutdo...

Page 395: ...cur and the CPU will enter the program mode if the scan time exceeds the watch dog timer setting Placement of the RSTWT instruction in the program is very important The instruction has to be executed...

Page 396: ...64 LBL instructions can be used in the program In the following example when C7 is on all the program logic between the GOTO and the corresponding LBL instruction designated with the same constant Kaa...

Page 397: ...umber of For Next loops is exceeded error E413 will occur The normal I O update and CPU housekeeping is suspended while executing the For Next loop The program scan can increase significantly dependin...

Page 398: ...immediate instructions 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 larger the Watch Dog Tim...

Page 399: ...he GTS instruction which called the subroutine By placing code in a subroutine it is only scanned and executed when needed since it resides after the End instruction Code which is not scanned does not...

Page 400: ...program at the RTC instruction If X35 is not on Y0 Y17 will be reset to off and then the CPU will return to the main body of the program Standard RLL Instructions DirectSOFT Handheld Programmer Keyst...

Page 401: ...and the 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 DirectSOFT Handheld Programmer Keystrokes SBR K3 X1 K3...

Page 402: ...nding MLS instruction The MLR reference is one less than the corresponding MLS Understanding Master Control Relays The Master Line Set MLS and Master Line Reset MLR instructions allow you to quickly e...

Page 403: ...on The last 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 DirectSOFT Handheld Pro...

Page 404: ...upt module or software interrupt the CPU will complete execution of the instruction it is currently processing in ladder logic then execute the designated interrupt routine Interrupt module interrupts...

Page 405: ...om the interrupt routine The Interrupt Return is required to terminate the interrupt routine Enable Interrupts ENI The Enable Interrupt instruction is programmed in the main body of the application pr...

Page 406: ...interrupt label INT O 1 The application ladder logic in the interrupt routine will be performed The CPU will return to the main body of the program after the IRT instruction is executed DirectSOFT IN...

Page 407: ...nd it must be Int0 Standard RLL Instructions DirectSOFT INT O0 X20 ENI DISI X20 END Y5 SETI X20 X35 RSTI Y0 Y17 IRT Handheld Programmer Keystrokes LD K104 X1 Load the constant value K10 into the lower...

Page 408: ...or when the hex format is required NOTE Status flags are valid only until another instruction uses the same flag In the following example when X1 is on the RD instruction will read six bytes of data f...

Page 409: ...n the hex format is required NOTE Status flags are valid only until another instruction uses the same flag In the following example when X1 is on the WT instruction will write six bytes of data to an...

Page 410: ...transferred into the first level of the accumulator stack Step 3 Load the address of the data to be read into the accumulator This parameter requires a HEX value Step 4 Insert the RX instruction which...

Page 411: ...pecifies 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 the specified data...

Page 412: ...t level of the accumulator stack Step 3 Load the address of the data in the master that is to be written to the network into the accumulator This parameter requires a HEX value Step 4 Insert the WX in...

Page 413: ...data will be written to V2001 8 5 3 4 V2002 1 9 3 6 V2003 9 5 7 1 V2004 1 4 2 3 V1777 X X X X V2000 3 4 5 7 Master CPU SP124 V2005 X X X X V2301 8 5 3 4 V2302 1 9 3 6 V2303 9 5 7 1 V2304 1 4 2 3 V227...

Page 414: ...tant or NCON Numerical constant instructions specify the constant K value for the corresponding data label area See Appendix G for the ASCII Conversion Table NOTE The FAULT instruction takes a conside...

Page 415: ...quivalent of the text to be displayed The HEX ASCII for a blank is 20 a 1 is 31 4 is 34 Instructions DirectSOFT Handheld Programmer Keystrokes DLBL K1 END FAULT K1 X1 ACON A SW NCON K 2031 NCON K 3436...

Page 416: ...ction If only one character is stored in a ACON a leading space will be printed in the Fault message Numerical Constant NCON The Numerical Constant instruction is used with the DLBL instruction to sto...

Page 417: ...used within a DLBL instruction to build a text message See the FAULT instruction for information on displaying messages DirectSOFT Handheld Programmer Keystrokes DLBL K1 END ACON A SW NCON K 2031 NCO...

Page 418: ...tup then Setup Secondary Comm Port Port From the port number list box at the top choose Port 2 Protocol Click the check box to the left of Non sequence and then you ll see the dialog box shown below M...

Page 419: ...2 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...

Page 420: ...erature 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 421: ...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 DL250...

Page 422: ...must be DL260 Port 2 K2 Slave Address specify a slave station address 1 to 247 Function Code The following Modbus function codes are supported by the MRX instruction 01 Read a group of coils 02 Read a...

Page 423: ...ter Memory Addresses MRX Slave Address Ranges Function Code Modbus Data Format Slave Address Range s 01 Read Coil 484 Mode 1 999 01 Read Coil 584 984 Mode 1 65535 02 Read Input Status 484 Mode 1001 19...

Page 424: ...e error bit is reset when an MRX or MWX instruction is executed Typically network communications will last longer than one CPU scan The program must wait for the communications to finish before starti...

Page 425: ...er must be DL260 Port 2 K2 Slave Address specify a slave station address 0 to 247 Function Code The following Modbus function codes are supported by the MWX instruction 05 Force Single coil 06 Preset...

Page 426: ...ave Memory Address MWX Master Memory Addresses MWX Slave Address Ranges Function Code Modbus Data Format Slave Address Range s 05 Force Sinlge Coil 484 Mode 1 999 05 Force Single Coil 584 984 Mode 1 6...

Page 427: ...or the communications to finish before starting the next transaction This rung does a Modbus write to the first holding register 40001 of the slave address 1 It will write the values to V2000 This par...

Page 428: ...nications protocol using the CPU ports H2 ECOM or D2 DCM The AIN instruction is not used in this case 3 If a DL260 PLC is a master on a network the Network Read instruction RX can be used to read embe...

Page 429: ...lly used to detect a change in an ASCII string Compared data types must be of the same format i e BCD ASCII etc Swap Bytes SWAPB usually used to swap V memory bytes on ASCII data that was written dire...

Page 430: ...Character Timeout bit will be set The bit will reset when the AIN instruction permissive bits are disabled None selection disables this feature Byte Swap swaps the high byte and low byte within each...

Page 431: ...dard RLL Instructions ASCII 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D AIN Fixed Length Examples Fixed Length example when the PLC is reading the port continuously and timing is not critical Fixed Lengt...

Page 432: ...when the AIN is enabled to the time the first character is received exceeds the set time the specified First Character Timeout bit will be set The bit will reset when the AIN instruction permissive b...

Page 433: ...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 DL260 Range Data Destination All V memory S...

Page 434: ...the Base Address before begining the search Direction Forward begins the search from lower numbered V memory registers to higher numbered V memory registers Reverse does the search from higher number...

Page 435: ...ined with a Forward Direction Seach 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 20h...

Page 436: ...0 11 12 13 14 A B C D AFIND Example Combined with AEX Instruction When an AIN instruction has executed its Complete bit can be used to trigger an AFIND instruction to search for a desired portion of t...

Page 437: ...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 438: ...ers to be compared to Number of Bytes specifies the length of each V memory group to be compared SP61 1 ON the result is equal SP61 0 OFF the result is not equal CMPV Example The CMPV instruction exec...

Page 439: ...tarting V memory Address the first V memory register of the series of registers specified will contain the ASCII string s length in bytes Starting V memory Address 1 the 2nd and subsequent registers w...

Page 440: ...00 D Print binary number in V2000 and V2001 for decimal number V2000 D B Print BCD data in V2000 and V2001 V2000 R Print floating point number in V2000 V2001 as real number V2000 E Print floating poin...

Page 441: ...printed VPRINT Bit element The following is used for printing to V memory the state of the designated bit in V memory or a control relay bit The bit element can be assigned by the designating point a...

Page 442: ...0 ranged by the double quotation marks Two hex numbers preceded by the dollar sign means an 8 bit ASCII character code Also two characters preceded by the dollar sign is interpreted according to the...

Page 443: ...rror code 499 will occur in the CPU when the print instruction contains invalid text or no quotations It is important to test your VPRINT instruction data during the application development VPRINT Exa...

Page 444: ...haracters specifies ASCII characters to be added to the end of the string for devices that require specific termination characters Byte Swap swaps the high byte and low byte within each V memory regis...

Page 445: ...cifies the number of bytes begining with the Starting Address to byte swap 230 240 250 1 260 Parameter DL260 Range Starting Address All V memory See page 3 56 Number of Bytes All V memory See page 3 5...

Page 446: ...er 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 communications p...

Page 447: ...Analog Scale 12 Bit BCD to BCD ANSCL IB 423 5 238 Analog Scale 12 Bit Binary to Binary ANSCLB IB 403 5 239 Filter Over Time BCD FILTER IB 422 5 240 Filter Over Time Binary FILTERB IB 402 5 242 Hi Low...

Page 448: ...32 5 302 ECOM100 Write Description ECWRDES IB 727 5 304 ECOM100 Write Gateway Address ECWRGWA IB 731 5 306 ECOM100 Write IP Address ECWRIP IB 723 5 308 ECOM100 Write Module ID ECWRMID IB 721 5 310 ECO...

Page 449: ...vice one location for each output channel enabled Since the IBox logic only executes on the first scan the instruction cannot have any input logic ANLGCMB Parameters Base K0 Local specifies which base...

Page 450: ...e analog values will be read from V2100 V2101 in BCD format NOTE An Analog I O IBox instruction is used without a permissive contact The top line will be identified in BOLD italics and the instruction...

Page 451: ...nabled Since this logic only executes on the first scan this IBox cannot have any input logic ANLGIN Parameters Base K0 Local specifies which base the analog module is in Slot specifies which PLC slot...

Page 452: ...er method for an analog input module that is installed in option slot 1 Eight input channels are enabled and the analog data will be written to V2000 V2007 in BCD format NOTE An Analog I O IBox instru...

Page 453: ...ne location for each output channel enabled Since this logic only executes on the first scan this IBox cannot have any input logic ANLGOUT Parameters Base K0 Local specifies which base the analog modu...

Page 454: ...nter method for an analog output module that is installed in option slot 3 Two output channels are enabled and the analog data will be read from V2100 V2101 in BCD format NOTE An Analog I O IBox instr...

Page 455: ...th bipolar or sign plus magnitude raw values ANSCL Parameters Raw 0 to 4095 BCD specifies the V memory location of the unipolar unsigned raw 0 to 4095 unscaled value High Engineering specifies the hig...

Page 456: ...de or signed 2 s complement raw values ANSCLB Parameters Raw 12 bit binary specifies the V memory location of the unipolar unsigned raw decimal unscaled value 12 bit binary 0 to 4095 decimal High Engi...

Page 457: ...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 FILTER...

Page 458: ...lowing 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 to...

Page 459: ...ed 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 FILTERB Paramet...

Page 460: ...wing 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 461: ...urned off regardless of the value of the Monitoring Value parameter HILOAL Parameters Monitoring Value BCD specifies the V memory location of the BCD value to be monitored High High Limit V memory loc...

Page 462: ...se 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 t...

Page 463: ...be turned off regardless of the value of the Monitoring Value parameter HILOALB Parameters Monitoring Value Binary specifies the V memory location of the Binary value to be monitored High High Limit V...

Page 464: ...gh 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 is...

Page 465: ...s back on BEFORE the Off Delay Time then the timer is RESET and the Output will remain On so you must continuously have NO power flow to the IBox for AT LEAST the specified Off Delay Time before the O...

Page 466: ...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 while C1...

Page 467: ...st have continuous power flow to the IBox for at least the specified On Delay Time before the Output turns On This IBox utilizes a Timer resource TMRF which cannot be used anywhere else in your progra...

Page 468: ...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 469: ...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 instruction is used...

Page 470: ...ifies the output that will be turned on off or toggled Internal State specifies a work bit that is used by the instruction PONOFF Example In the following example the PONOFF instruction is used to con...

Page 471: ...y 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 moved to MOVE...

Page 472: ...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 the From DWO...

Page 473: ...umber 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 Example In the fo...

Page 474: ...o 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 BCDTORD Exampl...

Page 475: ...iply 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 reference bin...

Page 476: ...tions 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 1000...

Page 477: ...095 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 bits You can...

Page 478: ...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 479: ...R2 5 SINR RADR V3000 R10 0 Every V memory reference MUST be able to fit into a double word Real formatted value MATHR Parameters Result DWORD specifies the location where the Real result of the mathem...

Page 480: ...itive absolute value RTOBCD Parameters Value DWORD Real specifies the Real Dword location or number that will be converted and rounded to a BCD number with decimal points Number of Decimal Points spec...

Page 481: ...ual its positive absolute value RTOBCDD Parameters Value DWORD Real specifies the Dword Real number that will be converted and rounded to a BCD number with decimal points Number of Decimal Points spec...

Page 482: ...CD 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 instruction is used...

Page 483: ...ord or constant that will be squared Result DWORD Binary specifies the location where the squared DWORD binary value will be placed SQUAREB Example In the following example the SQUAREB instruction is...

Page 484: ...ion or number that will be squared Result REAL DWORD specifies the location where the squared Real DWORD value will be placed SQUARER Example In the following example the SQUARER instruction is used t...

Page 485: ...Address specifies the starting address of a block of V memory location values to be added together BCD End Addr inclusive specifies the ending address of a block of V memory location values to be adde...

Page 486: ...s specifies the starting address of a block of V memory location values to be added together Binary End Addr inclusive specifies the ending address of a block of V memory location values to be added t...

Page 487: ...u can specify V2006 OR V2007 for the ending address and you will get the same result When enabled this instruction will add up all the numbers in the group so you may want to place a differential cont...

Page 488: ...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 th...

Page 489: ...d by the ECOM100 Configuration IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program In order for MOST ECOM100 IBoxes to function you must turn ON dip swit...

Page 490: ...V memory register must not be used anywhere else in the entire program The Workspace register is used to maintain state information about the ECOM100 along with proper sharing and interlocking with t...

Page 491: ...and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on the s...

Page 492: ...NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will be identified in BOLD italics and the instruction name and ID will be in BOLD characters Rung 2 On the 2nd scan...

Page 493: ...ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE...

Page 494: ...n the 2nd scan enable DHCP in the ECOM100 DHCP is the 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...

Page 495: ...ogical 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 specifi...

Page 496: ...mon 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will be identifie...

Page 497: ...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 Internet browser and browse to the ECOM100 s IP Address e g http 192...

Page 498: ...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 specif...

Page 499: ...owing what machine is down along with the date time stamp of when it went down The ECEMAIL is leading edge triggered not power flow driven similar to a counter input leg An email will be sent whenever...

Page 500: ...e in your program Either the Success or Error bit parameter will turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a...

Page 501: ...M100 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 ECx...

Page 502: ...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 503: ...ater than 1000 You are limited to approximately 100 characters bytes of setup data for the entire instruction So if needed you could divide the entire setup across multiple ECEMSUP IBoxes on a field b...

Page 504: ...rk 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 par...

Page 505: ...ne 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 the other ECxxxx IBoxes...

Page 506: ...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 507: ...cute use a NORMALLY CLOSED SP0 NOT First Scan to drive the power flow to the IBox In order for this ECOM100 IBox to function you must turn ON dip switch 7 on the ECOM100 circuit board ECIPSUP Paramete...

Page 508: ...502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will...

Page 509: ...a logical 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 spec...

Page 510: ...sing this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without...

Page 511: ...100 circuit board ECRDGWA 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 ECOM100 mod...

Page 512: ...specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permiss...

Page 513: ...100 circuit board ECRDIP 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 ECOM100 modu...

Page 514: ...ng this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a...

Page 515: ...cuit board ECRDMID 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 ECOM100 module mus...

Page 516: ...ogic 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 specific ECOM100 module NOTE An...

Page 517: ...l 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...

Page 518: ...IBoxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used...

Page 519: ...100 circuit board ECRDSNM 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 ECOM100 mod...

Page 520: ...this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a p...

Page 521: ...e Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on the second scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive...

Page 522: ...0 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will be identified in B...

Page 523: ...is HIGHLY RECOMMENDED that you only execute this IBox ONCE on the second scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the IB...

Page 524: ...s a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will be id...

Page 525: ...HIGHLY RECOMMENDED that you only execute this IBox ONCE on the second scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the IBox...

Page 526: ...02 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will b...

Page 527: ...that you only execute this IBox ONCE on the second scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the IBox In order for this...

Page 528: ...s a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will be id...

Page 529: ...Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on the second scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power...

Page 530: ...common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will be ident...

Page 531: ...t is HIGHLY RECOMMENDED that you only execute this IBox ONCE on the second scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the...

Page 532: ...02 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module NOTE An ECOM100 IBox instruction is used without a permissive contact The top line will b...

Page 533: ...Always On They will execute round robin style automatically ECRX Parameters ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes...

Page 534: ...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 the other ECxxxx IBoxes us...

Page 535: ...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 536: ...n by SP1 Always On They will execute round robin style automatically ECWX Parameters ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxx...

Page 537: ...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 the other...

Page 538: ...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 539: ...ETRX NETWX IBox instructions The 2nd parameter CPU Port or Slot 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 po...

Page 540: ...l 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 to reference the port or module Any NETRX or NET...

Page 541: ...and NETWX instructions in ONE RUNG driven by SP1 Always On They will execute round robin style automatically NETRX Parameters Network specifies the CPU port s DCM s ECOM s Network defined by the NETC...

Page 542: ...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 to reference the port or module Any NETRX or NETWX IBoxes tha...

Page 543: ...usy 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 drivin...

Page 544: ...these NETRX and NETWX instructions in ONE RUNG driven by SP1 Always On They will execute round robin style automatically NETWX Parameters Network specifies the CPU port s DCM s ECOM s Network defined...

Page 545: ...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 to reference the port or module Any NETRX or NETWX IBoxes tha...

Page 546: ...usy 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 drivin...

Page 547: ...parameter is an internal private register used by the CTRIO Config IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program CTRIO Parameters CTRIO specifies a...

Page 548: ...es V2000 V2017 for its Word Input data and B40416 0 B40423 15 for its Bit Input data The module uses V2100 V2123 for its Word Output data and B40515 0 B40522 15 for its Bit Output data The starting ad...

Page 549: ...re else in your program CTRADPT 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 instruction Entry T...

Page 550: ...control the command from Data View for testing purposes Turning on C0 will cause the CTRADPT instruction to add a new preset to the preset table for output 0 on the CTRIO in slot 2 The new preset will...

Page 551: ...telligent Box IBox 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 552: ...r internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRCLRT Parameters CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ou...

Page 553: ...in BOLD characters Rung 2 This rung is a sample method for enabling the CTRCLRT command A C bit is used to allow the programmer to control the command from Data View for testing purposes Turning on C...

Page 554: ...telligent Box IBox Instructions 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 allow...

Page 555: ...es 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 be used anywhe...

Page 556: ...iguration IBox instruction does not require a permissive contact The top line will be identified in BOLD italics and the instruction name and ID will be in BOLD characters Parameter DL205 Range CTRIO...

Page 557: ...cedure for this 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...

Page 558: ...telligent Box IBox 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 559: ...Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTREDRL Parameters CTRIO specifies a specific CTRIO module based on a...

Page 560: ...iguration IBox instruction does not require a permissive contact The top line will be identified in BOLD italics and the instruction name and ID will be in BOLD characters Parameter DL205 Range CTRIO...

Page 561: ...xample 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 10 an...

Page 562: ...telligent Box IBox 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 563: ...5 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 your program C...

Page 564: ...rough V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a permissive contact The top line will be identified in BOLD italics and the instruction name and ID will...

Page 565: ...set table but not as a file and use it for the output 0 In this case the single preset will be set at a count of 15 for output 0 Operating procedure for this example code is to load the CTRINPT_ex1 cw...

Page 566: ...telligent Box IBox 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 567: ...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 your p...

Page 568: ...rough V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a permissive contact The top line will be identified in BOLD italics and the instruction name and ID will...

Page 569: ...entry preset table 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 Op...

Page 570: ...telligent Box IBox 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 571: ...T be used anywhere else in your program CTRLDPR 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 572: ...IO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a permissive contact The...

Page 573: ...User Manual 4th Edition Rev B 5 356 Chapter 5 Intelligent Box IBox 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 574: ...File number not found in the file system 102 File type is incorrect for specified output function 103 Profile type is unknown 104 Specified input is not configured as a limit on this output 105 Specif...

Page 575: ...can be used The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a per...

Page 576: ...f 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 used anyw...

Page 577: ...a permissive contact The top line will be identified in BOLD italics and the instruction name and ID will be in BOLD characters Rung 2 This CTRIO Run To Limit Mode IBox sets up Output 2 in CTRIO 1 to...

Page 578: ...Edition Rev B 5 361 Chapter 5 Intelligent Box IBox 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 579: ...rkspace 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 defined numb...

Page 580: ...input data and V2030 through V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a permissive contact The top line will be identified in BOLD italics and the instr...

Page 581: ...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 p...

Page 582: ...es the output pulse rate H2 CTRIO 20Hz 25KHz H2 CTRIO2 20Hz 250 KHz Duty Cycle specifies the of on time versus off time This is a hex number Default of 0 is 50 also entering 50 will yield 50 50 duty c...

Page 583: ...The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a permissive con...

Page 584: ...h Edition Rev B 5 367 Chapter 5 Intelligent Box IBox 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 an...

Page 585: ...ace 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 defined number s...

Page 586: ...has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data NOTE The CTRIO Configuration IBox instruction does not require a permissive contact The to...

Page 587: ...telligent Box IBox 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 editted use a Write File To ROM IBox to save the edited table back to...

Reviews: