background image

Index

I–23

Timer OnDelay (TON), 6-11

execution times, 6-11

instruction parameters, C-13

using status bits, 6-11

valid addressing modes, C-13

valid file types, C-13

timing diagram, message instruction, 13-8
TND, Temporary End, 10-8
TOD, Convert to BCD, 9-3
TOF, Timer OffDelay, 6-12
TON, Timer OnDelay, 6-11
troubleshooting

automatically clearing faults, 14-6

contacting AllenBradley for assistance,

P-6, 14-10

controller error recovery model, 14-5

determining controller faults, 14-2

identifying controller faults, 14-6

manually clearing faults, 14-6

understanding the controller LED status,

14-2

using the fault routine, 14-6

U

understanding file organization, 4-4

addressing data files, 4-10

numeric constants, 4-13

processor file overview, 4-4

specifying indexed addresses, 4-12

specifying logical addresses, 4-10

using the file indicator (#), 4-13

up counter

operation, 12-8

overview, 12-7

up counter with reset and hold

operation, 12-8

overview, 12-7

update times, analog inputs, 5-3
updating the highspeed counter accumulator,

12-24

user interrupt latency, B-24

V

valid addressing modes, C-1
varistors

example, 1-9

recommended, 1-9

voltage ranges, discrete, 2-7

W

wire types, 2-4
wiring

analog, 2-21

analog channels, 2-22

wiring diagrams, 2-7

1761L10BWA, 2-9

1761L10BWB, 2-12

1761L16AWA, 2-7

1761L16BBB, 2-16

1761L16BWA, 2-10

1761L16BWB, 2-13

1761L20AWA5A, 2-18

1761L20BWA5A, 2-19

1761L20BWB5A, 2-20

1761L32AAA, 2-15

1761L32AWA, 2-8

1761L32BBB, 2-17

1761L32BWA, 2-11

1761L32BWB, 2-14

wiring recommendations, 2-4

X

XIC, Examine if Closed, 6-4
XIO, Examine if Open, 6-4
XOR, Exclusive Or, 9-20

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Summary of Contents for MicroLogix 1000

Page 1: ...User Manual MicroLogix 1000 Programmable Controllers Bulletin 1761 Controllers Allen Bradley efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 2: ...ley office describes some important differences between solid state equipment and electromechanical devices that should be taken into consideration when applying products such as those described in th...

Page 3: ...Spacing 1 14 Mounting the Controller 1 14 2 Wiring Your Controller 2 1 Grounding Guidelines 2 2 Sinking and Sourcing Circuits 2 3 Wiring Recommendations 2 4 Wiring Diagrams Discrete Input and Output...

Page 4: ...5 3 Converting Analog Data 5 5 6 Using Basic Instructions 6 1 About the Basic Instructions 6 2 Bit Instructions Overview 6 3 Examine if Closed XIC 6 4 Examine if Open XIO 6 4 Output Energize OTE 6 5 O...

Page 5: ...10 Clear CLR 8 11 Square Root SQR 8 11 Scale Data SCL 8 12 Math Instructions in the Paper Drilling Machine Application Example 8 14 9 Using Data Handling Instructions 9 1 About the Data Handling Inst...

Page 6: ...tructions Overview 11 7 Sequencer Output SQO and Sequencer Compare SQC 11 7 Sequencer Load SQL 11 13 Selectable Timed Interrupt STI Function Overview 11 15 Selectable Timed Disable STD and Enable STE...

Page 7: ...6 Calling Allen Bradley for Assistance 14 10 Reference A Hardware Reference A 1 Controller Specifications A 2 Controller Dimensions A 9 Replacement Parts A 10 B Programming Reference B 1 Controller St...

Page 8: ...quencer Application Example E 19 Bottle Line Example E 21 Pick and Place Machine Example E 24 RPM Calculation Application Example E 28 On Off Circuit Application Example E 34 Spray Booth Application E...

Page 9: ...w Information See Power supply inrush page 1 13 Updated Information Changes from the previous release of this manual that require you to reference information differently are as follows The DeviceNet...

Page 10: ...Preface MicroLogix 1000 Programmable Controllers User Manual soc ii Notes efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 11: ...liarize yourself with the rest of the manual It provides information concerning who should use this manual the purpose of this manual conventions used in this manual Allen Bradley support efesotomasyo...

Page 12: ...ollers It describes the procedures you use to install wire program and troubleshoot your controller This manual explains how to install and wire your controllers gives you an overview of the MicroLogi...

Page 13: ...son Instructions Describes how to use the instructions to compare values of data in your ladder logic program Programming 8 Using Math Instructions Describes how to use the ladder logic instructions t...

Page 14: ...f the instructions along with their parameters and valid file types R f c Appendix D Understanding the Communication Protocols Contains descriptions of the DF1 protocol and DH 485 network Appendix E A...

Page 15: ...d connect an AIC This manual also contains information on network wiring Advanced Interface Converter AIC User Manual 1761 6 4 Information on how to install configure and commission a DNI DeviceNet In...

Page 16: ...ocal Product Support Contact your local Allen Bradley representative for sales and order support product technical training warranty support support service agreements Technical Product Assistance If...

Page 17: ...ou require are a Flat head or Phillips head screwdriver and drill Topics include compliance to European Union Directives hardware overview master control relay surge suppressors safety considerations...

Page 18: ...ectives EMC Directive This product is tested to meet Council Directive 89 336 EEC Electromagnetic Compatibility EMC and the following standards in whole or in part documented in a technical constructi...

Page 19: ...of the following 1761 L20AWA 5A Bulletin Number Base Unit Unit I O Count 20 Input Signal A 120V ac B 24V dc Power Supply A 120 240V ac B 24V dc Output Type W Relay B MOSFET A Triac Analog I O Analog...

Page 20: ...circuits Place the main power disconnect switch where operators and maintenance personnel have quick and easy access to it If you mount a disconnect switch inside the controller enclosure place the sw...

Page 21: ...cable local codes concerning the placement and labeling of emergency stop switches Install emergency stop switches and the master control relay in your system Make certain that relay contacts have a s...

Page 22: ...ols X1 230V ac 230V ac Disconnect L1 L2 Isolation Transformer Operation of either of these contacts will remove power from the adapter external I O circuits stopping machine motion MCR MCR MCR Emergen...

Page 23: ...CR Emergency Stop Push Button Overtravel Limit Switch Stop Start Suppr MCR Lo Hi Line Terminals Connect to 115V ac terminals of Power Supply dc Power Supply Use N E C Class 2 for UL Listing MCR X1 X2...

Page 24: ...by interrupting the current to that inductive device and will prevent electrical noise from radiating into system wiring The following diagram shows an output with a suppression device We recommend th...

Page 25: ...application The suppressors we recommend for triac outputs when switching 120V ac inductive loads are a Harris MOV part number V175 LA10A or an Allen Bradley MOV catalog number 599 K04 or 599 KA04 Co...

Page 26: ...Bulletin 700 Type R RM Relays ac coil None Required Bulletin 700 Type R Relay Bulletin 700 Type RM Relay 12V dc 12V dc 700 N22 700 N28 Bulletin 700 Type R Relay Bulletin 700 Type RM Relay 24V dc 24V d...

Page 27: ...o it In addition to disconnecting electrical power all other sources of power pneumatic and hydraulic should be de energized before working on a machine or process controlled by a controller Safety Ci...

Page 28: ...pply should be powered directly from the fused secondary of the transformer Power to the dc input and output circuits is connected through a set of master control relay contacts Periodic Tests of Mast...

Page 29: ...on the input of the MicroLogix is charged up quickly If the power source cannot supply high inrush current the only effect is that the MicroLogix input capacitor charges up more slowly The following c...

Page 30: ...rred to as a power supply shutdown Input States on Power Down The power supply hold up time as described above is generally longer than the turn on and turn off times of the inputs Because of this the...

Page 31: ...e the enclosure In this case place blower fans inside the enclosure to assist in air circulation and to reduce hot spots near the controller Additional cooling provisions might be necessary when high...

Page 32: ...n or equal to 50 8 mm 2 in B A Top Bottom Side Side Mounting the Controller This equipment is suitable for Class I Division 2 Groups A B C D or non hazardous locations only when product or packaging i...

Page 33: ...he rail snap the controller into position 4 Leave the protective wrap attached until you are finished wiring the controller 2 Hook the top slot over the DIN rail 20146 Side View DIN Rail Protective Wr...

Page 34: ...ing Mounting Your Controller Vertically Your controller can also be mounted vertically within an enclosure using mounting screws or a DIN rail To insure the stability of your controller we recommend u...

Page 35: ...This chapter describes how to wire your controller Topics include grounding guidelines sinking and sourcing circuits wiring recommendations wiring diagrams input voltage ranges and output voltage ran...

Page 36: ...y or to the RS 232 channel must be referenced to chassis ground or floating Failure to follow this procedure may result in property damage or personal injury Chassis ground user 24V ground and RS 232...

Page 37: ...Connect the power supply VDC to the MicroLogix DC COM terminal Sinking and Sourcing Wiring Examples I 9 I 10 DC COM I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 11 I 12 I 13 I 14 I 15 I 16 I 17 I 18 I 19 DC...

Page 38: ...or Sinking VDC for Sinking VDC for Sourcing Sinking Inputs Sourcing Inputs Sinking Inputs Sourcing Inputs 1761 L32BWB L32BBB Wiring Diagrams also apply to 1761 L20BWB 5A L16BWB L10BWB L16BBB Wiring Re...

Page 39: ...ing AMP spade lugs part number 53120 1 if using 22 16 AWG or part number 53123 1 if using 16 14 AWG Note If you use wires without lugs make sure the wires are securely captured by the pressure plate T...

Page 40: ...50 mm 2 in between I O wiring ducts or terminal strips and the controller Route incoming power to the controller by a path separate from the device wiring Where paths must cross their intersection sho...

Page 41: ...V dc sensor power source should not be used to power output circuits It should only be used to power input devices e g sensors switches Refer to page 1 4 for information on MCR wiring in output circui...

Page 42: ...2 I 3 I 4 I 5 I 6 I 7 I 8 I 11 I 12 I 13 I 14 I 15 I 16 I 17 I 18 AC COM I 19 L1 L2 N L1 CR CR CR CR CR VAC 2 VAC 2 COM VDC 1 VDC 1 COM VDC 2 VDC 2 COM CR CR CR CR VDC 3 VDC 3 COM CR 79 132V ac L1 L2...

Page 43: ...VDC O 1 VAC VDC O 2 O 3 VAC VDC L2 N 85 264 VAC CR CR CR VAC 2 VAC 2 COM VDC 1 VDC 1 COM VDC 2 VDC 3 COM CR VDC 2 COM VDC 3 VAC 1 VAC 1 COM NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT US...

Page 44: ...C COM VDC VDC Com VDC 14 30V dc L1 VAC VDC O 0 VAC VDC O 1 VAC VDC O 2 O 3 VAC VDC O 4 L2 N O 5 85 264 VAC CR CR CR VAC 2 VAC 2 COM VDC 1 VDC 1 COM VDC 2 VDC 3 COM VAC VDC CR VDC 2 COM VDC 3 VAC 1 VAC...

Page 45: ...V dc DC OUT 24V VAC VDC O 0 VAC VDC O 1 VAC VDC O 2 O 3 VAC VDC O 4 O 5 O 6 VAC VDC O 8 O 7 O 9 O 10 O 11 CR CR CR CR CR VAC 2 VAC 2 COM VDC 1 VDC 1 COM VDC 2 VDC 2 COM CR CR CR CR VDC 3 VDC 3 COM CR...

Page 46: ...2 O 3 VAC VDC I 0 I 1 I 2 I 3 I 4 I 5 DC COM DC COM VDC Com VDC 14 30 VDC VDC Com VDC 14 30 VDC CR VAC 1 VAC 1 COM VDC 2 VDC 2 COM VDC 3 CR VDC 3 COM VDC 1 VDC 1 COM NOT USED NOT USED NOT USED NOT USE...

Page 47: ...I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 DC COM DC COM VAC VDC DC IN 24V VDC Com VDC 14 30V dc VDC Com VDC 14 30V dc CR CR CR VAC 1 VAC 1 COM VDC 2 VDC 2 COM VDC 3 VDC 4 COM CR VDC 3 COM VDC 4 VDC 1 VDC 1...

Page 48: ...I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 11 I 12 I 13 I 14 I 15 I 16 I 17 I 18 DC COM I 19 VDC Com VDC 14 30V dc CR CR CR CR CR VAC 1 VAC 1 COM VDC 2 VDC 2 COM VDC 3 VDC 3 COM CR CR CR CR VDC 4 VDC 4 COM CR...

Page 49: ...6 I 7 I 8 I 11 I 12 I 13 I 14 I 15 I 16 I 17 I 18 AC COM I 19 L1 L2 N L1 CR CR CR CR CR VAC 1 VAC 1 COM VAC 2 VAC 2 COM VAC 3 VAC 3 COM CR CR CR CR VAC 4 VAC 4 COM CR 79 132V ac L1 L2 N 85 264 VAC VA...

Page 50: ...24V O 2 O 3 O 4 O 5 I 9 I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 DC COM DC COM DC 24V NOT USED VDC Com VDC 14 30V dc VDC Com VDC 14 30V dc CR VAC 1 VAC 1 COM VAC 2 VAC 2 COM VDC 2 VDC 2 COM VDC 1 VDC 1 COM...

Page 51: ...I 4 I 5 I 6 I 7 I 8 I 11 I 12 I 13 I 14 I 15 I 16 I 17 I 18 DC COM I 19 NOT USED VDC Com VDC 14 30V dc VDC VDC Com 14 30V dc CR VAC 1 VAC 1 COM VAC 2 VAC 2 COM VDC 2 VDC 2 COM VDC 1 VDC 1 COM DC IN 2...

Page 52: ...COM I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 11 AC COM L1 L2 N L1 CR CR CR CR CR VAC 2 VAC 2 COM VDC 1 VDC 1 COM VDC 2 VDC 2 COM CR L1 L2 N 85 264 VAC VAC 1 VAC 1 COM IA IA 3 I IA 2 I IA SHD IA 1 V IA 0...

Page 53: ...C VDC O 2 O 3 VAC VDC O 4 O 5 O 6 NOT USED O 7 CR CR CR CR CR VAC 2 VAC 2 COM VDC 1 VDC 1 COM VDC 2 VDC 2 COM CR L1 L2 N 85 264 VAC VAC 1 VAC 1 COM VDC IA IA 3 I IA 2 I IA IA 1 V IA SHD IA 0 V IA SHD...

Page 54: ...T USED O 7 I 9 I 10 DC COM I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 11 DC COM VDC VDC 14 30V dc CR CR CR CR CR VAC 1 VAC 1 COM VDC 2 VDC 2 COM VDC 3 VDC 3 COM CR VDC 1 VDC 1 COM VDC VDC DC IN 24V IA IA 3...

Page 55: ...ls making sure that the drain wire and foil shield are properly earth grounded at one end of the cable route the Belden cable separate from any other wiring Additional noise immunity can be obtained b...

Page 56: ...sor 4 meter V Voltage V Voltage I Current I Current You can configure either voltage or current output operation For increased noise immunity connect a ground wire directly from the shield terminals t...

Page 57: ...without damage to the controller The analog current inputs are protected to withstand the application of 50 mA without damage Analog Voltage Output Range Operating Range 0V dc 10V dc Analog Current O...

Page 58: ...the high speed counter Shielded cable is required for high speed input signals 0 3 when the filter setting is set to either 0 10 ms or 0 075 ms We recommend Belden 9503 or equivalent for lengths up to...

Page 59: ...to connect your controller depends on what type of system you are employing This chapter also describes how the controller establishes communication with the appropriate network For information on Se...

Page 60: ...ces It is important that you understand your personal computer s grounding system before connecting to the controller An optical isolator is recommended between the controller and your personal comput...

Page 61: ...Controller Using a Modem You can also use modems to connect a personal computer to one MicroLogix 1000 controller using DF1 full duplex protocol or to multiple controllers using DF1 half duplex protoc...

Page 62: ...m Controller Null Modem 1761 CBL PM02 Cable Modem Cable We recommend using an AIC catalog number 1761 NET AIC as your optical isolator See page 3 11 for specific AIC cabling information Constructing Y...

Page 63: ...MicroLogix 1000 Series C or later discrete or MicroLogix 1000 analog AIC 1761 NET AIC 24V dc user supply needed if not connected to a MicroLogix 1000 controller DB 9 RS 232 port mini DIN 8 RS 232 port...

Page 64: ...from the industrial environment on network communication The communication cable consists of a number of cable segments daisy chained together The total length of the cable segments cannot exceed 1219...

Page 65: ...den 3106A or 9842 Belden 3106A or 9842 Belden 3106A or 9842 Incorrect Single Cable Connection 6 Termination 5 A 4 B 3 Common 2 Shield 1 Chassis Ground White with Orange Stripes Orange with White Strip...

Page 66: ...rminal 4 Data B White Orange Orange with White Stripe Terminal 5 Data A To prevent confusion when installing the communication cable cut back the white with blue stripe wire immediately after the the...

Page 67: ...1000 controller be removed from the AIC The figure that follows shows the external wiring connections and specifications of the AIC AIC Advanced Interface Converter 1761 NET AIC Item Description Port...

Page 68: ...rk Connection MicroLogix DH 485 Network PC connection from port 1 or port 2 to MicroLogix 1761 CBL AM00 or 1761 CBL HM02 AIC 1761 NET AIC 24V dc user supply needed if not connected to a MicroLogix 100...

Page 69: ...the AIC see the Advanced Interface Converter AIC and DeviceNet Interface DNI Installation Instructions Publication 1761 5 11 Constructing Your Own Modem Cable If you construct your own modem cable the...

Page 70: ...ernal Power Supply Required Power Selection Switch Setting 1761 CBL AS03 1761 CBL AS09 3m 9 8 ft 9 5m 31 17 ft SLC 500 Fixed SLC 5 01 SLC 5 02 and SLC 5 03 processors port 3 yes external 1761 CBL AS09...

Page 71: ...adapter port 2 yes external DTAM Plus DTAM Micro port 2 yes external PC COM port port 2 yes external user supplied cable Cable Length Connections from to AIC External Power Supply Required Power Sele...

Page 72: ...RxD received data RxD cable shield transmitted data TxD transmitted data TxD signal ground DTE ready DTR DTE ready DTR DH 485 data B signal common GRD signal common GRD DH 485 data A DCE ready DSR DC...

Page 73: ...d terminal to the nearest earth ground This connection must be made whether or not an external 24V dc supply is used In normal operation with the MicroLogix 1000 programmable controller connected to p...

Page 74: ...supply to the screw terminals on the bottom of the AIC If you use an external power supply it must be 24V dc Permanent damage will result if miswired with the wrong power source Installing and Attachi...

Page 75: ...roLogix 1000 analog controllers perform automatic protocol switching between DH 485 and the configured DF1 protocol The controller cannot automatically switch between DF1 full duplex and DF1 half dupl...

Page 76: ...write on area to mark the DeviceNet node Address DeviceNet Port 1 Replacement connector part no 1761 RPL 0000 RS 232 Port 2 V CAN_L SHIEL D CAN_H V NET MOD NODE DANGER GND TX RX DNI DeviceNet Interfac...

Page 77: ...Read this chapter for basic information about principles of machine control understanding file organization and addressing understanding how processor files are stored and accessed applying ladder lo...

Page 78: ...input devices such as pushbuttons proximity sensors limit switches and outputs which you wire to output devices such as motor starters solid state relays and indicator lights Programming Device User I...

Page 79: ...used and each instruction s status during the scan time Note Subroutine and interrupt instructions within your logic program may cause deviations in the way the operating cycle is sequenced output sca...

Page 80: ...ram Files 14 Maximum 8 Maximum The programming device stores processor files on hard disk or floppy disk Monitoring and editing of processor files is done in the workspace of the computer After you se...

Page 81: ...outine Ladder Program files 6 15 These are used according to subroutine instructions residing in the main ladder program file or other subroutine files Data Files Data files contain the status informa...

Page 82: ...ler uses two devices for storing processor files RAM and EEPROM The RAM provides easy access storage i e its data is lost on a power down while the EEPROM provides long term storage i e its data is no...

Page 83: ...rogram to disk before downloading it to a micro controller Normal Operation During normal operation both the micro controller and your programming device can access the processor files stored in the R...

Page 84: ...is lost This may occur due to an unexpected reset or a hardware problem CPU EEPROM Backup Data Retentive Data Program Files RAM CPU Workspace Retentive Data Program Files Programming Device Power Up...

Page 85: ...sed as the retentive data In addition status file bit S2 5 8 retentive data lost is set and a recoverable major error occurs when going to run CPU EEPROM Backup Data Retentive Data Program Files RAM C...

Page 86: ...Delimiters include the colon slash and period Specifying Logical Addresses The format of a logical address xf e corresponds directly to the location in data storage Where Is the x File type O output...

Page 87: ...mber Bit Delimiter Bit Number 7 N 2 5 Bit within a bit file File Type File Number Bit Delimiter Bit Number B 3 31 Bit files are bit stream continuous files and therefore you can address them in two wa...

Page 88: ...se guidelines Make sure the index value positive or negative does not cause the indexed address to exceed the file type boundary When an instruction uses more than two indexed addresses the processor...

Page 89: ...IFO Unload LFL LFU SQO SQC SQL LIFO Load LIFO Unload Sequencer Output Sequencer Compare Sequencer Load If you are using file instructions and also indexed addressing make sure that you monitor and or...

Page 90: ...based on electrical relay diagrams Instead of having electrical rung continuity ladder logic is looking for logical rung continuity A ladder diagram identifies each of the elements in an electromechan...

Page 91: ...e if open instruction if PB2 was a normally open electromechanical circuit The table below shows how these circuits operate The table shows all possible conditions for the electromechanical circuit th...

Page 92: ...the functional specifications Do you need Special interrupt routines High speed counting features Sequencing Operations FIFO or LIFO stack operations Make sure I O addresses match correct input and o...

Page 93: ...hapter describes the operation of the MicroLogix 1000 analog controllers Topics include I O Image I O Configuration Input Filter and Update Times Converting Analog Data Programming efesotomasyon com A...

Page 94: ...ace are reset during each input scan Input words 2 and 3 are reserved and are not updated by the controller These inputs have no direct effect on controller operation but they can be modified like oth...

Page 95: ...r current the current output terminal is active and the voltage output terminal is inactive When the system is not in Run mode both the voltage and current outputs are inactive Input Filter and Update...

Page 96: ...ond Example 2 1 channel enabled with 250 Hz filter selected Maximum Update Time ladder scan time 4 ms Input Channel Filtering The analog input channels incorporate on board signal conditioning The pur...

Page 97: ...and Data Word values using the nominal transfer function formula N Iin x 32767 21 where Iin analog signal is in milliamperes mA N Vin x 32767 10 5 where Vin analog signal is in volts V N Iout 4 mA x 3...

Page 98: ...of 4096 is in the input image the calculated value is 4096 2 625 mA It should be noted that the actual value may vary within the accuracy limitations of the module 21 mA 32 767 Converting Analog Outpu...

Page 99: ...in use Bit Instructions Instruction Purpose Page Mnemonic Name Purpose Page XIC Examine if Closed Examines a bit for an On condition 6 4 XIO Examine if Open Examines a bit for an Off condition 6 4 OTE...

Page 100: ...or when power cycle occurs 6 18 CTD Count Down Decrements the accumulate value at each false to true transition and retains the accumulated value when the instruction goes false or when power cycle oc...

Page 101: ...utput instructions is not recommended Bit instructions are used with the following data files Output and input data files These represent external outputs and inputs The status data file file 2 The bi...

Page 102: ...0 0 2 a timer controlling a light addressed as T4 3 DN Examine if Open XIO Use an XIO instruction in your ladder program to determine if a bit is Off When the instruction is executed if the bit addres...

Page 103: ...il the subroutine is scanned again Output Latch OTL and Output Unlatch OTU OTL and OTU are retentive output instructions OTL can only turn on a bit while OTU can only turn off a bit These instructions...

Page 104: ...er to turn on the addressed bit Thereafter the bit remains on regardless of the rung condition until the bit is turned off typically by a OTU instruction in another rung Using OTU When you assign an a...

Page 105: ...ers The address assigned to the OSR instruction is not the one shot address referenced by your program nor does it indicate the state of the OSR instruction This address allows the OSR instruction to...

Page 106: ...timer was last reset When enabled the timer updates this continually Preset Value PRE Specifies the value which the timer must reach before the controller sets the done bit When the accumulated value...

Page 107: ...ubroutine JSR or Subroutine SBR instructions skip over the rung containing a timer instruction while the timer is timing If the skip duration is within 2 5 seconds no time will be lost if the skip dur...

Page 108: ...4 0 14 or T4 0 TT Timer timing bit T4 0 13 or T4 0 DN Done bit T4 0 1 or T4 0 PRE Preset value of the timer T4 0 2 or T4 0 ACC Accumulator value of the timer T4 0 1 0 or T4 0 PRE 0 Bit 0 of the preset...

Page 109: ...rung conditions go false Timer Timing Bit TT bit 15 rung conditions are true and the accumulated value is less than the preset value rung conditions go false or when the done bit is set When the contr...

Page 110: ...g conditions go false and the accumulated value is greater than or equal to the preset value Timer Timing Bit TT bit 14 rung conditions are false and the accumulated value is less than the preset valu...

Page 111: ...e is reset If the rung is false TT bit is reset DN bit is reset EN bit is reset ACC value is set equal to the preset value The Reset RES instruction cannot be used with the TOF instruction because RES...

Page 112: ...lue the appropriate RES instruction is enabled Timer Timing Bit TT bit 14 rung conditions are true and the accumulated value is less than the preset value rung conditions go false or when the done bit...

Page 113: ...of a 3 word data file element Word 0 is the control word containing the status bits of the instruction Word 1 is the preset value Word 2 is the accumulated value The control word for counter instructi...

Page 114: ...values for counters range from 32 768 to 32 767 and are stored as signed integers Negative values are stored in two s complement form Addressing Structure Address bits and words using the format Cf e...

Page 115: ...0 or C5 0 PRE 0 Bit 0 of the preset value C5 0 2 0 or C5 0 ACC 0 Bit 0 of the accumulated value How Counters Work The figure below demonstrates how a counter works The count value must remain in the...

Page 116: ...sing Status Bits This Bit Is Set When And Remains Set Until One of the Following Count Up Overflow Bit OV bit 12 accumulated value wraps around to 32 768 from 32 767 and continues counting up from the...

Page 117: ...32 767 and continues counting down from there a RES instruction having the same address as the CTD instruction is enabled OR the count is incremented greater than or equal to 32 767 with a CTU instru...

Page 118: ...f using this instruction to reset the HSC accumulator see page 12 21 When resetting a counter if the RES instruction is enabled and the counter rung is enabled the CU or CD bit is reset If the counter...

Page 119: ...e program s start up logic They determine the conditions necessary to start the machine in motion by monitoring the start and stop push buttons When the start push button is pressed it enables the con...

Page 120: ...d position home This rung also stops the conveyor when the stop button is pressed START Drill STOP Machine Button Home LS Button RUN Latch I 0 I 0 I 0 B3 6 5 7 0 Machine RUN Latch B3 0 Rung 2 4 Applie...

Page 121: ...is set for the entire drilling operation the OSR is required to be able to turn off the forward signal so the drill can retract Drill Drill Subr Drill Sequence OSR Forward Start B3 B3 O 0 OSR L 32 48...

Page 122: ...mit switch When this happens the DRILL RETRACT signal is turned off the DRILL SEQUENCE START bit is turned off to indicate the drilling process is complete and the conveyor is restarted Drill Drill Dr...

Page 123: ...ual Test whether two values are equal 7 3 NEQ Not Equal Test whether one value is not equal to a second val ue 7 3 LES Less Than Test whether one value is less than a second value 7 3 LEQ Less Than or...

Page 124: ...the comparison instruction is true To learn more about the compare instructions we suggest that you read the Compare Instructions Overview that follows Comparison Instructions Overview The following g...

Page 125: ...be either a constant or word address Negative integers are stored in two s complement form Less Than LES Use the LES instruction to test whether one value source A is less than another source B If the...

Page 126: ...to the value of source B the instruction is logically false Source A must be a word address Source B can be either a constant or word address Negative integers are stored in two s complement form Gre...

Page 127: ...ich the instruction moves data The mask can be a hexadecimal value constant Compare is an integer value or the address of the reference If the 16 bits of data at the source address are equal to the 16...

Page 128: ...ters can be either a constant or a word address True False Status of the Instruction If the Low Limit has a value equal to or less than the High Limit the instruction is true when the Test value is be...

Page 129: ...either limit or outside the limits the instruction is true as shown below 8 5 32 768 through 5 and 8 through 32 767 6 and 7 Example low limit greater than high limit Low Limit High Limit Instruction...

Page 130: ...rung is indicated below by the shading Notice that text has also been added to the rung comment Note Do not add this instruction if you are using a 16 I O controller Address O 0 6 is only valid for 3...

Page 131: ...bwheel for Thickness in 1 4 Tool Change Reset 5 Hole 7 Hole 3 Hole I 9 I 10 I 11 I 14 Keyswitch I 8 Rung 7 0 Examines the number of 1 4 in thousands that have accumulated over the life of the current...

Page 132: ...ge 1 4 in 1 4 in drill increments increments bit have have soon occurred occurred B3 B3 O 0 16 17 4 100 000 102 000 1 28 1 4 in 1 4 in second increments increments free have have running occurred occu...

Page 133: ...destination 8 4 SUB Subtract Subtracts source B from source A and stores the result in the destination 8 5 MUL Multiply Multiplies source A by source B and stores the result in the destination 8 8 DIV...

Page 134: ...verview The following general information applies to math instructions Using Indexed Word Addresses You have the option of using indexed word addresses for instruction parameters specifying word addre...

Page 135: ...e overflow point and the END or TND statement Changes to the Math Register S 13 and S 14 Status word S 13 contains the least significant word of the 32 bit values of the MUL and DDV instructions It co...

Page 136: ...otherwise resets S 0 1 Overflow V sets if overflow is detected at destination otherwise resets On overflow the minor error flag is also set The value 32 768 or 32 767 is placed in the destination If S...

Page 137: ...esets S 0 1 Overflow V sets if underflow otherwise reset On underflow the minor error flag is also set The value 32 768 or 32 767 is placed in the destination If S 2 14 math overflow selection bit is...

Page 138: ...or NEG instruction cannot be represented in the destination address due to math underflow or overflow The overflow bit S 0 1 is set The overflow trap bit S 5 0 is set The destination address contains...

Page 139: ...ecimal B3 3 B3 2 B3 1 B3 3 B3 2 0000 0000 0000 0011 0001 1001 0100 0000 0101 0101 1010 1000 0000 0000 0000 0011 0110 1110 1110 1000 0003 1940 55A8 0003 6EE8 203 072 21 928 225 000 Addend Addend Sum If...

Page 140: ...V sets if overflow is detected at destination otherwise resets On overflow the minor error flag is also set The value 32 768 or 32 767 is placed in the destination If S 2 14 math overflow selection bi...

Page 141: ...g is also set The value 32 767 is placed in the destination If S 2 14 math overflow selection bit is set then the unsigned truncated overflow remains in the destination S 0 2 Zero Z sets if result is...

Page 142: ...f result is greater than 32 767 or less than 32 768 otherwise resets On overflow the minor error flag is also set The value 32 767 is placed in the destination S 0 2 Zero Z sets if result is zero othe...

Page 143: ...truction calculates the square root of a negative number without overflow or faults In applications where the source value may be negative use a comparison instruction to evaluate the source value to...

Page 144: ...can be a constant or a word address Offset can either be a constant or a word address Updates to Arithmetic Status Bits With this Bit The Controller S 0 0 Carry C is reserved S 0 1 Overflow V sets if...

Page 145: ...0 to 100 percent Application Example Convert Voltage Input to Percent Scaled Value percent Input Value 0V 31 207 10V 100 Scaled Max Scaled Min Input Min Input Max 0 Calculating the Linear Relationshi...

Page 146: ...tch Thousands I 0 CLR CLEAR 8 Dest N7 11 0 1 4 in increments CLR CLEAR Dest N7 10 0 Rung 7 5 Keeps a running total of how many inches of paper have been drilled with the current drill bit Every time a...

Page 147: ...initializes the 1 4 in increments accumulator to how many increments were beyond 1000 1 4 in increments GEQ SUB GRTR THAN OR EQUAL SUBTRACT Source A N7 10 Source A N7 10 0 0 Source B 1000 Source B 100...

Page 148: ...Preface MicroLogix 1000 Programmable Controllers User Manual 8 16 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 149: ...nteger source value to BCD format and stores it in the destination 9 3 FRD Convert from BCD Converts the BCD source value to an integer and stores it in the destination 9 5 DCD Decode 4 to 1 of 16 Dec...

Page 150: ...loads a word from the stack on successive false true transitions The first word loaded is the first to be unloaded 9 25 LFL and LFU LIFO Load and LIFO Unload The LFL instruction loads a word into a LI...

Page 151: ...Carry C always resets S 0 1 Overflow V sets if the BCD result is larger than 9999 On overflow the minor error flag is also set S 0 2 Zero Z sets if destination value is zero S 0 3 Sign S sets if the...

Page 152: ...d to BCD and the BCD equivalent is stored in N7 0 The maximum BCD value is 9999 TOD TO BCD Source N7 3 9760 Dest N7 0 9760 MPS displays the destination value in BCD format 9 7 6 0 9 7 6 0 N7 3 Decimal...

Page 153: ...3 Sign S always resets Note Always provide ladder logic filtering of all BCD input devices prior to performing the FRD instruction The slightest difference in point to point input filter delay can cau...

Page 154: ...Dest N7 0 32760 MPS displays S 13 and S 14 in BCD You should convert BCD values to integer before you manipulate them in your ladder program If you do not convert the values the controller manipulate...

Page 155: ...rce N7 2 4660 Dest S 13 4660 I 0 1 0001 0010 0011 0100 0000 0100 1101 0010 When the input condition I 0 1 is set 1 a BCD value transferred from a 4 digit thumbwheel switch for example is moved from wo...

Page 156: ...1 0 0 0 0 0 x 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 x 0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 x 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 x 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 x 1 0 1 0 0 0 0 0 0...

Page 157: ...0 0 0 0 0 0 x 1 0 0 0 x x x x x x 1 0 0 0 0 0 0 0 0 0 x 1 0 0 1 x x x x x 1 0 0 0 0 0 0 0 0 0 0 x 1 0 1 0 x x x x 1 0 0 0 0 0 0 0 0 0 0 0 x 1 0 1 1 x x x 1 0 0 0 0 0 0 0 0 0 0 0 0 x 1 1 0 0 x x 1 0 0...

Page 158: ...2 Zero Z sets if destination value is zero S 0 3 Sign S always resets Copy File COP and Fill File FLL Instructions The destination file type determines the number of words that an instruction transfer...

Page 159: ...be stored You must use the file indicator in the address Length is the number of words or elements in the file to be copied See the table on the next page f e des na on f le ype s a n then you can spe...

Page 160: ...e indicator is not required for an element address Destination is the starting address of the file you want to fill You must use the file indicator in the address Length is the number of words or elem...

Page 161: ...rd addresses for instruction parameters specifying word addresses Indexed addressing is discussed in chapter 4 Updates to Arithmetic Status Bits The arithmetic status bits are found in Word 0 bits 0 3...

Page 162: ...TND instruction a major error occurs In applications where a math overflow or divide by zero occurs you can avoid a controller fault by using an unlatch OTU instruction with address S 5 0 in your pro...

Page 163: ...e instruction moves the data If you wish to move one word of data without affecting the math flags use a copy COP instruction with a length of 1 word instead of the MOV instruction Updates to Arithmet...

Page 164: ...nstruction Source is the address of the data you want to move Mask is the address of the mask through which the instruction moves data the mask can be a hex value constant Destination is the address w...

Page 165: ...0 1 source B3 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 Mask F0F0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 B3 2 after move MVM MASKED MOVE Source B3 0 Mask F0F0 Dest B3 2 Mask data by setting bits in the mask to zero...

Page 166: ...or a constant however both sources cannot be a constant The destination must be a word address Updates to Arithmetic Status Bits With this Bit The Controller S 0 0 Carry C always resets S 0 1 Overflo...

Page 167: ...s cannot be a constant The destination must be a word address Updates to Arithmetic Status Bits With this Bit The Controller S 0 0 Carry C always resets S 0 1 Overflow V always resets S 0 2 Zero Z set...

Page 168: ...a constant however both sources cannot be a constant The destination must be a word address Updates to Arithmetic Status Bits With this Bit The Controller S 0 0 Carry C always resets S 0 1 Overflow V...

Page 169: ...ord addresses Updates to Arithmetic Status Bits With this Bit The Controller S 0 0 Carry C always resets S 0 1 Overflow V always resets S 0 2 Zero Z sets if result is zero otherwise resets S 0 3 Sign...

Page 170: ...With this Bit The Controller S 0 0 Carry C clears if 0 or overflow otherwise sets S 0 1 Overflow V sets if overflow otherwise reset Overflow occurs only if 32 768 is the source On overflow the minor...

Page 171: ...ddress that stores the value that exits from the stack This Instruction Unloads the Value from FIFO s FFU First word LIFO s LFU The last word entered FIFO LIFO is the address of the stack It must be a...

Page 172: ...on a true to false transition FFL LFL Enable Bit EN bit 15 is set on a false to true transition of the FFL LFL rung and is reset on a true to false transition Effects on Index Register S 24 The value...

Page 173: ...5 6 7 8 9 33 34 words are allocated for FIFO stack starting at N7 12 ending at N7 45 FFL FFU Instruction Pair Loading and Unloading of Stack N7 12 N7 10 N7 11 Position Destination Source FFL instruct...

Page 174: ...created file called a LIFO stack The LFU instruction unloads words from the LIFO stack in the opposite order as they were entered Operation Instruction parameters have been programmed in the LFL LFU i...

Page 175: ...done bit DN inhibiting further loading LFU Instruction When rung conditions change from false to true the controller sets the LFU enable bit EU This unloads data from the last element loaded into the...

Page 176: ...pter 7 Rung 7 2 Moves the single digit BCD thumbwheel value into an internal integer register This is done to properly align the four BCD input signals prior to executing the BCD to Integer instructio...

Page 177: ...t filter propagation delay differences between the 4 input circuits that provide the BCD input value 1 st previous debounced pass scan s BCD value bit BCD input value S 1 EQU FRD EQUAL FROM BCD 15 Sou...

Page 178: ...wed the drill bit life calculation could be defeated resulting in poor quality holes due to a dull drill bit Therefore the minimum paper thickness used to calculate drill bit wear is 1 4 in debounced...

Page 179: ...ons Instruction Purpose Page Mnemonic Name Purpose Page JMP and LBL Jump to Label and Label Jump forward or backward to the specified label instruction 10 2 JSR SBR and RET Jump to Subroutine Subrouti...

Page 180: ...scan time by omitting a program segment until needed Jumping backward lets the controller execute program segments repeatedly Note Be careful not to jump backwards an excessive number of times The wa...

Page 181: ...e jumps to the same label by assigning the same label number to multiple JMP instructions However label numbers must be unique Note Do not jump JMP into an MCR zone Instructions that are programmed wi...

Page 182: ...ust be executed from several points within your application program A subroutine saves memory because you program it only once Update critical I O within subroutines using immediate input and or outpu...

Page 183: ...o Level 3 Program Main Subroutine File 6 Level 1 Subroutine File 7 Level 2 Subroutine File 8 Level 3 An error occurs if more than the allowable levels of subroutines are called subroutine stack overfl...

Page 184: ...mend using it for clarity Using RET This output instruction marks the end of subroutine execution or the end of the subroutine file It causes the controller to resume execution at the instruction foll...

Page 185: ...s MCR zones let you enable or inhibit segments of your program such as for recipe applications When you program MCR instructions note that You must end the zone with an unconditional MCR instruction Y...

Page 186: ...ed subroutines is terminated Do not execute this instruction from the user error fault routine file 3 high speed counter interrupt routine file 4 or selectable timed interrupt routine file 5 because a...

Page 187: ...are valid Specify I1 1 if you want to immediately update the last four input bits Mask Specify a Hex constant or register address Immediate Output with Mask IOM This instruction allows you to update...

Page 188: ...dding to the main program in file 2 The new rungs are needed to call the other subroutines containing the logic necessary to run the machine Rung 2 5 Calls the drill sequence subroutine This subroutin...

Page 189: ...Bit Shift Left and Bit Shift Right Loads a bit of data into a bit array shifts the pattern of data through the array and unloads the last bit of data in the array The BSL shifts data to the left and t...

Page 190: ...structions simplify your ladder program by allowing you to use a single instruction or pair of instructions to perform common complex operations In this chapter you will find a general overview preced...

Page 191: ...nt is shown below EN DN ER UL Not used 15 13 11 10 00 Size of bit array number of bits Reserved Word 0 Word 1 Word 2 Status bits of the control element may be addressed by mnemonic They include Unload...

Page 192: ...f 0 causes the input bit to be transferred to the UL bit A length value that points past the end of the programmed file causes a major error to occur If you alter a length value with your ladder progr...

Page 193: ...t Operation The following figure shows the operation of the BSL instruction shown above 19 18 17 16 35 34 33 51 50 49 48 67 66 65 64 32 23 22 21 20 39 38 37 55 54 53 52 71 70 69 68 36 27 26 25 24 43 4...

Page 194: ...s to the first bit of the array or to the UL bit Operation The following figure shows the operation of the BSR instruction shown above 35 34 33 51 50 49 48 67 66 65 64 32 39 38 37 55 54 53 52 69 68 36...

Page 195: ...ster value will equal the position value of the instruction Sequencer Output SQO and Sequencer Compare SQC These instructions transfer 16 bit data to word addresses for the control of sequential machi...

Page 196: ...e its length will be equal to the length of the sequencer file The two files track automatically Source is the address of the input word or file for a SQC from which the instruction obtains data for c...

Page 197: ...ast word in the sequencer file It is reset on the next false to true rung transition after the rung goes false Enable EN bit 15 is set by a false to true rung transition and indicates the SQO or SQC i...

Page 198: ...instruction resets the position to step one If the position is equal to zero at startup when you switch the controller from the program mode to the run mode instruction operation depends on whether t...

Page 199: ...the source word match those of the corresponding reference word the instruction sets the found bit FD in the control word Otherwise the found bit FD is cleared The bits mask data when reset and pass d...

Page 200: ...tep B3 8 9 10 11 12 Word Input Word I 0 Mask Value FFF0 Sequencer Ref File B3 8 The SQC FD bit is set when the instruction detects that an input word matches thru mask its corresponding reference word...

Page 201: ...ion value Length is the number of steps of the sequencer load file and also of the source if the source is a file address starting at position 1 The maximum number you can enter is 104 words Position...

Page 202: ...in this word is loaded into integer file N7 30 by the sequencer load instruction EN DN SQL SEQUENCER LOAD File N7 30 Source I 0 0 Control R6 4 Length 4 Position 2 0000 0101 0000 1010 0 7 8 15 0000 000...

Page 203: ...e it was interrupted Basic Programming Procedure for the STI Function To use the STI function in your application file 1 Enter the desired ladder rungs in File 5 File 5 is designated for the STI subro...

Page 204: ...tructions are needed in an STI subroutine if your application requires immediate update of input or output points End the STI subroutine with an RET instruction JSR stack depth is limited to 3 You may...

Page 205: ...pt priorities are as follows 1 User Fault Routine 2 High Speed Counter 3 Selectable Timed Interrupt An executing interrupt can only be interrupted by an interrupt having a higher priority Status File...

Page 206: ...able bit is set the first execution of the STI subroutine can occur at any point up to the full STI interval STD STE Zone Example In the program that follows the STI function is in effect The STD and...

Page 207: ...pt execution will not occur between STD and STE END 0 STD SELECTABLE TIMED DISABLE STE SELECTABLE TIMED ENABLE STE SELECTABLE TIMED ENABLE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Program File 3 Prog...

Page 208: ...At the same time the STI timer is reset and begins timing at timeout the STI subroutine execution occurs When the rung goes false the STI function remains enabled at the setpoint you ve entered in the...

Page 209: ...p to allow a hole to be drilled The stop positions will be different for each hole pattern 3 hole 5 hole 7 hole so separate sequencers are used to store and access each of the three hole patterns Note...

Page 210: ...set is reached anytime that a reset C5 0 or hardware reset occurs This ensures that the first preset value is loaded into the HSC at each entry into the REM Run mode and each time that the external re...

Page 211: ...step as a go forever in anticipation of the end of manual hard wired external reset hole hole 3 hole selector selector preset switch switch sequencer bit 0 bit 1 I 0 I 0 SQO SEQUENCER OUTPUT EN 9 10 F...

Page 212: ...ector selector preset switch switch sequencer bit 0 bit 1 I 0 I 0 SQO SEQUENCER OUTPUT EN 9 10 File N7 55 DN Mask FFFF Dest N7 7 Control R6 5 Length 7 Position 0 force the sequencer to increment on th...

Page 213: ...equencer bit 0 bit 1 I 0 I 0 SQO SEQUENCER OUTPUT EN 9 10 File N7 62 DN Mask FFFF Dest N7 7 Control R6 6 Length 9 Position 0 force the sequencer to increment on the next scan R6 6 U EN This rung acces...

Page 214: ...Preface MicroLogix 1000 Programmable Controllers User Manual 11 26 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 215: ...the image accumulator enables counting when the HSC is true and disables counting when the HSC rung is false 12 6 HSL High Speed Counter Load Configures the low and high presets the output patterns an...

Page 216: ...bled data table counter C5 0 is used by the ladder program for monitoring the high speed counter accumulator and status The high speed counter operates independent of the controller scan When using th...

Page 217: ...tructions CU CD DN OV UN UA HP LP IV IN IH IL PE LS IE 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Preset Value Accumulator Value CU Counter Up Enable Bit CD Counter Down Enable Bit DN High Preset...

Page 218: ...32 768 You can reset this bit with an OTU instruction or by executing an RAC or RES instruction for both the up and bidirectional counters Underflow Occurred Bit UN bit 11 is a reserved bit for the U...

Page 219: ...for the execution of the high speed counter interrupt routine The IV IN and IL bits are reset by the controller when the IH bit is set Examine this bit at the start of the high speed counter interrup...

Page 220: ...cumulated value that triggers a user specified action such as updating outputs or generating a high speed counter interrupt Accumulator is the number of accumulated counts The following terminology is...

Page 221: ...hold inputs Count Direction Reset Hold F5 Up and down Bidirectional operation uses both up and down direction inputs Up Down Not Used Not Used F6 Up and down with external reset and hold Bidirectional...

Page 222: ...ed to the hardware high preset Operation If you move data to the high preset without using the RAC instruction with a MOV after the high speed counter has been configured the data is loaded to the ins...

Page 223: ...V and IN bits are reset High speed counter interrupt file program file 4 is executed if the interrupt is enabled The following tables summarize what the input state must be for the corresponding high...

Page 224: ...le a package entering and leaving a storage bin is counted to regulate flow through the area The Bidirectional Counters operate identically except for the operation of inputs 1 and 0 For the Pulse and...

Page 225: ...greater than or equal to the hardware high preset or the hardware high preset is loaded with a value that is less than or equal to the hardware accumulator When a high preset is reached the HP bit is...

Page 226: ...hardware accumulator transitions from 32 768 to 32 767 When an underflow occurs the UN bit is set High speed counter interrupt file program file 4 is executed if the interrupt is enabled The IN bit i...

Page 227: ...se Hold Count NA NA Off On or Turning Off On NA Hold Count Off On or Turning Off NA Off On or Turning Off NA NA Hold Count NA NA Turning On NA NA Reset to 0 NA Not Applicable Bidirectional Counter Up...

Page 228: ...nput pulses occur simultaneously the high speed counter counts up then down Using the Bidirectional Counter with Reset and Hold with a Quadrature Encoder The Quadrature Encoder is used for determining...

Page 229: ...Any instruction accumulator value between 32 768 and 32 767 inclusive can be loaded to the hardware After the first true HSC instruction execution data can only be transferred to the hardware accumul...

Page 230: ...eset or A low preset is reached the hardware accumulator is loaded with a value less than or equal to the hardware low preset or the hardware low preset is loaded with a value that is greater than or...

Page 231: ...eed Counter Action Turning On Off True Count Up Turning Off Off True Count Down NA On NA Hold Count NA NA False Hold Count Off or On NA NA Hold Count NA Not Applicable Bidirectional Counter with Reset...

Page 232: ...nary file element Length is the number of elements starting from the source This number is always 5 Operation The HSL instruction allows you to configure the high speed counter to instantaneously and...

Page 233: ...nding output can be changed by the high speed counter If a bit is set to 0 the corresponding output cannot be changed by the high speed counter The bits in the high and low sources also directly corre...

Page 234: ...not change a preset value and an output mask source with the same HSL instruction as the accumulator is approaching the old preset value If the high speed counter is enabled and the HSL instruction i...

Page 235: ...of this instruction immediately removes pending high speed counter interrupts resets the hardware and instruction accumulators reset the PE LS OV UN and DN status bits loads the instruction high prese...

Page 236: ...oves pending high speed counter interrupts resets the PE LS OV UN and DN status bits loads a new accumulator value to the hardware and instruction image loads the instruction high preset to the hardwa...

Page 237: ...ogram file 4 is executed when A high or low preset is reached An overflow or underflow occurs When in Test Single Scan mode and in an idle condition the high speed counter interrupt is held off until...

Page 238: ...ly This HSD instruction does not cancel an interrupt but results in the pending bit C5 0 3 being set when A high or low preset is reached An overflow or underflow occurs Update High Speed Counter Imag...

Page 239: ...ation in the REM Run mode to differentiate a retentive REM Run mode entry from an external or initial Accumulator C5 0 ACC modification At the first true HSL instruction execution after going to run t...

Page 240: ...2 0 No action required Remember that all OUT instructions are zeroed when entering the REM Run mode Use SET RST instructions in place of OUT instructions in your conditional logic requiring retention...

Page 241: ...ollowing Rung 2 0 Unlatch the C5 0 HP and C5 0 LP bits during the first scan BEFORE the HSC instruction is executed for the first time S 1 HSL HSC LOAD 15 Counter C5 0 Source N7 0 Length 5 Rung 2 1 S...

Page 242: ...uted for the first time Note you could place this rung before the HSC instruction however this is not recommended S 1 HSL HSC LOAD 15 Counter C5 0 Source N7 0 Length 5 Rung 2 1 HSC HIGH SPEED COUNTER...

Page 243: ...I 1 Drilled Holes The main program file file 2 initializes the HSC instruction monitors the machine start and stop buttons and calls other subroutines necessary to run the machine Refer to the comment...

Page 244: ...eset Value counts to next hole MOV MOVE Source 32767 Dest N7 7 0 Low output pattern turn on O 0 0 each reset MOV MOVE Source 1 Dest N7 8 0 Low preset value cause low preset int at reset MOV MOVE Sourc...

Page 245: ...gh Speed Counter HSC HIGH SPEED COUNTER CU Type Encoder Res Hld CD Counter C5 0 DN High Preset 1250 Accum 1 Rung 2 2 Forces a high speed counter low preset interrupt to occur each REM Run mode entry A...

Page 246: ...the high speed counter interrupt subroutine signals the main program to perform the drilling sequence For more information regarding the interrupt subroutine used in this program refer to the applica...

Page 247: ...preset output pattern data clear O 0 0 This occurred within microseconds of the high preset being reached just prior to entering this high speed counter interrupt subroutine The drill sequence subrou...

Page 248: ...Preface MicroLogix 1000 Programmable Controllers User Manual 12 34 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 249: ...application examples and timing diagrams Note Only Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers support the MSG instruction Message Instruction Ins...

Page 250: ...are usually capable of replying to other devices when they make requests to read information The Series C or later MicroLogix 1000 discrete controllers and all MicroLogix 1000 analog controllers are i...

Page 251: ...Parameters After you place the MSG instruction on a rung specify whether the message is to be a read or write Then specify the target device and the control block for the MSG instruction Read Write r...

Page 252: ...ix 1000 O I S B T C R N MicroLogix 1000 N7 CIF Read MicroLogix 1000 O I S B T C R N MicroLogix 1000 N7 SLC500 ML1000 Write MicroLogix 1000 O I S B T C R N SLC 500 O I S B T C R N SLC500 ML1000 Read Mi...

Page 253: ...h in elements Control Block Layout SLC500 ML1000 Word 0 1 2 File Number File Type O I S B T C R N Element Number Subelement Number 3 4 5 6 Node Number EN ST DN ER EW NR TO Error Code 15 14 13 12 11 10...

Page 254: ...eset on any false to true MSG rung transition Negative Response Bit NR bit 09 is set if the target processor is responding to your message but can not process the message at the present time The NR bi...

Page 255: ...ecution after the MSG completes DN bit set or an error occurs ER bit set Note The operation of the EN bit has changed since Series C The operation associated with a message read or write instruction i...

Page 256: ...t 15 EN Enabled Bit 10 EW Enabled and Waiting Bit 14 ST Start 1 0 1 0 1 0 Bit 13 DN Done 1 0 Bit 9 NR Negative Response 1 0 Bit 8 TO Time Out 1 0 Target node sent reply Control Block Status Bits Bit 1...

Page 257: ...sages Typically message transactions are completed within a couple of seconds It is up to the programmer to determine how long to wait before clearing the buffer and then re transmitting Step 4 is not...

Page 258: ...eply contains I have successfully performed your read request and here is your data the data is written to the appropriate data table the DN bit is set and the ST bit is cleared The MSG instruction fu...

Page 259: ...se another node is file owner has sole file access 1BH Target node cannot respond because another node is program owner has sole access to all files 37H Message timed out in local processor 39H Messag...

Page 260: ...the MSG instruction When the MSG instruction done bit N7 0 13 is set it unlatches the MSG enable bit N7 0 15 so that the MSG instruction will be re enabled in the next scan This provides continuous o...

Page 261: ...operation This move command updates N7 10 by making it identical to I 1 0 When the processor starts a new scan sequence when rung 2 0 is scanned it updates reads the input image If an input has chang...

Page 262: ...provided to verify data transfer and to shut down both processors if communication fails A temperature sensing device connected as an input to the MicroLogix 1000 controller controls the on off operat...

Page 263: ...U N7 21 U N7 10 15 Operation notes appear on the following page 4 5 6 7 Bit 1 of the message word Used for fan control Bit 0 of the message word This is the interlock bit 4 second Timer Write message...

Page 264: ...IMER ON DELAY Timer T4 0 Time Base 0 01 Preset 400 Accum 0 N7 0 0 First Pass Bit OSR B3 0 T4 0 DN B3 1 U N7 0 0 RES T4 0 O 1 0 0 N7 0 1 1 3 6 Bit 0 of the message word This is the interlock bit 4 seco...

Page 265: ...Read write WRITE Target Device SLC500 ML1000 Control Block N7 0 Control Block Length 7 N7 0 14 EN DN TON TIMER ON DELAY Timer T4 0 Time Base 0 01 Preset 200 Accum 0 B3 1 CU DN CTU COUNT UP Counter C5...

Page 266: ...ample 5 Application example 5 shows you how to link message instructions together to transmit serially one after another In this example a MSG Write is followed by a MSG Read which causes the serial t...

Page 267: ...of the first MSG instruction Same as above rung This rung sets the timeout value When using a SLC 5 03 or SLC 5 04 processor this rung and rung 2 2 are not required because you can enter the value 6...

Page 268: ...Preface MicroLogix 1000 Programmable Controller User Manual 13 20 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 269: ...r describes how to troubleshoot your controller Topics include understanding the controller LED status controller error recovery model identifying controller faults calling Allen Bradley for assistanc...

Page 270: ...he power LED turns on and remains on This is part of the normal powerup sequence When the controller is placed in REM Run mode the run LED also turns on and remains on as shown on the right in the fig...

Page 271: ...r Power Supply Overloaded This problem can occur intermittently if power supply is overloaded when output loading and temperature varies The Following Error Exists Probable Cause Recommended Action Ha...

Page 272: ...causing fault 3 Press F10 to clear the fault 4 Attempt a controller REM Run mode entry If unsuccessful repeat recommended action steps above or contact your local Allen Bradley distributor Refer to t...

Page 273: ...t modes Clear fault using either function key F9 or F10 Place the controller in REM PROGram mode Correct the condition causing the fault Test and verify system operation Tighten wire connections Check...

Page 274: ...ler to immediately enter the REM Run mode Make sure you fully understand the use of this bit before incorporating it into your program Refer to page B 6 for more information Refer to appendix B for mo...

Page 275: ...problem may have occurred Your program may be valid but retentive data will be lost Try cycling power again Contact your local Allen Bradley representative if the error persists 0004 RUNTIME MEMORY IN...

Page 276: ...ded Check the configuration and make sure the correct processor is selected If you want to use a micro controller with the program reconfigure your controller with your programming software choose Bul...

Page 277: ...ED DATA FILE BOUNDARIES The length parameter of a BSL BSR FFL FFU LFL or LFU instruction points past the end of a data file Correct the program to ensure that the length parameter does not point past...

Page 278: ...utput Select S 0 8 bit in the status file was reset For 16 point controllers this includes bits 6 15 For 32 point controllers this includes bits 12 15 Set S 0 8 or change your application to prevent t...

Page 279: ...ix lists the controller specifications dimensions replacement parts For AIC specifications see the Advanced Interface Converter AIC and DeviceNet Interface DNI Installation Instructions Publication 17...

Page 280: ...8 pt relay output 1 pt analog output ac power supply controller 1761 L32BWA 20 pt dc input 12 pt relay output ac power supply controller 1761 L10BWB 6 pt dc input 4 pt relay output dc power supply con...

Page 281: ...81 mm 0 015 in peak to peak 2 5g panel mounted 1hr per axis Non operating 5 Hz to 2k Hz 0 762 mm 0 030 in peak to peak 5g 1hr per axis Shock Operating 10g peak acceleration 7 5g DIN rail mounted 11 1...

Page 282: ...ac 47 Hz 12 0 mA nominal 120V ac 60 Hz 16 0 mA max 132V ac 63 Hz 2 5 mA min 14V dc 8 0 mA nominal 24V dc 12 0 mA max 30V dc Off Current 2 5 mA max 1 5 mA max Nominal Impedance 12K ohms 50 Hz 10K ohms...

Page 283: ...11 0 ms Surge Current per Point Not Applicable 4A for 10 ms 10A for 25 ms Repeatability is once every 2 seconds at 55 C 131 F Relay Contact Rating Table applies to all Bulletin 1761 controllers Maximu...

Page 284: ...Hz 1s The analog input update rate and input resolution are a function of the input filter selection For additional information see page 5 3 Analog Output Specifications Description Specification Vol...

Page 285: ...ontrollers and x 19 for 32 I O point controllers The minimum and maximum response times associated with each input filter setting can be found in the tables that follow Response Times for High Speed d...

Page 286: ...000 2 00 2 000 2 000 4 00 4 000 4 000 8 00 8 000 8 000 16 00 16 000 16 000 This is the default setting Response Times for ac Inputs applies to 1761 L16AWA L20AWA 5A L32AWA and L32AAA controllers Nomi...

Page 287: ...16BWB 20 72 0 7 L20BWB 5A 40 1 57 L32BBB 200 7 87 L32BWB 200 7 7 Add approximately 13 mm 0 51 in when using the 1761 CBL PM02 or 1761 CBL HM02 communication cables For a template to help you install y...

Page 288: ...tputs dc power supply controller 1761 L20BWB 5A 20 pt dc input 12 pt relay output dc power supply controller 1761 L32BWB 10 pt dc input 4 pt FET and 2 pt relay outputs dc power supply controller 1761...

Page 289: ...system works and lets you direct how you want it to work This is done by using the status file to set up control bits and monitor both hardware and programming device faults and other status informati...

Page 290: ...11 S 3H high byte Watchdog Scan Time B 11 S 4 Timebase B 12 S 5 Minor Error Bits B 12 S 6 Major Error Code B 14 S 7 Suspend Code B 18 S 8 to S 12 Reserved B 18 S 13 S 14 Math Register B 18 S 15L low b...

Page 291: ...y the controller following the execution of certain math and data handling instructions The state of these bits remain in effect until certain math or data handling instructions in the program are exe...

Page 292: ...sumes S 0 4 to S 0 7 Reserved NA NA S 0 8 Extend I O Configuration Static Configuration This bit must be set by the user when unused outputs are written to If reset and unused outputs are turned on th...

Page 293: ...r DF1 protocols the bit is reset if the controller does not receive valid data from the programming port for 10 seconds Note In DF1 half duplex mode simple polls by the DF1 master or replies to receiv...

Page 294: ...un Always Static Configuration When set this bit causes the controller to clear S 1 13 before attempting to enter RUN mode when power is applied or if an unexpected reset occurs If this bit is not set...

Page 295: ...troller exits the fault routine with bit S 1 13 set The outputs are placed in a safe state and the FAULT LED is energized When you clear bit S 1 13 using a programming device the controller mode chang...

Page 296: ...STI timer has timed out and the STI routine is waiting to be executed This bit is cleared upon starting the STI routine ladder program exit of the REM Run or Test mode or execution of a true STS instr...

Page 297: ...ou requested in the MSG instruction of your processor This bit is cleared when the processor stores the information and updates your MSG instruction S 2 7 Outgoing Message Command Pending Bit Status T...

Page 298: ...nd the result of an ADD SUB MUL or DIV instruction cannot be represented in the destination address underflow or overflow the overflow bit S 0 1 is set the overflow trap bit S 5 0 is set and the desti...

Page 299: ...time elapsed in each scan If this value ever equals the value in S 3H Watchdog a user watchdog major error will be declared code 0022 The resolution of the scan time value is 0 to 90 ms 10 ms Example...

Page 300: ...1 0 in this case must be evaluated at least once every 79 999 ms 160 ms S 4 3 cycles in 160 ms Both S 4 3 and Output O 1 0 toggle every 80 ms O 1 0 must be evaluated at least once every 79 999 ms S 4...

Page 301: ...ajor error code S 6 represents the major error that occurred while processing the fault routine due to another major error S 5 4 to S 5 7 Reserved NA NA S 5 8 Retentive Data Lost Status This bit is se...

Page 302: ...ssifications Faults are classified as Non User Non Recoverable and Recoverable Error code descriptions and classifications are listed on the following pages Categories are powerup errors going to run...

Page 303: ...ion User Address Error Code Hex Going to Run GTR Errors Non User Non Recoverable Recoverable S 6 0005 Retentive data is lost X 0010 The downloaded program is not a controller program X 0016 Startup pr...

Page 304: ...3 X 002A The indexed address is too large for the file X 002B There are excessive JSRs in the high speed counter sub routine file 4 X 0030 The subroutine nesting exceeds a limit of 8 file 2 X 0031 An...

Page 305: ...put verify write occurred X 0041 Extra output bit s turned on X Valid for Series A C discrete only Fault Classification User Address Error Code Hex Download Errors Non User Non Recoverable Recoverable...

Page 306: ...xt MUL DIV DDV FRD or TOD instruction is executed in the user program An explanation of how the math register operates is included with the instruction definitions If you store 32 bit signed data valu...

Page 307: ...options are 9600 19200 default To change the baud rate from the default value you must use a programming device S 17 to S 21 Reserved NA NA S 22 Maximum Observed c Dynamic Configuration This word ind...

Page 308: ...ble timed interrupt STI The time can range from 10 to 2550 ms This is in 10ms increments so valid values are from 0 255 Your STI routine executes per the value you enter Write a zero value to disable...

Page 309: ...lication Specific CLR 4 25 20 80 1 00 Clear Math COP 6 60 27 31 5 06 word 1 50 File Copy Data Handling CTD 27 22 32 19 1 00 Count Down Basic CTU 26 67 29 84 1 00 Count Up Basic DCD 6 78 27 67 1 50 Dec...

Page 310: ...Subroutine Application Specific IOM 6 78 41 59 1 50 Immediate Output with Mask Program Flow Control JMP 6 78 9 04 1 00 Jump to Label Program Flow Control JSR 4 25 22 24 1 00 Jump to Subroutine Program...

Page 311: ...Counter RES timer counter 4 25 15 19 1 00 Reset Basic RES high speed counter 6 00 51 00 1 00 High Speed Counter Reset High Speed Counter RET 3 16 31 11 0 50 Return from Subroutine Program Flow Contro...

Page 312: ...Flow Control TND 3 16 7 78 0 50 Temporary End Program Flow Control TOD 6 78 49 64 1 00 Convert to BCD Data Handling TOF 31 65 39 42 1 00 Timer Off Delay Basic TON 30 38 38 34 1 00 Timer On Delay Basi...

Page 313: ...and enter the result Refer to the table on page B 21 2 Multiply the total number of rungs by 0 75 and enter the result Do not count the END rungs in each file 3 To account for controller overhead use...

Page 314: ...program execution times when all instructions are true Include interrupt routines in this calculation 3 Estimate your controller scan time A Without communications add sections 1 and 2 B With communi...

Page 315: ...1 C Valid Addressing Modes and File Types for Instruction Parameters This appendix lists all of the available programming instructions along with their parameters valid addressing modes and file types...

Page 316: ...al C 2 Available File Types The following file types are available O Output I Input S Status B Binary T Timer C Counter R Control N Integer All file types are word addresses unless otherwise specified...

Page 317: ...For example N7 0 T4 8 ACC ST20 5 Indexed Direct Addressing You may specify an address as being indexed by placing the character in front of the address When an address of this form is encountered in t...

Page 318: ...exed direct O I S B T C R N Not Applicable BSL Bit Shift Left file indexed direct O I S B N Not Applicable control direct R element level Not Applicable bit address direct O I S B T C R N bit level No...

Page 319: ...ct indexed direct O I S B T C R N Not Applicable DDV Double Divide source immediate direct indexed direct O I S B T C R N 32 768 32 767 destination direct indexed direct O I S B T C R N Not Applicable...

Page 320: ...egister 1 128 position contained in the control register 0 127 FLL Fill File source direct O I S B T C R N 32 768 32 767 f min f max destination indexed direct O I S B T C R N element level Not Applic...

Page 321: ...l Not Applicable preset contained in the counter register 32 768 32 767 accum contained in the counter register 32 768 32 767 HSD HSC Interrupt Disable counter direct C Not Applicable HSE HSC Interrup...

Page 322: ...han source A direct indexed direct O I S B T C R N Not Applicable source B immediate direct indexed direct O I S B T C R N 32 768 32 767 f min f max LFL LIFO Load source immediate direct indexed direc...

Page 323: ...licable Equal source mask immediate direct indexed direct O I S B T C R N 32 768 32 767 compare immediate direct indexed direct O I S B T C R N 32 768 32 767 MOV Move source immediate direct indexed d...

Page 324: ...able NEQ Not Equal source A direct indexed direct O I S B T C R N Not Applicable source B immediate direct indexed direct O I S B T C R N 32 768 32 767 f min f max NOT Logical NOT source direct indexe...

Page 325: ...outine Not Applicable SCL Scale source direct indexed direct O I S B T C R N Not Applicable rate immediate direct indexed direct O I S B T C R N 32 768 32 767 offset immediate direct indexed direct O...

Page 326: ...direct R element level Not Applicable length 1 255 position 0 255 SQR Square Root source immediate direct indexed direct O I S B T C R N 32 768 32 767 f min f max destination direct indexed direct O I...

Page 327: ...er 0 32 767 accum contained in the timer register 0 32 767 TON Timer On Delay timer direct T element level Not Applicable time base immediate 0 01 or 1 00 preset contained in the timer register 0 32 7...

Page 328: ...Preface MicroLogix 1000 Programmable Controllers User Manual C 14 Notes efesotomasyon com Allen Bradley Rockwell plc servo drive...

Page 329: ...plex Slave All MicroLogix 1000 controllers support the DF1 full duplex protocol Series D or later discrete and all MicroLogix 1000 analog controllers also support DF1 half duplex slave protocol DH 485...

Page 330: ...th a variety of system configuration possibilities RS 232 is a definition of electrical characteristics it is not a protocol One of the biggest benefits of the RS 232 interface is that it lets you int...

Page 331: ...s When the system mode driver is DF1 Full Duplex the following parameters can be changed Parameter Options Default Baud Rate Toggles between the communication rate of 300 600 1200 2400 4800 9600 19200...

Page 332: ...nnecting the System 1761 CBL PM02 Micro Controller Personal Computer Optical Isolator recommended Personal Computer Modem Modem Modem Cable 1761 CBL PM02 Micro Controller Optical Isolator recommended...

Page 333: ...ster immediately rebroadcasts the command packet to the intended slave When the intended slave is polled it sends a reply packet to the master with the data the first slave requested The master again...

Page 334: ...of a packet The valid range is 0 255 and can be set in increments of 5 ms 0 RTS Send Delay Specifies the time delay between setting RTS request to send until checking for the CTS clear to send respons...

Page 335: ...ur programming software and a MicroLogix 1000 Programmable Controller or between two MicroLogix Programmable Controllers via a slave to slave connection on a larger multi drop link the devices depend...

Page 336: ...dition of DF1 half duplex slave protocol the controller clears the file ownership if no supported commands are received from the owner within the timeout period If the file ownership were not cleared...

Page 337: ...0 controllers Dial Up Phone Modems Dial up phone line modems support point to point full duplex communications Normally a MicroLogix 1000 controller on the receiving end of the dial up connection will...

Page 338: ...aking configure the control line parameter to Half Duplex Modem Line Drivers Line drivers also called short haul modems do not actually modulate the serial data but rather condition the electrical sig...

Page 339: ...S 485 is a definition of electrical characteristics it is not a protocol RS 485 uses devices that are capable of co existing on a common data circuit thus allowing data to be easily shared between dev...

Page 340: ...or is 0 to 31 The allowable address range for all responders is 1 to 31 There must be at least one initiator on the network DH 485 Configuration Parameters When the system mode driver is DH 485 Master...

Page 341: ...pt to pass the token fails or if the initiator has no established successor for example when it powers up it begins a linear search for a successor starting with the node above it in the addressing Wh...

Page 342: ...LC Chassis Provides communication between stations on the PLC 5 DH and SLC 500 DH 485 networks Enables communication and data transfer from PLC to SLC 500 on DH 485 network Also enables programming so...

Page 343: ...8P1 L8P2 L40P1 L40P2 V40P1 V40P2 V40P2N M232P3 and M485P3 DTAM DTAM Plus and DTAM Micro Operator Interfaces Panel Mount Provides electronic operator interface for SLC 500 processors 1747 ND013 2707 80...

Page 344: ...the length of the communication cable where you route it and how to protect it from the environment where it will be installed When the communication cable is installed you need to know how many devic...

Page 345: ...VA and 0 30 m 1 ft from lines of 100k VA or more Running the communication cable through conduit provides extra protection from physical damage and electrical interference If you route the cable thro...

Page 346: ...des such as a second programming terminal that is not being used slow the data transfer rate The maximum number of nodes on the network is 32 Setting Node Addresses The best network performance occurs...

Page 347: ...Installation Instructions Publication 1761 5 11 DH 485 Network with a MicroLogix 1000 Controller MicroLogix DH 485 Network PC connection from port 1 or port 2 to MicroLogix 1761 CBL AM00 or 1761 CBL...

Page 348: ...0 APS PanelView 550 PC RJ45 port 1761 CBL AM00 or 1761 CBL HM02 MicroLogix 1000 Series C or later discrete or all analog 24V dc Not needed in this configuration since the MicroLogix 1000 provides powe...

Page 349: ...NULL modem adapter DH 485 Network APS PC 1761 CBL AP00 or 1761 CBL PM02 1747 CP3 or 1761 CBL AC00 24V dc user supplied SLC 5 03 processor 1747 AIC 24V dc user supplied 24V dc Not needed in this config...

Page 350: ...network This method uses an SLC 5 04 processor bridge connection When using this method PLC 5 devices can send read and write commands to MicroLogix controllers MicroLogix 1000 controllers can respon...

Page 351: ...IFO instructions adjustable time delay example using timer instructions Because of the variety of uses for this information the user of and those responsible for applying this information must satisfy...

Page 352: ...RES OTU OTL and OSR instructions see chapter 6 EQU and GEQ instructions see chapter 7 CLR ADD and SUB instructions see chapter 8 MOV and FRD instructions see chapter 9 JSR and RET instructions see ch...

Page 353: ...I 2 Counter Hold I 3 Photo Eye Reflector Conveyor Enable wired in series to the Drive O 5 Conveyor Drive Start Stop wired in series to the Drive O 0 Keyswitch I 8 Quadrature A B Encoder and Drive I 0...

Page 354: ...he first drilling position The drill sequence start bit is set and the first hole is drilled The drill sequence start bit is now unlatched and the conveyor moves the same book to the second drilling p...

Page 355: ...ntil the first time that it is executed as true The high preset was pegged on initialization to prevent a high preset interrupt from occurring during the initialization process 1 st Output Mask Pass o...

Page 356: ...t placed in the high speed counter interrupt subroutine If this instruction were placed in the interrupt subroutine the high speed counter could never be started or initialized because an interrupt mu...

Page 357: ...C5 0 Source 1 High Speed Counter C5 0 RES Rung 2 3 Starts the conveyor in motion when the start button is pressed However another condition must also be met before we start the conveyor the drill bit...

Page 358: ...le count sequencers each time that the low preset is reached The low preset has been set to zero to cause an interrupt to occur each time that a reset occurs The low preset is reached anytime that a r...

Page 359: ...6 4 Length 5 Position 0 force the sequencer to increment on next scan R6 4 U EN Rung 4 2 Is identical to the previous rung except that it is only active when the hole selector switch is in the 5 hole...

Page 360: ...FF Dest N7 7 Control R6 6 Length 9 Position 0 force the sequencer to increment on the next scan R6 6 U EN Rung 4 4 Ensures that the high speed counter preset value N7 7 is immediately applied to the H...

Page 361: ...he drill for the book drilling machine When the conveyor positions the book under the drill the DRILL SEQUENCE START bit is set This rung uses that bit to begin the drilling operation Because the bit...

Page 362: ...U 32 Conveyor Start Stop O 0 L 0 Rung 6 3 END Rung 7 0 Examines the number of 1 4 in thousands that have accumulated over the life of the current drill bit If the bit has drilled between 100 000 101 9...

Page 363: ...100 000 102 000 change 1 4 in 1 4 in drill increments increments bit have have soon occurred occurred B3 B3 O 0 16 17 4 100 000 102 000 1 28 1 4 in 1 4 in second increments increments free have have r...

Page 364: ...register This is done to properly align the four BCD input signals prior to executing the BCD to Integer instruction FRD The thumbwheel is used to allow the operator to enter the thickness of the pape...

Page 365: ...s scan s BCD value bit BCD input value S 1 EQU FRD EQUAL FROM BCD 15 Source A N7 13 Source N7 14 0 0000 Source B N7 14 Dest N7 12 0 0 Math Math Overflow Error Bit Bit S 0 S 5 U 1 0 this scan s BCD inp...

Page 366: ...the BCD thumbwheel on inputs I 0 11 I 0 14 Drill Drill Wear 1 4 in Depth LS OSR 1 increments I 0 B3 ADD OSR ADD 4 24 Source A N7 12 0 Source B N7 10 0 Dest N7 10 0 Rung 7 6 When the number of 1 4 in i...

Page 367: ...in a traffic signal at an intersection The timing requirements are Red light 30 seconds Yellow light 15 seconds Green light 60 seconds The timer when it reaches its preset steps the sequencer that in...

Page 368: ...trols the RED GREEN and YELLOW lights wired to outputs O 0 0 O 0 2 and controls how long the regenerative timer times between each step When this rung goes from false to true by the timer reaching its...

Page 369: ...events is required to occur repeatedly By using this combination you can eliminate using the XIO XIC and other instructions For a detailed explanation of XIC XIO and RES instructions see chapter 6 SQO...

Page 370: ...rol R6 0 Length 9 Position 2 R6 0 SQO SEQUENCER OUTPUT EN FD File N7 10 DN Mask 000F Dest O 0 0 Control R6 0 Length 9 Position 2 Rung 2 2 END The following displays the FILE DATA for both sequencers T...

Page 371: ...ine Holding Area Bottle Line Operation Overview The controller on the conveyor within the specified area above regulates the speeds of the bottle fill and packing machines Each machine is connected to...

Page 372: ...high speed counter with the above parameters Each time the rung is evaluated the hardware accumulator is written to C5 0 ACC HSC HIGH SPEED COUNTER CU Type Up Down CD Counter C5 0 DN Preset 350 Accum...

Page 373: ...ill LES O 0 O 0 LESS THAN U Source A C5 0 ACC 1 1 0 Source B 150 Rung 2 6 If the high speed counter reached its high preset of 350 indicates that the holding area reached maximum capacity it would ene...

Page 374: ...communicates to the controller controlling the gripper which bin to drop the part into This information is communicated by energizing three outputs that are wired to the controller s inputs Once the c...

Page 375: ...ocation from the table starting at N7 10 Output from barcode Index Reg I 0 S 24 5 0 Rung 2 1 Output from barcode Index Reg I 0 S 24 6 1 Rung 2 2 Output from barcode Index Reg I 0 S 24 7 2 Rung 2 3 Ind...

Page 376: ...Length 5 First Pass Bit S 1 15 Rung 2 5 Start up the high speed counter with the above parameters Each time this rung is evaluated the hardware accumulator is written to C5 0 ACC HSC HIGH SPEED COUNTE...

Page 377: ...otor Done REVERSE T4 0 O 0 L DN 2 Rung 2 8 When the pick and place head is positioned at its home position turn off the reverse motor At the same time the high speed counter will tell the gripper to g...

Page 378: ...gh speed counter accumulator C0 ACC over time To determine this you must provide the following application specific information N7 2 Counts per Revolution i e the number of encoder pulses per revoluti...

Page 379: ...ts per revolution value N7 2 For example if N7 4 contained the value 2000 indicates 2000 Hz and you had specified a 1000 count encoder in N7 2 the RPM calculation for N7 5 would be 120 This equates to...

Page 380: ...de entry Last timeout First value storage Pass register S 1 MOV MOVE 15 Source C5 0 ACC 0 Dest N7 0 0 Frequency determination counter C5 0 RES Counts last rate measurement period CLR CLEAR Dest N7 1 0...

Page 381: ...counts that have occurred since the last time that it was executed as true in N7 1 last time last rate measurement timer T4 0 expiration The LES instruction allows for 10 counts of backlash to occur y...

Page 382: ...eriods DIV DIVIDE Source A 100 Source B T4 0 PRE 10 Dest C5 1 PRE 10 Frequency determination counter CTU COUNT UP CU Counter C5 1 DN Preset 10 Accum 0 Frequency calculation register ADD ADD Source A N...

Page 383: ...estination MUL MULTIPLY Source A N7 4 0 Source B 60 Dest N7 6 0 RPM based on counts per turn register N7 2 DDV DOUBLE DIVIDE Source N7 2 1000 Dest N7 5 0 Math overflow error bit S 5 U 0 Rung 2 3 HSC H...

Page 384: ...e shot from the input push button to an internal bit the internal bit is true for only one scan This prevent toggling of the physical output in case the push button is held ON for more than one scan a...

Page 385: ...F push button Toggling Toggling false to Output Output true B3 O 0 O 0 U 0 0 0 Rung 2 3 Contains the label corresponding to the jump instruction in rung 1 The remainder of your actual program would be...

Page 386: ...instructions see chapter 6 EQU and LIM instructions see chapter 7 FFU and FFL instructions see chapter 9 BSL instruction see chapter 11 Bar Code Reader I 0 2 3 4 Input Proximity Switch I 0 1 Paint Spr...

Page 387: ...spray booth Both of these instructions place data into their data structures every time a part carrier actuates the shift limit switch If the proximity switch senses a part on the carrier a 1 is shif...

Page 388: ...spray guns it is also decoding the color information at N7 0 and energizing the appropriate spray guns Since we are only using three colors the only valid color codes are 1 2 and 3 If any other number...

Page 389: ...y Switch painted part I 0 FFU FIFO UNLOAD EU 0 FIFO N7 0 DN Dest N7 10 EM Control R6 0 Length 4 Position 4 Load color of new part FFL FIFO LOAD EU Source N7 4 DN FIFO N7 0 EM Control R6 0 Length 4 Pos...

Page 390: ...aint gun Blue Gun EQU O 0 EQUAL Source A N7 0 0 0 Source B 1 LIM LIMIT TEST Low Limit 4 Test N7 0 0 High Lim 1 Rung 2 6 Decodes color select word If N7 0 2 then energize the yellow paint gun Yellow Gu...

Page 391: ...et or delay is adjusted up or down accordingly By altering the value of N7 0 the amount of change can be increased or decreased The constants in the LES and GRT instructions and in the source and dest...

Page 392: ...ot go below 5 0 seconds delay Decrement Timer preset I 0 GRT B3 SUB GREATER THAN OSR SUBTRACT 9 Source A T4 0 PRE 1 Source A T4 0 PRE 500 500 Source B 750 Source B N7 0 0 Dest T4 0 PRE 500 Rung 2 2 TO...

Page 393: ...channel using software offsets to increase the expected accuracy of an analog input circuit Examples of equations and a ladder diagram are provided for your reference Software calibration reduces the...

Page 394: ...ge of 31043 to 31371 Any value in this range is returned by an analog input channel at 20 mA The expected nominal value at 20 mA is 31207 After performing a software calibration the overall error is r...

Page 395: ...tion capture the low value by setting and then resetting the CAL_LO_ENABLE bit Ensure that your low value lies within the conversion range of your analog input 4 Using an analog calibration source con...

Page 396: ...set values used to calibrate the analog input channel Once the calibration procedure is complete set the CONVERSION ENABLE bit to a 1 The calibration numbers can then be used to scale the raw analog d...

Page 397: ...UE Rung 2 2 CALIBRATE B3 506 SUB OSR SUBTRACT Source A HI_CAL_VALUE 0 Source B LO_CAL_VALUE 0 Dest CAL_SPAN 0 SUB SUBTRACT Source A SCALE_HI 0 Source B SCALE_LO 0 Dest SCALE_SPAN 0 MUL MULTIPLY Source...

Page 398: ...Dest N7 98 0 DDV DOUBLE DIVIDE Source 10000 10000 Dest N7 99 0 SUB SUBTRACT Source A SCALE_LOW 0 Source B N7 99 0 Dest OFFSET 0 Overflow Trap S2 5 0 U Rung 2 3 CONVERSION_ENABLE SCL SCALE Source A AN...

Page 399: ...t The smallest storage location in memory that contains either a 1 ON or a 0 OFF block diagrams A schematic drawing Boolean operators Logical operators such as AND OR NAND NOR NOT and Exclusive OR tha...

Page 400: ...al railing designed to ease installation and mounting of your controller download Data is transferred from a programming or storage device to another device DTE Data Terminal Equipment Equipment that...

Page 401: ...A program written in a format resembling a ladder like diagram The program is used by a programmable controller to control devices lease significant bit LSB The digit or bit in a binary word code tha...

Page 402: ...der programming a symbol that will allow logic continuity flow if the referenced input is logic 1 when evaluated offset The steady state deviation of a controlled variable from a fixed point offline D...

Page 403: ...or executes the ladder program monitors input devices energizes output devices and acts on enabled I O forces restore To download transfer a program from a personal computer to a controller reserved b...

Page 404: ...hput The time between when an input turns on and the corresponding output turns on true The status of an instruction that provides a continuous logical path on a ladder rung update time For analog inp...

Page 405: ...2 16 preventing excessive heat 1 13 spacing 1 14 troubleshooting 14 2 type 1 3 wiring 2 4 wiring diagram 2 16 1761 L16BWA features 1 3 grounding 2 2 input voltage range 2 10 mounting 1 14 output volta...

Page 406: ...14 output voltage range 2 17 preventing excessive heat 1 13 spacing 1 14 troubleshooting 14 2 type 1 3 wiring 2 4 wiring diagram 2 17 1761 L32BWA features 1 3 grounding 2 2 input voltage range 2 11 mo...

Page 407: ...output specifications A 6 And AND 9 18 execution times 9 18 instruction parameters C 4 updates to arithmetic status bits 9 18 valid addressing modes C 4 valid file types C 4 AND And 9 18 application e...

Page 408: ...t Right BSR 11 6 effects on index register S 24 11 4 entering parameters 11 3 execution times 11 5 11 6 instruction parameters C 4 using operation 11 6 valid addressing modes C 4 valid file types C 4...

Page 409: ...mple 9 6 execution times 9 5 instruction parameters C 6 updates to arithmetic status bits 9 5 valid addressing modes C 6 valid file types C 6 Convert to BCD TOD 9 3 changes to the math register 9 3 ex...

Page 410: ...iceNet Communications 3 18 DF1 full duplex protocol configuration parameters D 3 connecting 3 2 description D 3 example system configuration D 4 using a modem 3 3 D 9 DF1 half duplex protocol configur...

Page 411: ...nstruction parameters C 13 valid addressing modes C 13 valid file types C 13 Examine if Open XIO 6 4 execution times 6 4 instruction parameters C 13 valid addressing modes C 13 valid file types C 13 e...

Page 412: ...valid file types C 6 Greater Than or Equal GEQ 7 4 execution times 7 4 instruction parameters C 6 valid addressing modes C 6 valid file types C 6 grounding the controller 2 2 GRT Greater Than 7 4 H ha...

Page 413: ...HSL High Speed Counter Load 12 18 I I O configuration analog 5 3 I O image analog 5 2 identifying controller faults 14 6 IIM Immediate Input with Mask 10 9 Immediate Input with Mask IIM 10 9 entering...

Page 414: ...eters C 8 nesting subroutine files 10 5 using 10 5 valid addressing modes C 8 valid file types C 8 L Label LBL 10 2 entering parameters 10 2 execution times 10 2 instruction parameters C 8 using 10 3...

Page 415: ...out 8 2 Add ADD 8 4 Clear CLR 8 11 Divide DIV 8 9 Double Divide DDV 8 10 in the paper drilling machine application example 8 14 Multiply MUL 8 8 overview 8 2 changes to the math register S 13 and S 14...

Page 416: ...ister 8 8 execution times 8 8 instruction parameters C 10 updates to arithmetic status bits 8 8 valid addressing modes C 10 valid file types C 10 MVM Masked Move 9 16 N NEG Negate 9 22 Negate NEG inst...

Page 417: ...utput voltage ranges 1761 L10BWA 2 9 1761 L10BWB 2 12 1761 L16AWA 2 7 1761 L16BBB 2 16 1761 L16BWA 2 10 1761 L16BWB 2 13 1761 L20AWA 5A 2 18 1761 L20BWA 5A 2 19 1761 L20BWB 5A 2 20 1761 L32AAA 2 15 17...

Page 418: ...ulator 12 22 RC network example 1 9 related publications P 5 relay contact rating table A 5 relays surge suppressors for 1 10 remote packet support D 22 replacement parts controller A 10 RES Reset 6 2...

Page 419: ...Timed Disable STD 11 18 Selectable Timed Enable STE 11 18 Selectable Timed Start STS 11 20 STD STE zone example 11 18 Selectable Timed Start STS 11 20 execution times 11 20 instruction parameters C 1...

Page 420: ...ing 10 6 valid addressing modes C 11 valid file types C 11 Subtract SUB 8 5 execution times 8 5 instruction parameters C 12 updates to arithmetic status bits 8 5 valid addressing modes C 12 valid file...

Page 421: ...r file overview 4 4 specifying indexed addresses 4 12 specifying logical addresses 4 10 using the file indicator 4 13 up counter operation 12 8 overview 12 7 up counter with reset and hold operation 1...

Page 422: ...d France Germany Greece Guatemala Honduras Hong Kong Hungary Iceland India Indonesia Ireland Israel Italy Jamaica Japan Jordan Korea Kuwait Lebanon Malaysia Mexico Netherlands New Zealand Norway Pakis...

Reviews: