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

The text of a manual · part 41 of 53

DL06 Micro PLC User Manual, Volume 1 of 2, pages 400 to 409

Pages 400 to 409 of 524

The original document is the PDF (6.4 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 Direct Logic DL06 and Koyo DL06 D0-06DD1

Page 400

Chapter 5: Intelligent Box (IBox) Instructions

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

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

DS5

Used

HPP

N/A

5–246

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 High-High 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

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

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

Page 401

Chapter 5: Intelligent Box (IBox) Instructions

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.

1

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

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

5–247

Page 402

Chapter 5: Intelligent Box (IBox) Instructions

Off Delay Timer (OFFDTMR) (IB-302)

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

DS5

Used

HPP

N/A

5–248

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

DL06 Range T0-377 K0-9999; See DL06 V-memory map - Data Words See DL06 V-memory map

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

Page 403

Chapter 5: Intelligent Box (IBox) Instructions

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

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

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

5–249

Page 404

Chapter 5: Intelligent Box (IBox) Instructions

On Delay Timer (ONDTMR) (IB-301)

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

DS5

Used

HPP

N/A

5–250

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 off once power flow to the Ibox is applied. • 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

DL06 Range T0-377 K0-9999; See DL06 V-memory map - Data Words See DL06 V-memory map

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

Page 405

Chapter 5: Intelligent Box (IBox) Instructions

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 immediately.

Example timing diagram

C101 2 sec

2 sec

C21

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

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

5–251

Page 406

Chapter 5: Intelligent Box (IBox) Instructions

One Shot (ONESHOT) (IB-303)

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

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 Discrete Output . . . . . . . . . . . . . . . . . . . . . X, Y, C

DL06 Range See DL06 V-memory map

ONESHOT Example

5–252

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

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

Page 407

Chapter 5: Intelligent Box (IBox) Instructions

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

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”. The PONOFF IBox cannot have any input logic.

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

N/A

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 DL06 V-memory map See DL06 V-memory map See DL06 V-memory map

Permissive contacts or input logic cannot be used with this instruction

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

5–253

Page 408

Chapter 5: Intelligent Box (IBox) Instructions

Move Single Word (MOVEW) (IB-200)

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

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

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

MOVEW Example

5–254

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

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

Page 409

Chapter 5: Intelligent Box (IBox) Instructions

Move Double Word (MOVED) (IB-201) DS5

Used

HPP

N/A

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

Parameter

DL06 Range

From DWORD . . . . . . . . . . . . . . . . . . . . . . V,P,K To DWORD . . . . . . . . . . . . . . . . . . . . . . . . . . . V,P

K0-FFFFFFFF; See DL06 V-memory map - Data Words See DL06 V-memory map - Data Words

MOVED Example In the following example, the MOVED instruction is used to move 32-bits of data from V2000 and V2001 to V3000 and V3001 when C100 turns on.

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

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

5–255