Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 29 of 40

DL05 Micro PLC User Manual, Volume 1 of 2: Chapter 5: Standard RLL and Intelligent Box Instructions, pages 264 to 273

Pages 264 to 273 of 379, from DL05 Micro PLC User Manual, Volume 1 of 2

The original document is the PDF (5.8 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect D0-05AA

Page 264

Chapter 5: Intelligent Box (IBox) - Analog Helper

HILOAL Example In the following example, the HILOAL instruction is used to monitor a BCD value that is in V2000. If the value in V2000 meets/exceeds the high limit of K900, C101 will turn on. If the value continues to increase to meet/exceed the high-high limit, C100 will turn on. Both bits would be on in this case. The high and high-high limits and alarms can be set to the same value if one “high” limit or alarm is desired to be used. If the value in V2000 meets or falls below the low limit of K200, C102 will turn on. If the value continues to decrease to meet or fall below the low-low limit of K100, C103 will turn on. Both bits would be on in this case. The low and low-low limits and alarms can be set to the same value if one “low” limit or alarm is desired to be used.

SP1

DL05 Micro PLC User Manual, 6th Edition, Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–141

Page 265

Chapter 5: Intelligent Box (IBox) - Analog Helper

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Hi/Low Alarm - Binary (HILOALB) (IB-401) DS5

Used

HPP

N/A

5–142

Hi/Low Alarm - Binary monitors a binary (decimal) V-memory location and sets four possible alarm states, High-High, High, Low, and Low-Low whenever the IBox has power flow. You enter the alarm thresholds as constant K decimal values (K0-K65535) and/or binary (decimal) V-memory locations. You must ensure that threshold limits are valid, that is HH >= H > L >= LL. Note that when the High-High or Low-Low alarm condition is true, that the High and Low alarms will also be set, respectively. This means you may use the same threshold limit and same alarm bit for the HighHigh and the High alarms in case you only need one "High" alarm. Also note that the boundary conditions are inclusive. That is, if the Low boundary is K50, and the Low-Low boundary is K10, and if the Monitoring Value equals 10, then the Low Alarm AND the Low-Low alarm will both be ON. If there is no power flow to the IBox, then all alarm bits will be turned off regardless of the value of the Monitoring Value parameter. HILOALB Parameters • Monitoring Value (Binary): specifies the V-memory location of the Binary value to be monitored • High-High Limit: V-memory location or constant specifies the high-high alarm limit • High-High Alarm: On when the high-high limit is reached • High Limit: V-memory location or constant specifies the high alarm limit • High Alarm: On when the high limit is reached • Low Limit: V-memory location or constant specifies the low alarm limit • Low Alarm: On when the low limit is reached • Low-Low Limit: V-memory location or constant specifies the low-low alarm limit • Low-Low Alarm: On when the low-low limit is reached

Parameter Monitoring Value (Binary) . . . . . . . . . . . . . . . . V High-High Limit . . . . . . . . . . . . . . . . . . . . . . . V, K High-High Alarm . . . . . . . . . . . X, Y, C, GX,GY, B High Limit . . . . . . . . . . . . . . . . . . . . . . . . . . . V, K High Alarm . . . . . . . . . . . . . . . . X, Y, C, GX,GY, B Low Limit . . . . . . . . . . . . . . . . . . . . . . . . . . . V, K Low Alarm . . . . . . . . . . . . . . . . X, Y, C, GX,GY,B Low-Low Limit . . . . . . . . . . . . . . . . . . . . . . . V, K Low-Low Alarm. . . . . . . . . . . . . X, Y, C, GX,GY, B

DL05 Range See DL05 V-memory map - Data Words K0-65535; or see DL05 V-memory map - Data Words See DL05 V-memory map K0-65535; or see DL05 V-memory map - Data Words See DL05 V-memory map K0-65535; or see DL05 V-memory map - Data Words See DL05 V-memory map K0-65535; or see DL05 V-memory map - Data Words See DL05 V-memory map

DL05 Micro PLC User Manual, 6th Edition, Rev. A

Page 266

Chapter 5: Intelligent Box (IBox) - Analog Helper

HILOALB Example In the following example, the HILOALB instruction is used to monitor a binary value that is in V2000. If the value in V2000 meets/exceeds the high limit of the binary value in V2011, C101 will turn on. If the value continues to increase to meet/exceed the high-high limit value in V2010, C100 will turn on. Both bits would be on in this case. The high and high-high limits and alarms can be set to the same V-memory location/value if one “high” limit or alarm is desired to be used. If the value in V2000 meets or falls below the low limit of the binary value in V2012, C102 will turn on. If the value continues to decrease to meet or fall below the low-low limit in V2013, C103 will turn on. Both bits would be on in this case. The low and low-low limits and alarms can be set to the same V-memory location/value if one “low” limit or alarm is desired to be used. SP1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

DL05 Micro PLC User Manual, 6th Edition, Rev. A

5–143

Page 267

Chapter 5: Intelligent Box (IBox) - Discrete Helper

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Off Delay Timer (OFFDTMR) (IB-302) DS5

Used

HPP

N/A

5–144

Off Delay Timer will delay the "turning off" of the Output parameter by the specified Off Delay Time (in hundredths of a second) based on the power flow into the IBox. Once the IBox receives power, the Output bit will turn on immediately. When the power flow to the IBox turns off, the Output bit WILL REMAIN ON for the specified amount of time (in hundredths of a second). Once the Off Delay Time has expired, the output will turn Off. If the power flow to the IBox comes back on BEFORE the Off Delay Time, then the timer is RESET and the Output will remain On - so you must continuously have NO power flow to the IBox for AT LEAST the specified Off Delay Time before the Output will turn Off. This IBox utilizes a Timer resource (TMRF), which cannot be used anywhere else in your program. OFFDTMR Parameters • Timer Number: specifies the Timer(TMRF) number which is used by the OFFDTMR instruction • Off Delay Time (0.01sec): specifies how long the Output will remain on once power flow to the Ibox is removed • Output: specifies the output that will be delayed “turning off ” by the Off Delay Time.

Parameter Timer Number . . . . . . . . . . . . . . . . . . . . . . . . . T Off Delay Time . . . . . . . . . . . . . . . . . . . . . . . . K,V Output . . . . . . . . . . . . . . . . . . . . X, Y, C, GX,GY, B

DL05 Range T0-177 K0-9999; See DL05 V-memory map - Data Words See DL05 V-memory map

DL05 Micro PLC User Manual, 6th Edition, Rev. A

Page 268

Chapter 5: Intelligent Box (IBox) - Discrete Helper

OFFDTMR Example In the following example, the OFFDTMR instruction is used to delay the “turning off ”of output C20. Timer 2 (T2) is set to 5 seconds, the “off-delay” period. When C100 turns on, C20 turns on and will remain on while C100 is on. When C100 turns off, C20 will remain for the specified Off Delay Time (5s), and then turn off.

Example timing diagram

C100 5 sec

5 sec

C20

DL05 Micro PLC User Manual, 6th Edition, Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–145

Page 269

Chapter 5: Intelligent Box (IBox) - Discrete Helper

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

On Delay Timer (ONDTMR) (IB-301) DS5

Used

HPP

N/A

5–146

On Delay Timer will delay the "turning on" of the Output parameter by the specified amount of time (in hundredths of a second) based on the power flow into the IBox. Once the IBox loses power, the Output is turned off immediately. If the power flow turns off BEFORE the On Delay Time, then the timer is RESET and the Output is never turned on, so you must have continuous power flow to the IBox for at least the specified On Delay Time before the Output turns On. This IBox utilizes a Timer resource (TMRF), which cannot be used anywhere else in your program.

ONDTMR Parameters • Timer Number: specifies the Timer(TMRF) number which is used by the ONDTMR instruction • On Delay Time (0.01sec): specifies how long the Output will remain on once power flow to the Ibox is removed • Output: specifies the output that will be delayed “turning on” by the On Delay Time.

Parameter Timer Number . . . . . . . . . . . . . . . . . . . . . . . . . T On Delay Time . . . . . . . . . . . . . . . . . . . . . . . . K,V Output . . . . . . . . . . . . . . . . . . . . X, Y, C, GX,GY, B

DL05 Range T0-177 K0-9999; See DL05 V-memory map - Data Words See DL05 V-memory map

DL05 Micro PLC User Manual, 6th Edition, Rev. A

Page 270

Chapter 5: Intelligent Box (IBox) - Discrete Helper

ONDTMR Example In the following example, the ONDTMR instruction is used to delay the “turning on” of output C21. Timer 1 (T1) is set to 2 seconds, the “on-delay” period. When C101 turns on, C21 is delayed turning on by 2 seconds. When C101 turns off, C21 turns off imediately.

Example timing diagram

C101 2 sec

2 sec

C21

DL05 Micro PLC User Manual, 6th Edition, Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–147

Page 271

Chapter 5: Intelligent Box (IBox) - Discrete Helper

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

One Shot (ONESHOT) (IB-303) DS5

Used

HPP

N/A

One Shot will turn on the given bit output parameter for one scan on an OFF to ON transition of the power flow into the IBox. This IBox is simply a different name for the PD Coil (Positive Differential). ONESHOT Parameters • Discrete Output: specifies the output that will be on for one scan

Parameter

DL05 Range

Discrete Output . . . . . . . . . . . . . . . . . . . . . X, Y, C

See DL05 V-memory map

ONESHOT Example

5–148

In the following example, the ONESHOT instruction is used to turn C100 on for one PLC scan after C0 goes from an off to on transition. The input logic must produce an off to on transition to execute the One Shot instruction.

Example timing diagram C0 Scan time

C100

DL05 Micro PLC User Manual, 6th Edition, Rev. A

Page 272

Chapter 5: Intelligent Box (IBox) - Discrete Helper

Push On / Push Off Circuit (PONOFF) (IB-300) DS5 HPP

1 2 3 PONOFF Parameters • Discrete Input: specifies the input that will 4 toggle the specified output • Discrete Output: specifies the output that will 5 be “turned on/off ” or toggled • Internal State: specifies a work bit that is used by the instruction 6 Parameter DL05 Range 7 8 9 PONOFF Example 10 In the following example, the PONOFF instruction is used to control the on and off states of the output C20 with a single input C10. When C10 is pressed once, C20 turns on. When 11 C10 is pressed again, C20 turns off. C100 is an internal bit used by the instruction. 12 13 14 A B C D Used

N/A

Push On/Push Off Circuit toggles an output state whenever its input power flow transitions from off to on. Requires an extra bit parameter for scan-to-scan state information. This extra bit must NOT be used anywhere else in the program. This is also known as a “flip-flop circuit”.

Discrete Input . . . . X,Y,C,S,T,CT,GX,GY,SP,B,PB Discrete Output . . . . . . . . . . . . . . X,Y,C,GX,GY,B Internal State . . . . . . . . . . . . . . . . . . . . . . . X, Y, C

See DL05 V-memory map See DL05 V-memory map See DL05 V-memory map

DL05 Micro PLC User Manual, 6th Edition, Rev. A

5–149

Page 273

Chapter 5: Intelligent Box (IBox) - Memory

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Move Single Word (MOVEW) (IB-200) DS5

Used

HPP

N/A

Move Single Word moves (copies) a word to a memory location directly or indirectly via a pointer, either as a HEX constant, from a memory location, or indirectly through a pointer. MOVEW Parameters • From WORD: specifies the word that will be moved to another location • To WORD: specifies the location where the “From WORD” will be move to

Parameter From WORD . . . . . . . . . . . . . . . . . . . . . . . . V,P,K To WORD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . V,P

DL05 Range K0-FFFF; See DL05 V-memory map - Data Words See DL05 V-memory map - Data Words

MOVEW Example

5–150

In the following example, the MOVEW instruction is used to move 16-bits of data from V2000 to V3000 when C100 turns on.

DL05 Micro PLC User Manual, 6th Edition, Rev. A