The text of a manual · part 48 of 61
DL205 PLC User Manual, Volume 1 of 2: Chapter 5: RLL and Intelligent Box Instructions, pages 453 to 462
Pages 453 to 462 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 453
Chapter 5: Intelligent Box (IBox) Instructions Communication IBoxes Instruction ECOM100 Configuration (ECOM100) ECOM100 Disable DHCP (ECDHCPD) ECOM100 Enable DHCP (ECDHCPE) ECOM100 Query DHCP Setting (ECDHCPQ) ECOM100 Send E-mail (ECEMAIL) ECOM100 Restore Default E-mail Setup (ECEMRDS) ECOM100 E-mail Setup (ECEMSUP) ECOM100 IP Setup (ECIPSUP) ECOM100 Read Description (ECRDDES) ECOM100 Read Gateway Address (ECRDGWA) ECOM100 Read IP Address (ECRDIP) ECOM100 Read Module ID (ECRDMID) ECOM100 Read Module Name (ECRDNAM) ECOM100 Read Subnet Mask (ECRDSNM) ECOM100 Write Description (ECWRDES) ECOM100 Write Gateway Address (ECWRGWA) ECOM100 Write IP Address (ECWRIP) ECOM100 Write Module ID (ECWRMID) ECOM100 Write Name (ECWRNAM) ECOM100 Write Subnet Mask (ECWRSNM) ECOM100 RX Network Read (ECRX) ECOM100 WX Network Write(ECWX) NETCFG Network Configuration (NETCFG) Network RX Read (NETRX) Network WX Write (NETWX)
Ibox #
Page
IB-710 IB-736 IB-735 IB-734 IB-711 IB-713 IB-712 IB-717 IB-726 IB-730 IB-722 IB-720 IB-724 IB-732 IB-727 IB-731 IB-723 IB-721 IB-725 IB-733 IB-740 IB-741 IB-700 IB-701 IB-702
5-272 5-274 5-276 5-278 5-280 5-283 5-286 5-290 5-292 5-294 5-296 5-298 5-300 5-302 5-304 5-306 5-308 5-310 5-312 5-314 5-316 5-319 5-322 5-324 5-327
Counter I/O IBoxes Instruction CTRIO Configuration (CTRIO) CTRIO Add Entry to End of Preset Table (CTRADPT) CTRIO Clear Preset Table (CTRCLRT) CTRIO Edit Preset Table Entry (CTREDPT) CTRIO Edit Preset Table Entry and Reload (CTREDRL) CTRIO Initialize Preset Table (CTRINPT) CTRIO Initialize Preset Table (CTRINTR) CTRIO Load Profile (CTRLDPR) CTRIO Read Error (CTRRDER) CTRIO Run to Limit Mode (CTRRTLM) CTRIO Run to Position Mode (CTRRTPM) CTRIO Velocity Mode (CTRVELO) CTRIO Write File to ROM (CTRWFTR)
Ibox #
Page
IB-1000 IB-1005 IB-1007 IB-1003 IB-1002 IB-1004 IB-1010 IB-1001 IB-1014 IB-1011 IB-1012 IB-1013 IB-1006
5-330 5-332 5-335 5-338 5-342 5-346 5-350 5-354 5-357 5-359 5-362 5-365 5-368
NOTE: Check your CPU firmware version using DirectSOFT: PLC Menu > Diagnostics > System Information. The latest firmware and update tool are available from:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D http://support.automationdirect.com/firmware/index.html
DL205 User Manual, 4th Edition, Rev. A
5–231
Page 454
Chapter 5: Intelligent Box (IBox) Instructions
1
2
3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Analog Input/Output Combo Module Pointer Setup (ANLGCMB) (IB-462) 230 240 250-1 260
DS5
Used
HPP
N/A
5–232
The Analog Input/Output Combo Module Pointer Setup instruction generates the logic to configure the pointer method for an analog input/output combination module on the first PLC scan following a Program to Run transition. The ANLGCMB IBox instruction determines the data format and Pointer addresses based on the CPU type, the Base# and the module Slot#. The Input Data Address is the starting location in user V-memory where the analog input data values will be stored, one location for each input channel enabled. The Output Data Address is the starting location in user V-memory where the analog output data values will be stored by ladder code or external device, one location for each output channel enabled. Since the IBox logic only executes on the first scan, the instruction cannot have any input logic. ANLGCMB Parameters • Base # (K0-Local): specifies which base the module is in • Slot #: specifies which slot is occupied by the analog module • Number of Input Channels: specifies the number of analog input channels to scan • Input Data Format (0-BCD 1-BIN): specifies the analog input data format (BCD or Binary) - the binary format may be used for displaying data on some OI panels • Input Data Address: specifies the starting V-memory location that will be used to store the analog input data • Number of Output Channels: specifies the number of analog output channels that will be used • Output Data Format (0-BCD 1-BIN): specifies the format of the analog output data (BCD or Binary) • Output Data Address: specifies the starting V-memory location that will be used to source the analog output data NOTE The ANLGCMB instruction does not currently support the F2-8AD4DA-1 or F2-8AD4DA-2.
DL205 User Manual, 4th Edition, Rev. A
Page 455
Chapter 5: Intelligent Box (IBox) Instructions Parameter
DL205 Range
1 2 3 4 ANLGCMB Example 5 In the following example, the ANLGCMB instruction is used to set up the pointer method for an analog I/O combination module that is installed in option slot 2. Four input channels are enabled and the analog data will be written to V2000 - V2003 in BCD format. Two 6 output channels are enabled and the analog values will be read from V2100 - V2101 in BCD format. 7 8 9 10 11 12 NOTE: An Analog I/O IBox instruction is used without a permissive contact. The top line will be identified in BOLD italics, and the instruction name and ID will be in BOLD characters. 13 14 A B C D Base # (K0-Local) . . . . . . . . . . . . . . . . . . . . . . . K Slot # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Number of Input Channels . . . . . . . . . . . . . . . . K Input Data Format (0-BCD 1-BIN) . . . . . . . . . . . K Input Data Address . . . . . . . . . . . . . . . . . . . . . . V Number of Output Channels . . . . . . . . . . . . . . . K Output Data Format (0-BCD 1-BIN) . . . . . . . . . K Output Data Address . . . . . . . . . . . . . . . . . . . . . V
K0-3 K0-7 K1-8 BCD: K0; Binary: K1 See DL205 V-memory map - Data Words K1-8 BCD: K0; Binary: K1 See DL205 V-memory map - Data Words
No permissive contact or input logic is used with this instruction
DL205 User Manual, 4th Edition, Rev. A
5–233
Page 456
Chapter 5: Intelligent Box (IBox) Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Analog Input Module Pointer Setup (ANLGIN) (IB-460)
240 250-1 260 230
DS5
Used
HPP
N/A
5–234
Analog Input Module Pointer Setup generates the logic to configure the pointer method for one analog input module on the first PLC scan following a Program to Run transition. This IBox determines the data format and Pointer addresses based on the CPU type, the Base#, and the Slot#. The Input Data Address is the starting location in user V-memory where the analog input data values will be stored, one location for each input channel enabled. Since this logic only executes on the first scan, this IBox cannot have any input logic. ANLGIN Parameters • Base # (K0-Local): specifies which base the analog module is in • Slot #: specifies which PLC slot is occupied by the analog module • Number of Input Channels: specifies the number of input channels to scan • Input Data Format (0-BCD 1-BIN): specifies the analog input data format (BCD or Binary) - the binary format may be used for displaying data on some OI panels • Input Data Address: specifies the starting V-memory location that will be used to store the analog input data
Parameter Base # (K0-Local) . . . . . . . . . . . . . . . . . . . . . . . K Slot # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Number of Input Channels . . . . . . . . . . . . . . . . K Input Data Format (0-BCD 1-BIN) . . . . . . . . . . . K Input Data Address . . . . . . . . . . . . . . . . . . . . . . V
DL205 User Manual, 4th Edition, Rev. A
DL205 Range K0-3 K0-7 K1-8 BCD: K0; Binary: K1 See DL205 V-memory map - Data Words
Page 457
Chapter 5: Intelligent Box (IBox) Instructions
ANLGIN Example
1 2 3 4 5 6 7 NOTE: An Analog I/O IBox instruction is used without a permissive contact. The top line will be identified in 8 BOLD italics, and the instruction name and ID will be in BOLD characters. 9 10 11 12 13 14 A B C D In the following example, the ANLGIN instruction is used to set up the pointer method for an analog input module that is installed in option slot 1. Eight input channels are enabled and the analog data will be written to V2000 - V2007 in BCD format.
No permissive contact or input logic is used with this instruction
DL205 User Manual, 4th Edition, Rev. A
5–235
Page 458
Chapter 5: Intelligent Box (IBox) Instructions
1
2
3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Analog Output Module Pointer Setup (ANLGOUT) (IB-461) 230 240 250-1 260
DS5
Used
HPP
N/A
5–236
Analog Output Module Pointer Setup generates the logic to configure the pointer method for one analog output module on the first PLC scan following a Program to Run transition. This IBox determines the data format and Pointer addresses based on the CPU type, the Base#, and the Slot#. The Output Data Address is the starting location in user V-memory where the analog output data values will be placed by ladder code or external device, one location for each output channel enabled. Since this logic only executes on the first scan, this IBox cannot have any input logic. ANLGOUT Parameters • Base # (K0-Local): specifies which base the analog module is in • Slot #: specifies which PLC slot is occupied by the analog module • Number of Output Channels: specifies the number of analog output channels that will be used • Output Data Format (0-BCD 1-BIN): specifies the format of the analog output data (BCD or Binary) • Output Data Address: specifies the starting V-memory location that will be used to source the analog output data
Parameter Base # (K0-Local) . . . . . . . . . . . . . . . . . . . . . . . K Slot # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Number of Output Channels . . . . . . . . . . . . . . . K Output Data Format (0-BCD 1-BIN). . . . . . . . . . K Output Data Address . . . . . . . . . . . . . . . . . . . . . V
DL205 User Manual, 4th Edition, Rev. A
DL205 Range K0-3 K0-7 K1-8 BCD: K0; Binary: K1 See DL205 V-memory map - Data Words
Page 459
Chapter 5: Intelligent Box (IBox) Instructions
ANLGOUT Example
1 2 3 4 5 6 7 NOTE: An Analog I/O IBox instruction is used without a permissive contact. The top line will be identified in BOLD italics, and the instruction name and ID will be in BOLD characters. 8 9 10 11 12 13 14 A B C D In the following example, the ANLGOUT instruction is used to set up the pointer method for an analog output module that is installed in option slot 3. Two output channels are enabled and the analog data will be read from V2100 - V2101 in BCD format.
No permissive contact or input logic is used with this instruction
DL205 User Manual, 4th Edition, Rev. A
5–237
Page 460
Chapter 5: Intelligent Box (IBox) Instructions
Analog Scale 12-Bit BCD to BCD (ANSCL) (IB-423)
Analog Scale 12-Bit BCD to BCD scales a 12-bit BCD analog value (0 to 4095 BCD) into 1 BCD engineering units. You specify the engineering unit high value (when raw is 4095), and the engineering low value (when raw is
2 0), and the output V-memory address where you want to place the scaled engineering unit value. The engineering 3 units are generated as BCD and can be the full range of 0 to 9999 (see ANSCLB 4 - Analog Scale 12-Bit Binary to Binary if your raw units are in Binary format). 5 Note that this IBox only works with unipolar unsigned raw values. It does NOT work with bipolar or sign plus 6 magnitude raw values. 7 ANSCL Parameters • Raw (0 to 4095 BCD): specifies the V-memory location of the unipolar unsigned raw 0 to 4095 8 unscaled value • High Engineering: specifies the high engineering value when the raw input is 4095 9 • Low Engineering: specifies the low engineering value when the raw input is 0 • Engineering (BCD): specifies the V-memory location where the scaled engineering BCD value will 10 be placed Parameter DL205 Range 11 12 13 ANSCL Example In the following example, the ANSCL instruction is used to scale a raw value (0 to 4095 14 BCD) that is in V2000. The engineering scaling range is set 0 to 100 (low engineering value - high engineering value). The scaled value will be placed in V2100 in BCD format. A B C D 230 240
250-1 260
DS5
Used
HPP
N/A
Raw (0-4095 BCD) . . . . . . . . . . . . . . . . . . . . . V,P High Engineering . . . . . . . . . . . . . . . . . . . . . . . . K Low Engineering . . . . . . . . . . . . . . . . . . . . . . . . K Engineering (BCD). . . . . . . . . . . . . . . . . . . . . . V,P
SP1
5–238
DL205 User Manual, 4th Edition, Rev. A
See DL205 V-memory map - Data Words K0-9999 K0-9999 See DL205 V-memory map - Data Words
Page 461
Chapter 5: Intelligent Box (IBox) Instructions
Analog Scale 12-Bit Binary to Binary (ANSCLB) (IB-403)
230 240 250-1 260 DS5
Used
HPP
N/A
Analog Scale 12-Bit Binary to Binary scales a 12-bit binary analog value (0 to 4095 decimal) into binary (decimal) engineering units. You specify the engineering unit high value (when raw is 4095), and the engineering low value (when raw is 0), and the output Vmemory address where you want to place the scaled engineering unit value. The engineering units are generated as binary and can be the full range of 0 to 65535 (see ANSCL - Analog Scale 12-Bit BCD to BCD if your raw units are in BCD format). Note that this IBox only works with unipolar unsigned raw values. It does NOT work with bipolar, sign plus magnitude, or signed 2's complement raw values. ANSCLB Parameters • Raw (12-bit binary): specifies the V-memory location of the unipolar unsigned raw decimal unscaled value (12-bit binary = 0 to 4095 decimal) • High Engineering: specifies the high engineering value when the raw input is 4095 decimal • Low Engineering: specifies the low engineering value when the raw input is 0 decimal • Engineering (binary): specifies the V-memory location where the scaled engineering decimal value will be placed
Parameter
DL205 Range
Raw (12-bit binary) . . . . . . . . . . . . . . . . . . . . V,P High Engineering . . . . . . . . . . . . . . . . . . . . . . . . K Low Engineering . . . . . . . . . . . . . . . . . . . . . . . . K Engineering (binary) . . . . . . . . . . . . . . . . . . . . V,P
See DL205 V-memory map - Data Words K0-65535 K0-65535 See DL205 V-memory map - Data Words
ANSCLB Example In the following example, the ANSCLB instruction is used to scale a raw value (0 to 4095 binary) that is in V2000. The engineering scaling range is set 0 to 1000 (low engineering value - high engineering value). The scaled value will be placed in V2100 in binary format. 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–239
Page 462
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 - BCD (FILTER) (IB-422) 230 240 250-1 260
DS5
Used
HPP
N/A
5–240
Filter Over Time BCD 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. FILTER 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 (BCD): specifies the V-memory location of the raw unfiltered BCD 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 (BCD): specifies the V-memory location where the filtered BCD value will be placed
Parameter Filter Frequency Timer . . . . . . . . . . . . . . . . . . . T Filter Frequency Time (0.01 sec) . . . . . . . . . . . K Raw Data (BCD) . . . . . . . . . . . . . . . . . . . . . . . . V Filter Divisor (1-100) . . . . . . . . . . . . . . . . . . . . . K Filtered Value (BCD) . . . . . . . . . . . . . . . . . . . . . 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