The text of a manual · part 49 of 61
DL205 PLC User Manual, Volume 1 of 2: Chapter 5: RLL and Intelligent Box Instructions, pages 463 to 472
Pages 463 to 472 of 592, from DL205 PLC User Manual, Volume 1 of 2
The original document is the PDF (13 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 PLC Direct D2-08ND3 and Koyo D2-08ND3
Page 463
Chapter 5: Intelligent Box (IBox) Instructions
FILTER Example In the following example, the Filter instruction is used to filter a BCD value that is in V2000. Timer(T0) is set to 0.5 sec, the rate at which the filter calculation will be performed. The filter constant is set to 2. A larger value will increase the smoothing effect of the filter. A value of 1 results with no filtering. The filtered value will be placed in V2100.
SP1
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–241
Page 464
Chapter 5: Intelligent Box (IBox) Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Filter Over Time - Binary (FILTERB) (IB-402)
230 240 250-1 260 DS5 Used HPP
N/A
5–242
Filter Over Time in Binary (decimal) will perform a first-order filter on the Raw Data on a defined time interval. The equation is: New = Old + [(Raw - Old) / FDC] where New: New Filtered Value Old: Old Filtered Value FDC: Filter Divisor Constant Raw: Raw Data
The Filter Divisor Constant is an integer in the range K1 to K100, such that if it equaled K1 then no filtering would be done. The rate at which the calculation is performed is specified by time in hundredths of a second (0.01 seconds) as the Filter Freq Time parameter. Note that this Timer instruction is embedded in the IBox and must NOT be used anywhere else in your program. Power flow controls whether the calculation is enabled. If it is disabled, the Filter Value is not updated. On the first scan from Program to Run mode, the Filter Value is initialized to 0 to give the calculation a consistent starting point. FILTERB Parameters • Filter Frequency Timer: specifies the Timer (T) number which is used by the Filter instruction • Filter Frequency Time (0.01sec): specifies the rate at which the calculation is performed • Raw Data (Binary): specifies the V-memory location of the raw unfiltered binary (decimal) value • Filter Divisor (1 to 100): this constant is used to control the filtering effect. A larger value will increase the smoothing effect of the filter. A value of 1 results with no filtering. • Filtered Value (Binary): specifies the V-memory location where the filtered binary (decimal) value will be placed
Parameter Filter Frequency Timer . . . . . . . . . . . . . . . . . . . T Filter Frequency Time (0.01 sec) . . . . . . . . . . . K Raw Data (Binary) . . . . . . . . . . . . . . . . . . . . . . . V Filter Divisor (1-100) . . . . . . . . . . . . . . . . . . . . . K Filtered Value (Binary) . . . . . . . . . . . . . . . . . . . . V
DL205 User Manual, 4th Edition, Rev. A
DL205 Range T0-377 K0-9999 See DL205 V-memory map - Data Words K1-100 See DL205 V-memory map - Data Words
Page 465
Chapter 5: Intelligent Box (IBox) Instructions
FILTERB Example In the following example, the FILTERB instruction is used to filter a binary value that is in V2000. Timer(T1) is set to 0.5 sec, the rate at which the filter calculation will be performed. The filter constant is set to 3. A larger value will increase the smoothing effect of the filter. A value of 1 results with no filtering. The filtered value will be placed in V2100
SP1
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–243
Page 466
Chapter 5: Intelligent Box (IBox) Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Hi/Low Alarm - BCD (HILOAL) (IB-421)
230 240 250-1 260 DS5 Used HPP
N/A
5–244
Hi/Low Alarm - BCD monitors a BCD value 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) BCD values (K0-K9999) and/or BCD value 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 LowLow 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. HILOAL Parameters • Monitoring Value (BCD): specifies the V-memory location of the BCD 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 (BCD) . . . . . . . . . . . . . . . . . . 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
DL205 User Manual, 4th Edition, Rev. A
DL205 Range See DL205 V-memory map - Data Words K0-9999; or see DL205 V-memory map - Data Words See DL205 V-memory map K0-9999; or see DL205 V-memory map - Data Words See DL205 V-memory map K0-9999; or see DL205 V-memory map - Data Words See DL205 V-memory map K0-9999; or see DL205 V-memory map - Data Words See DL205 V-memory map
Page 467
Chapter 5: Intelligent Box (IBox) Instructions
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
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–245
Page 468
Chapter 5: Intelligent Box (IBox) Instructions
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) 230 240 250-1 260
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
DL205 User Manual, 4th Edition, Rev. A
DL205 Range See DL205 V-memory map - Data Words K0-65535; or see DL205 V-memory map - Data Words See DL205 V-memory map K0-65535; or see DL205 V-memory map - Data Words See DL205 V-memory map K0-65535; or see DL205 V-memory map - Data Words See DL205 V-memory map K0-65535; or see DL205 V-memory map - Data Words See DL205 V-memory map
Page 469
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.
SP1
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–247
Page 470
Chapter 5: Intelligent Box (IBox) Instructions
1 2
3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Off Delay Timer (OFFDTMR) (IB-302) 230 240 250-1 260
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 (up to 99.99 seconds) 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 (up to 99.99 seconds). • 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
DL205 User Manual, 4th Edition, Rev. A
DL205 Range T0-377 K0-9999; See DL205 V-memory map - Data Words See DL205 V-memory map
Page 471
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 on for the specified Off Delay Time (5 secs), and then turn off.
Example timing diagram
C100 5 sec
5 sec
C20
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–249
Page 472
Chapter 5: Intelligent Box (IBox) Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
On Delay Timer (ONDTMR) (IB-301)
230 240 250-1 260 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 (up to 99.99 seconds) 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 (up to 99.99 seconds). • 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
DL205 User Manual, 4th Edition, Rev. A
DL205 Range T0-377 K0-9999; See DL205 V-memory map - Data Words See DL205 V-memory map