Home
here
Contents
1. K0 255 KO FF See DLO6 V memory map Data Words 112 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs NETCFG Example The Network Configuration Box coordinates all of the interaction with other Network IBoxes NETRX NETWX You must have a Network Configuration Box for each serial port network DCM module network or original ECOM module network in your system Configuration Boxes must be at the top of your program and must execute every scan This Box defines Network KO to be for the local CPU serial port 2 KF2 For local CPU serial ports or DCM ECOM modules use the same value you would use in the most significant byte of the first LD instruction in a normal RX WX rung to reference the port or module Any NETRX or NET WX Boxes that need to reference this specific network would enter KO for their Network parameter The Workspace register is used to maintain state information about the port or module along with proper sharing and interlocking with the other NETRX and NET WX Boxes in the program This V memory register must not be used anywhere else in the entire program Network Config NETCFG Network CPU Port or Slot ex KF2 or K3 Workspace DL06 Micro PLC User Manual Supplement Box Instructions l 1 13 DirectSOFTS5 IBox Instructions for DLO6 PLCs Network RX Read NETRX IB 701 Network RX Read performs the RX instruction with b
2. V2000 V2000 B The Workspace parameter is an internal private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Either the Success or Error bit parameter will turn on once the request is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 an SMPT protocol error between 100 and 999 or a PLC logic error greater than 1000 Since the ECOM100 is only an EMail Client and requires access to an SMTP Server you MUST have the SMTP parameters configured properly in the ECOM100 via the ECOM100 s Home Page and or the EMail Setup instruction ECEMSUP To get to the ECOM100 s Home Page use your favorite Internet browser and browse to the ECOM100 s IP Address e g http 192 168 12 86 You are limited to approximately 100 characters of message data for the entire instruction including the To Subject and Body fields To save space the ECOM100 supports a hard coded list of EMail addresses for the Carbon Copy field cc so that you can configure those IN the ECOM100 and keep the To field small or even empty to leave more room for the Subject and Body fields In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board ECEMAIL Parameters e ECOM1003 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that
3. Low Low Limit K0 9999 or see DLO6 V memory map Data Words Low Low Alarm See DLO6 V memory map 20 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs 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 z Hi Low Alarm BCD HILOAL IB 421 Monitoring Value BCD 2000 High High Limit K1000 High High Alarm C100 High Limit K900 High Alarm C101 Low Limit K200 Low Alarm C102 Low Low Limit K100 Low Low Alarm C103 DL06 Micro PLC User Manual Supplement Box Instructions 21 DirectSOFT5 IBox Instructions for DLO6 PLCs C rr Hi Low Alarm Binary HILOALB IB 401 DS5 Used Hi Low Alarm Binary monitors a binary de
4. you can do es E a Modulo aka Remainder Bit wise And a WORD Result 8 Or Xor and some BCD functions Convert to BCD BCD Convert to Binary BIN BCD Complement BCDCPL Convert from Gray Code GRAY Invert Bits INV and BCD HEX to Seven Segment Display SEG Example V2000 V2001 V2003 K100 GRAY V3000 amp K001F Every V memory reference MUST be to a single word BCD formatted value Intermediate results can go up to 32 bit values but as long as the final result fits in a 16 bit BCD word the calculation is valid Typical example of this is scaling using multiply then divide V2000 K1000 K4095 The multiply term most likely will exceed 9999 but fits within 32 bits The divide operation will divide 4095 into the 32 bit accumulator yielding a result that will always fit in 16 bits Expression You can reference binary V memory values by using the BCD conversion function on a V memory location but NOT an expression That is BCD V2000 is okay and will convert V2000 from Binary to BCD but BCD V2000 V3000 will add V2000 as BCD to V3000 as BCD then interpret the result as Binary and convert it to BCD NOT GOOD Also the final result is a 16 bit BCD number and so you could do BIN around the entire operation to store the result as Binary MATHBCD Parameters e WORD Result specifies the location where the BCD result of the mathematical expression will be placed result must fit i
5. Square BCD SQUARE IB 523 value WORD BCD 2000 Result DWORD BCD 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions 51 DirectSOFTS5 IBox Instructions for DLO6 PLCs Square Binary SQUAREB IB 503 Used Square Binary squares the given 16 bit WORD Binary number and writes it as a 32 bit wa DWORD Binary result SQUAREB Parameters MaA 2 e Value WORD Binary specifies the binary Square Binary Word or constant that will be squared SQUAREB IB 503 e Result DWORD Binary specifies the value WORD binary TAO location where the squared DWORD binary Result DWORD binan V400 value will be placed Parameter DLO6 Range Value WORD Binary V PK K0 65535 See DLO6 V memory map Data Words Result DWORD Binary See DLO6 V memory map Data Words 52 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m SQUAREB Fxample In the following example the SQUAREB instruction is used to square the single word Binary value in V2000 and store the 8 digit double word Binary result in V3000 and V3001 Square Binary SQUAREB value WORD binary Result DWORD binar 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 53 DirectSOFTS5 IBox Instructions for DLO6 PLCs Square Real SQUARER IB 543 Square Real squares the given REAL DWORD number and writes it to a REAL DWORD
6. e Error specifies a bit that will turn on if the instruction does not complete successfully 132 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 K0 3 K0 255 See DLO6 V memory map Data Words K0 255 See DLO6 V memory map Data Words K0 5 See DLO6 V memory map Data Words K0 65535 See DLO6 V memory map Data Words K0 2147434528 See DLO6 V memory map See DLO6 V memory map Data Words SUCCESS a eect eusne nace ea nett X Y C GX GY B See DLO6 V memory map ENOK scyoc sent se manri aie anand X Y C GX GY B See DLO6 V memory map CTREDRL Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 133 DirectSOFTS5 IBox Instructions for DLO6 PLCs aT CTREDRL Example con t Rung 2 This rung is a sample method for enabling the CTREDRL command A C bit is used to allow the programmer to control the command from Data View for testing purposes Turning on CO will cause the CTREDRL
7. saa SQUARER Parameters IXA z e Value REAL DWORD specifies the Real Square Real DWORD location or number that will be SQUARER IB 543 squared Value REAL DWORD e Result REAL DWORD specifies the Result REAL DWORD location where the squared Real DWORD S value will be placed Parameter DLO6 Range Value REAL DWORD V PR R See DLO6 V memory map Data Words Result REAL DWORD See DLO6 V memory map Data Words 54 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m SQUARER Fxample In the following example the SQUARER instruction is used to square the 32 bit floating point REAL value in V2000 and V2001 and store the REAL value result in V3000 and V3001 Square Real SQUARER IB 543 Value REAL DWORD 2000 2001 Result REAL DWORD 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 55 DirectSOFTS5 IBox Instructions for DLO6 PLCs Sum BCD Numbers SUMBCD IB 522 Sum BCD Numbers sums up a list of consecutive 4 digit WORD BCD numbers into an 8 digit DWORD BCD result You specify the group s starting and ending V memory addresses inclusive When x enabled this instruction will add up all the Sum BCD Numbers numbers in the group so you may want to SUMBCD IB 522 place a differential contact driving the Start Address V400 enable End Addr inclusive V400 SUMBCD could be u
8. 100 or a PLC logic error greater than 1000 The Description is stored in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SPO STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 IBox to function you must turn ON dip switch 7 on the ECOM100 circuit board ECWRDES Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Frror specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e Description specifies the Description that will be written to the module Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS sos ache wel neeaae X Y C GX GY B See DLO6 V memory map o h2 5 eadind aun E X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words Text Get DL06 Micro PLC
9. 2061 DL06 Micro PLC User Manual Supplement Box Instructions 121 DirectSOFTS5 IBox Instructions for DLO6 PLCs CTRIO Add Entry to End of Preset Table CTRADPT IB 1005 DS5 Used CERIO Add Entry to End of Preset Table on a leading edge transition to this Box will HPP N A append an entry to the end of a memory based Preset Table on a specific CTRIO Output resource This Box will take more than 1 f Wahi PLC scan to execute Either the Success or m 3 i CTRIO Add Entry to End of Preset Table Error bit will turn on when the command is ts CTRADPT 1B 1005 complete If the Error Bit is on you can use ene the CTRIO Read Error Code CTRRDER Output IBox to get extended error information Entry Type V400 g i Entry Type Pulse Time w400 PresetCount V400 KO Set Workspace V400 G K1 Reset Success co Error co b K2 Pulse On uses Pulse Time K3 Pulse Off uses Pulse Time K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRAPT Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config e Output specifies a CTRIO output to be used by the instruction e Entry Type specifies the Entry Type to be added to the end of a Preset Table e Pulse Time specifies a pulse time for the P
10. ECEMRDS C11 ECOM100 Workspace Success Error Error Code DL06 Micro PLC User Manual Supplement Box Instructions 75 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 E mail Setup ECEMSUP IB 712 ECOM100 EMail Setup on a leading edge transition will modify the working copy of the EMail setup currently in the ECOM100 based on the specified ECOM100 which corresponds to a specific unique ECOM100 VIX A Configuration ECOM100 at the top of ECON TOOEMAI Setin your program ECEMSUP IB 712 ECOM100 Koo d You may pick and choose any or all fields to Workspace vaoo be modified using this instruction Note that ii these changes are cumulative if you execute Error Code ao SC multiple ECOM100 EMail Setup Boxes C swrpseneripaddr sd h iiot hech death d M Sender Name then all of the changes are made in the order aaee E they are executed Also note that you can M PortNumber restore the original ECOM100 EMail Setup A R that is stored in the ECOM100 to the working copy by using the ECOM100 Restore Default EMail Setup ECEMRDS IBox The Workspace parameter is an internal private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Either the Success or Error bit parameter will turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error co
11. GX GY B See DLO6 V memory map See DLO6 V memory map Data Words K1 128 90 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECRDNAM Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WWORDs Y402 Y502 Rung 2 On the 2nd scan read the Module Name of the ECOM100 and store it in V3000 thru V3003 8 characters This text can be displayed by an HMI The ECRDNAM is leading edge triggered not power flow driven similar to a counter input leg The command to read the module name will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Read Na
12. Input Module Pointer Setup The Input Data Address is the starting ANLGIN IB 460 location in user V memory where the l Base K0 Local analog input data values will be stored g Slot KO one location for each input channel Number of Input Channels enabled i his logi h Input Data Format 0 BCD 1 BIN KO Since this logic only executes on the D eE FETT 5 first scan this IBox cannot have any input logic ANLGIN Parameters e Base K0 Local must be 0 for DLO6 PLC e Slot specifies which PLC option slot is occupied by the analog module 1 4 e Number of Input Channels specifies the number of input channels to scan e 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 e Input Data Address specifies the starting V memory location that will be used to store the analog input data Parameter DLO6 Range KO local base only K1 4 Number of Input Channels K1 8 Input Data Format 0 BCD 1 BIN BCD KO Binary K1 Input Data Address See DLO6 V memory map Data Words 8 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ANLGIN Example In the following example the ANLGIN instruction is used to setup the pointer method for an analog input module that is installed in option slot 1 Eight input channels are enabled and the analog d
13. Load Profile CTRLDPR IB 1001 DS o Used CERIO Load Profile loads a CTRIO Profile File to a CTRIO Output resource on a leading HP Be N A Success or Error bit will turn on when the command is complete If the Error Bit is on you can use the CTRIO Read Error Code CTRRDER Box to get extended error information The Workspace register is for internal use by this Box instruction and MUST NOT be used anywhere else in your program CTRLDPR Parameters edge transition to this Box This Box will take more than 1 PLC scan to execute Either the CTRIO Load Profile CTRLDPR IB 1001 CTRIO KO bi Output KO bd File V400 Workspace Success co Error co H e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config e Output specifies a CTRIO output to be used by the instruction e File specifies a CTRIO profile File number to be loaded e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully Parameter DLO6 Range K0 255 K0 3 K0 255 See DLO6 V memory map Data Words See DLO6 V memory map Data Words SUCCESS cied Lassies sawed X Y C GX GY B See DLO6 V memory map EMOT iscss cit edu a nee amen an
14. Mask specifies the starting address where the ECOM100 s Subnet Mask will be placed in 4 consecutive V memory locations Parameter DL06 Range ECOM100 K0 255 See DLO6 V memory map Data Words SUCCESS sah jake siden odds be X Y C GX GY B See DLO6 V memory map EMO 35 3 5 h2n5 etaderesnatad X Y C GX GY B See DLO6 V memory map Subnet Mask 4 Words See DLO6 V memory map Data Words 92 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs TE ECRDSNM Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WWORDs 402 Y502 Rung 2 On the 2nd scan read the Subnet Mask of the ECOM100 and store it in V3000 thru V3003 4 decimal numbers The ECOM100 s Subnet
15. NETWX Counter 1 0 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 DL06 Micro PLC User Manual Supplement Box Instructions l 5 DirectSOFTS5 IBox Instructions for DLO6 PLCs Analog Input Output Combo Module Pointer Setup ANLGCMB IB 462 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 Ixe determines the data format and Pointer ae ore addresses based on the CPU type the Analog Input Output Combo Module Pointer Setup Base and the module Slot i SEI Fe EEE Base KO Local re Input Data Address is EE Slot KO 7 e in ws aie ai ere t q Number of Input Channels analog input data values will De stored Input Data Format 0 BCD 1 BIN K
16. On uses Pulse Time K3 Pulse Off uses Pulse Time K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTREDPT Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Table specifies the Table number of which an Entry is to be edited e Entry specifies the Entry location in the Preset Table to be edited e Entry Type specifies the Entry Type to add during the edit e Pulse Time specifies a pulse time for the Pulse On and Pulse Off Entry Types e Preset Count specifies an initial count value to begin at after Reset e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully 128 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 K0 3 K0 255 See DLO6 V memory map Data Words K0 255 See DLO6 V memory map Data Words K0 5 See DLO6 V memory map Data Words K0 65535 See DLO6 V memory map Data Words K0 2147434528 See DLO6 V memory map See DLO6 V memory
17. SPO ECDHCPE ECOM100 Timeoutfsec Workspace Success Error Error Code DL06 Micro PLC User Manual Supplement Box Instructions l 67 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Query DHCP Setting ECDHCPQ IB 734 ECOM100 Query DHCP Setting will determine if DHCP is enabled in the ECOM100 on a leading edge transition to the IBox The DHCP Enabled bit parameter will be ON if DHCP is enabled OFF if disabled The Workspace parameter is an internal NIA private register used by this IBox and MUST ECOM100 Query DHCP Setting BE UNIQUE in this one instruction and ECDHCPQ MUST NOT be used anywhere else in your ECOM100 KO program Workspace V400 Either the Success or Error bit parameter will Success turn on once the command is complete Error In order for this ECOM100 IBox to function DHCP Enabled C0 you must turn ON dip switch 7 on the ECOM100 circuit board ECDHCPQ Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e DHCP Enabled specifies a bit that will turn on if the ECOM100
18. SUM Example V2000 V2001 V2003 K10 SUM V3000 amp K001F Every V memory reference MUST be to a single word binary formatted value Intermediate results can go up to 32 bit values but as long as the final result fits in a 16 bit binary word the calculation is valid Typical example of this is scaling using multiply then divide V2000 K1000 K4095 The multiply term most likely will exceed 65535 but fits within 32 bits The divide operation will divide 4095 into the 32 bit accumulator yielding a result that will always fit in 16 bits You can reference BCD V memory values by using the BIN conversion function on a V memory location but NOT an expression That is BIN V2000 is okay and will convert V2000 from BCD to Binary but BIN V2000 V3000 will add V2000 as Binary to V3000 as Binary then interpret the result as BCD and convert it to Binary NOT GOOD Also the final result is a 16 bit binary number and so you could do BCD around the entire operation to store the result as BCD MATHBIN Parameters e WORD Result specifies the location where the binary result of the mathematical expression will be placed result must fit into 16 bit single V memory location e Expression specifies the mathematical expression to be executed and the result is stored in specified WORD Result Each V memory location used in the expression must be in binary format Parameter DL06 Range See DLO6 V memory map Data Words
19. The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS w402 502 Rung 2 On the 2nd scan read the Module ID of the ECOM100 and store it in V2000 The ECRDMID is leading edge triggered not power flow driven similar to a counter input leg The command to read the module ID will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Read Module ID SPO ECRDMID IB 7 20 ECOM100 KO Workspace Y503 Success c100 Error C101 Module ID 2000 DL06 Micro PLC User Manual Supplement Box Instructions 89 DirectSOFT5 IBox Instructions for DLO6 PLCs B ECOM100 Read Module Name ECRDNAM IB 724 DS5 Used ECOM100 Read Name w
20. V memory map Data Words Number of Output Channels K1 8 Output Data Format 0 BCD 1 BIN BCD KO Binary K1 Output Data Address See DLO6 V memory map Data Words 6 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ANLGCMB Example In the following example the ANLGCMB instruction is used to setup 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 output channels are enabled and the analog values will be read from V2100 V2101 in BCD format Analog InputOutput Combo Module Pointer Setup ANLGCMB w Base K0 Local Slot No permissive contact or input logic is Number of Input Channels used with this instruction Input Data Format 0 BCD 1 BIN Input Data Address Number of Output Channels Output Data Format 0 BCD 1 BIN Output Data Address DL06 Micro PLC User Manual Supplement Box Instructions l 7 DirectSOFTS5 IBox Instructions for DLO6 PLCs Analog Input Module Pointer Setup ANLGIN IB 460 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 va Analog
21. Workspace Success Error Error Code Module Name George DL06 Micro PLC User Manual Supplement Box Instructions l 103 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Write Subnet Mask ECWRSNM IB 733 ECOM100 Write Subnet Mask will write the given Subnet Mask to the ECOM100 module on a leading edge transition to the IBox See also ECOM100 IP Setup ECIPSUP IBox 717 to setup ALL of the TCP IP parameters in a single instruction IP Address Subnet Mask Lv x and Gateway Address ECOM100 Write Subnet Mask The Workspace parameter is an internal Oa SL private register used by this IBox and MUST ECOM100 K0 BE UNIQUE in this one instruction and Workspace V400 MUST NOT be used anywhere else in your Success co program Eror Either the Success or Error bit parameter will BuavCmnE KA ki turn on once the command is complete If SubnetMask 0 0 0 0 there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The Subnet Mask is stored in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SPO STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 Box to
22. Write IP Address will write the given IP Address to the ECOM100 module on a leading edge transition to the IBox See also ECOM100 IP Setup ECIPSUP IBox 717 to setup ALL of the TCP IP parameters in a single instruction IP Address Subnet Mask Lv and Gateway Address ECOM100 Write IP Address ECVWRIP IB 723 The Workspace parameter is an internal private register used by this IBox and MUST ECOMI00 K0 BE UNIQUE in this one instruction and Workspace MUST NOT be used anywhere else in your Success co program Enor Error Code 400 Either the Success or Error bit parameter will turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The IP Address is stored in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SPO STR NOT First Scan to drive the power flow to the Box In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board IP Address o o 0 0 ECWRIP Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need t
23. Y C GX GY B See DLO6 V memory map X Y C GX GY B See DLO6 V memory map DL06 Micro PLC User Manual Supplement Box Instructions l 155 DirectSOFT5 IBox Instructions for DLO6 PLCs aT CTRVELO Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config 1 CTRIO CTRIO Slot Workspace Input Output 2030 2061 Rung 2 This CTRIO Velocity Mode IBox sets up Output 0 in CTRIO 1 to output 10 000 pulses at a Frequency of 1000 Hz This example program requires that you load CTRVELO_IBox cwb into your Hx CTRIO module CTRIO Velocity Mode k LO CTRYELO IB 1013 CTRIO Output Frequency Duty Cycle Step Count Workspace Success Error example continued on next page 156 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m CTRVELO Example cont Rung 3 If the Velocity Mode parameters are OK set the Direction Bit and Enable the output CTRVELO_Success Out_O_Direction c100 B5056 4 OUT Out_O_Enable B5056 0 OUT DL06 Micro PLC User Manual Supplement Box Instructions l 157 DirectSOFTS5 IBox Instructions for DLO6 PLCs CTRIO Write File to ROM CTRWFTR IB 1006 CTRI
24. all the common information necessary for performing RX WX Networking using the NETRX and NET WX IBox instructions via a local CPU serial port DCM or ECOM module You must have the Network Config instruction at the top of your ladder stage FARR 7 program with any other configuration EAT IBoxes NETCFG 1B 700 If you use more than one local serial port Network KO g DCM or ECOM in your PLC for RX WX CPU Port or Slot ex KF2 or K3 KO s Networking you must have a different viia Network Config instruction for EACH RX WX network in your system that utilizes any NETRX NETWX IBox instructions The Workspace parameter is an internal private register used by the Network Config IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program The 2nd parameter CPU Port or Slot is the same value as in the high byte of the first LD instruction if you were coding the RX or WX rung yourself This value is CPU and port specific check your PLC manual but possible values include KF2 for local CPU serial port 2 ofan 06 K3 for a DCM or ECOM in slot 3 ofa local 205 base or K37 for a DCM ina 405 expansion base 3 slot 7 NETCEG Parameters e Network specifies a unique for each ECOM 100 or DCM network to use e CPU Port or Slot specifies the CPU port number or slot number of DCM ECOM 100 used e Workspace specifies a V memory location that will be used by the instruction Parameter DLOG6 Range
25. aptitude l emploi en ce qui a trait aux activit s risque lev Pour des renseignements additionnels touchant la garantie et la s curit veuillez consulter la section Modalit s et conditions de notre documentation Si vous avez des questions au sujet de l installation ou du fonctionnement de cet quipement ou encore si vous avez besoin de renseignements suppl mentaires n h sitez pas nous t l phoner au 770 844 4200 Cette publication s appuie sur l information qui tait disponible au moment de l impression la soci t AutomationDirect nous nous effor ons constamment d am liorer nos produits et services C est pourquoi nous nous r servons le droit d apporter des modifications aux produits ou aux publications en tout temps sans pr avis ni quelque obligation que ce soit La pr sente publication peut aussi porter sur des caract ristiques susceptibles de ne pas tre offertes dans certaines versions r vis es du produit Marques de commerce La pr sente publication peut contenir des r f rences des produits fabriqu s ou offerts par d autres entreprises Les d signations des produits et des entreprises peuvent tre des marques de commerce et appartiennent exclusivement leurs propri taires respectifs AutomationDirect nie tout int r t dans les autres marques et d signations Copyright 2006 Automationdirect com Incorporated Tous droits r serv s Nulle partie de ce manuel ne doit tre copi e repr
26. coordinates all of the interaction with other ECOM100 based IBoxes ECxxxx You must have an ECOM100 Config IBox for each ECOM100 module in your system Configuration IBoxes must be at the top of your program and must execute every scan This IBox defines ECOM100 KO to be in slot 3 Any ECOM100 IBoxes that need to reference this specific module such as ECEMAIL ECRX would enter KO for their ECOM100 parameter The Status register is for reporting any completion or error information to other ECOM100 IBoxes This V memory register must not be used anywhere else in the entire program The Workspace register is used to maintain state information about the ECOM100 along with proper sharing and interlocking with the other ECOM100 Boxes in the program This V memory register must not be used anywhere else in the entire program The Message Buffer of 65 words 130 bytes is a common pool of memory that is used by other ECOM100 Boxes such as ECEMAIL This way you can have a bunch of ECEMAIL IBoxes but only need 1 common buffer for generating and sending each EMail These V memory registers must not be used anywhere else in your entire program ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS 1400 1500 DL06 Micro PLC User Manual Supplement Box Instructions l 63 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Disable DHCP ECDHCPD IB 736 z Used ECOM100 Disable DHCP will s
27. function you must turn ON dip switch 7 on the ECOM100 circuit board ECWRSNM Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e Subnet Mask specifies the Subnet Mask that will be written to the module Parameter DLOG Range K0 255 See DLO6 V memory map Data Words SUCCESS 2 cece eee eee X Y C GX GY B See DLO6 V memory map EM Ol sesiones drene e wears X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words Masked IP Address 104 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs a ECWRSNM Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox
28. function would yield 57 BCD note that it Number of Decimal Points KO rounded up Result WORD BCD 400 k If the Real number is negative the Result will equal its positive absolute value RTOBCD Parameters e Value DWORD Real specifies the Real Dword location or number that will be converted and rounded to a BCD number with decimal points e Number of Decimal Points specifies the number of implied decimal points in the Result WORD e Result WORD BCD specifies the location where the rounded implied decimal points BCD value will be placed Parameter DLOG Range Value DWORD Real V P R R See DL06 V memory map Data Words Number of Decimal Points K0 4 Result WORD BCD See DLO6 V memory map Data Words U6 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs RTOBCD Example In the following example the RTOBCD instruction is used to convert the 32 bit REAL floating point data format in V3000 and V3001 to the 4 digit BCD data format and stored in V2000 K2 in the Number of Decimal Points implies the data will have two implied decimal points Real to BCD wilmplied Decimal Pt and Rounding RTOBCD IB 561 Value DWORD Real 3000 3001 Number of Decimal Points Result WORD BCD DL06 Micro PLC User Manual Supplement Box Instructions l 447 DirectSOFTS5 IBox Instructions for DLO6 PLCs B Real to Double BCD with Impli
29. limit is reached e High Limit V memory location or constant specifies the high alarm limit e High Alarm On when the high limit is reached e Low Limit V memory location or constant specifies the low alarm limit e Low Alarm On when the low limit is reached e Low Low Limit V memory location or constant specifies the low low alarm limit e Low Low Alarm On when the low low limit is reached Parameter DL06 Range Monitoring Value Binary See DLO6 V memory map Data Words High High Limit K0 65535 or see DLO6 V memory map Data Words High High Alarm See DLO6 V memory map K0 65535 or see DLO6 V memory map Data Words See DLO6 V memory map K0 65535 or see DLO6 V memory map Data Words See DLO6 V memory map K0 65535 or see DLO6 V memory map Data Words See DLO6 V memory map 22 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs 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
30. module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS 402 Y502 Rung 2 On the 2nd scan read the IP Address of the ECOM100 and store it in V3000 thru V3003 4 decimal numbers The ECOM100 s IP Address could be displayed by an HMI The ECRDIP is leading edge triggered not power flow driven similar to a counter input leg The command to read the IP Address will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Read IP Address SPO ECRDIP ECOM100 Workspace Success Error IP Address 4 words 3000 3003 DL06 Micro PLC User Manual Supplement Box Instructions l 87 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Read Module ID ECRDMID IB 720 DS5 Used HPP N A ECOM100 Read Module ID will read the binary decimal WORD sized Module ID on a leading edge transition to the Box T
31. next page 26 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs BE CTRCLRT Example cont Rung 3 This rung allows the programmer to reset the counter from the ladder logic reset counter C1 B2054 1 eS i OOUT E Rung 4 This rung allows the operator to enable output 0 from the ladder code enable output 0 C2 B2056 0 OUT DL06 Micro PLC User Manual Supplement Box Instructions l 127 DirectSOFTS5 IBox Instructions for DLO6 PLCs aT CTRIO Edit Preset Table Entry CTREDPT IB 1003 DS o Used CTRIO Edit Preset Table Entry on a leading edge transition to this Box will edit a single HPP WA entry in a Preset Table on a specific CTRIO Output resource This Box is good if you are editing more than one entry in a file at a time If you wish to do just one edit and then INI z reload the table immediately see the CTRIO pei Ee a pr sats Edit and Reload Preset Table Entry ane CTREDRL IBox This IBox will take more TRINE than 1 PLC scan to execute Either the Table V400 Success or Error bit will turn on when the Entry 0 based V400 command is complete If the Error Bit is on Entry Type v400 you can use the CTRIO Read Error Code Pulse Time eit B CTRRDER IBox to get extended error Freser coun vaoo Workspace w400 ki information Eres Entry Type Error co s KO Set K1 Reset K2 Pulse
32. received its TCP IP settings ZENERE ENEE from the DHCP server Since it is possible for ECDHCPE IB 735 the DHCP server to be unavailable a SS or Timeout parameter is provided so that the H IBox can complete but with an Error Error imeouksec z Code 1004 decimal Si uccess See also the ECOM100 IP Setup ECIPSUP Erir IBox 717 to directly setup ALL of the TCP IP Error Code ADD parameters in a single instruction IP Address Subnet Mask and Gateway Address The Workspace parameter is an internal private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Either the Success or Error bit parameter will turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The Enable DHCP setting is stored in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this Box ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board ECDHCPE Parameters e ECOM100 this is a logical number associated with this spec
33. s DHCP is enabled or remain off if disabled after instruction query be sure to check the state of the Success Error bit state along with DHCP Enabled bit state to confirm a successful module query Parameter DL06 Range ECOM100 K0 255 See DLO6 V memory map Data Words SUCCESS 524 safn cinta basics cialis X Y C GX GY B See DLO6 V memory map EMOD seeped dy oie cdonnes X Y C GX GY B See DLO6 V memory map DHCP Enabled X Y C GX GY B See DLO6 V memory map 68 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECDHCPQ Example Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace 401 Msg Buffer 65 WORDs 402 502 Rung 2 On the 2nd scan read whether DHCP is en
34. up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 Rung 2 This CTRIO Edit Preset Table Entry Box will change Entry 0 in Table 2 to be a RESET at Count 3456 This example program requires that you load CTRWFTR_IBox cwb into your Hx CTRIO module CTRIO Edit Preset Table Entry Try_EDPT CTREDPT co CTRIO Output Table Entry 0 based Entry Type Pulse Time Preset Count Workspace Success Error example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 159 DirectSOFT5 IBox Instructions for DLO6 PLCs aT CTRWFTR Example cont Rung 3 If the file is successfully edited use a Write File To ROM IBox to save the edited table back to the CTRIO s ROM thereby making the changes retentive CTRIO Write File to ROM CTREDPT_Success CTRWETR IB 1006 c100 CTRIO Output Workspace Success Error 160 DL06 Micro PLC User Manual Supplement Box Instructions
35. using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDs 402 502 Rung 2 On the 2nd scan disable DHCP in the ECOM100 DHCP is the same protocol used by PCs for using a DHCP Server to automatically assign the ECOM100 s IP Address Gateway Address and Subnet Mask Typically disabling DHCP is done by assigning a hard coded IP Address either in NetEdit or using one of the ECOM100 IP Setup Boxes but this Box allows you to disable DHCP in the ECOM100 using your ladder program The ECDHCPD is leading edge triggered not power flow driven similar to a counter input leg The command to disable DHCP will be sent to the ECOM100 whenever the power flow into the Box goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code _FirstScan ECOM100 Disable DHCP SPO ECDHCPD ECOM100 Workspace Success Error Error Code DL06 Micro PLC User Manual Supplement Box Instructions l 65 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Enable DHCP ECDHCPE IB 735 ECOM100 Enable DHCP will tell the ECOM100 to obtain its TCP IP setup from a DHCP Server on a leading edge transition to the IBox 66 The IBox will be successful once the Ixa ECOM100 has
36. will add up all the numbers in the group so you may want to place a differential contact driving the enable SUMBIN could be used as the first part of calculating an average SUMBIN Parameters Ixe Sum Binary Numbers SUMBIN IB 502 Start Address 400 ig End Addr inclusive 400 Result DWORD binan V400 s e Start Address specifies the starting address of a block of V memory location values to be added together Binary e End Addr inclusive specifies the ending address of a block of V memory location values to be added together Binary e Result DWORD Binary specifies the location where the sum of the block of V memory binary values will be placed Parameter DLO6 Range See DLO6 V memory map Data Words End Address inclusive See DLO6 V memory map Data Words Result DWORD Binary See DLO6 V memory map Data Words 58 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs SUMBIN Example In the following example the SUMBIN instruction is used to total the sum of all Binary values in words V2000 thru V2007 and store the resulting 8 digit double word Binary value in V3000 and V3001 Sum Binary Numbers SUMBIN Start Address End Addr finclusive Result DWORD binary 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 59 DirectSOFTS5 IBox Instructions for DLO6 PLCs Sum
37. with Implied Decimal Point BCDTOR Double BCD to Real with Implied Decimal Point BCDTORD Math BCD MATHBCD Math Binary MATHBIN Math Real MATHR Real to BCD with Implied Decimal Point and Rounding RTOBCD Real to Double BCD with Implied Decimal Point and Rounding RTOBCDD Square BCD SQUARE Square Binary SQUAREB Square Real SQUARER Sum BCD Numbers SUMBCD Sum Binary Numbers SUMBIN Sum Real Numbers SUMR Eb DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs eII 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 ECWXx NETCFG Network Configuration NETCFG Network RX Read NETRX Network WX Write
38. 00 WX IBoxes on that ECOM100 network a chance to execute For example if you wish to read and write data continuously from 5 different slaves you can have all of these ECRX and ECWX instructions in ONE RUNG driven by SP1 Always On They will execute round robin style automatically ECWX Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Slave ID specifies the slave ECOM 100 PLC that will be targeted by the ECWX instruction e From Master Element Src specifies the location in the master ECOM100 PLC where the data will be sourced from e Number of Bytes specifies the number of bytes to write to the slave ECOM 100 PLC e To Slave Element Dest specifies the slave address the data will be written to e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed DLO6 Range K0 255 See DLO6 V memory map Data Words K0 90 See DLO6 V memory map Data Words Parameter From Master Element Src Number of Bytes K1 128 To Slave Element Dest X Y C S T CT GX GY V SUCCESS 0 cece eee X Y C GX GY B EMO ccgdocehd dgessasece dea ntt angers
39. 100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS w402 502 Rung 2 Whenever an EStop is pushed ensure that president of the company gets copies of all EMails being sent The ECOM100 EMail Setup IBox allows you to set change the SMTP EMail settings stored in the ECOM100 ECOM100 EMail Setup EStop Pushed ECEMSUP C11 ECOM100 Workspace Success Error Error Code SMTP Server IP Addr Sender Name Sender Email Port Number Timeout sec Ce president acme com example continued on next page 74 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFTS5 IBox Instructions for DLO6 PLCs ee __ __ ECEMRDS Example cont Rung 3 Once the EStop is pulled out take the president off the cc list by restoring the default EMail setup in the ECOM100 The ECEMRDS is leading edge triggered not power flow driven similar to a counter input leg The ROM based EMail configuration stored in the ECOM100 will be copied over the working copy whenever the power flow into the Box goes from OFF to ON the working copy can be changed by using the ECEMSUP IBox If successful turn on C102 If there is a failure turn on C103 If it fails you can look at V2001 for the specific error code ECOM100 Restore Default EMail Setup EStop Pushed
40. CD See DLO6 V memory map Data Words 16 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m 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 Filter Over Time BCD FILTER Filter Freq Timer Filter Freq Time 0 01 sec Raw Data BCD Filter Divisor 1 100 Filtered Value BCD DL06 Micro PLC User Manual Supplement Box Instructions l 17 DirectSOFTS5 IBox Instructions for DLO6 PLCs Filter Over Time Binary FILTERB IB 402 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 Ixe Filter Over Time Binary FILTERB IB 402 Filter Freq Timer TO 7 Filter Freq Time 0 01 sec Raw Data Binary TAG Filter Divisor 1 100 K1 Filtered Value Binar TAO a The rate at which the
41. D V P K K0 9999 See DLO6 V memory map Data Words Number of Decimal Points K0 4 Result DWORD REAL See DLO6 V memory map Data Words 36 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m BCDTOR Example In the following example the BCDTOR instruction is used to convert the 16 bit data in V2000 from a 4 digit BCD data format to a 32 bit REAL floating point data format and stored into V3000 and V3001 K2 in the Number of Decimal Points implies the data will have two digits to the right of the decimal point BCD to Real with Implied Decimal Point BCDTOR IB 560 Value NORD BCD 2000 Number of Decimal Points K2 Result DWORD REAL 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 37 number of decimal points KO K8 For example BCDTORD K12345678 with an implied number of decimal points equal to K5 would yield R123 45678 BCDTORD Parameters e Value DWORD BCD specifies the Dword or constant that will be converted to a Real number DirectSOFTS5 IBox Instructions for DLO6 PLCs Double BCD to Real with Implied Decimal Point BCDTORD IB 562 5 Used Double BCD to Real with Implied Decimal Point converts the given 8 digit DWORD BCD DS5 Used HPP N A WA value to a Real number given an implied LJe Double BCD to Real with Implied Decimal Point BCDTORD IB 562 Valu
42. DL06 Micro PLC User Manual Supplement Box Instructions l 1 25 DirectSOFT5 IBox Instructions for DLO6 PLCs aT CTRCLRT Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config 1 CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 Rung 2 This rung is a sample method for enabling the CTRCLRT command A C bit is used to allow the programmer to control the command from Data View for testing purposes Turning on CO will cause the CTRCLRT instruction to clear the preset table for output 0 on the CTRIO in slot 2 Operating procedure for this example code is to load the CTRCLRT_ex1 cwb file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 10 and output 0 light will come on and stay on until a count of 20 is reached where it will turn off Now reset the counter with C1 enable CO to execute CTRCLRT command to clear the preset table turn on C2 to enable output 0 then turn encoder to value of 10 output 0 should NOT turn CTRIO Clear Preset Table Start he CLRT CTRCLRT IB 1007 CTRIO Output Workspace Success Error example continued on
43. DLO6 IBox Instructions PLC User Manual Supplement Manual Number DLO6 IBOX S WARNING Thank you for purchasing automation equipment from Automationdirect com doing business as AutomationDirect We want your new automation equipment to operate safely Anyone who installs or uses this equipment should read this publication and any other relevant publications before installing or operating the equipment To minimize the risk of potential safety problems you should follow all applicable local and national codes that regulate the installation and operation of your equipment These codes vary from area to area and usually change with time It is your responsibility to determine which codes should be followed and to verify that the equipment installation and operation is in compliance with the latest revision of these codes At a minimum you should follow all applicable sections of the National Fire Code National Electrical Code and the codes of the National Electrical Manufacturer s Association NEMA There may be local regulatory or government offices that can also help determine which codes and standards are necessary for safe installation and operation Equipment damage or serious injury to personnel can result from the failure to follow all applicable codes and standards We do not guarantee the products described in this publication are suitable for your particular application nor do we assume any responsibility for your product des
44. ECOM100 Write Description SPO ECWRDES ECOM100 Workspace Success Error Error Code Description Modbus TCP Network 2 DL06 Micro PLC User Manual Supplement Box Instructions l 95 DirectSOFTS5 IBox Instructions for DLO6 PLCs OO ECOM100 Write Gateway Address ECWRGWA IB 731 DS5 Used ECOM100 Write Gateway Address will write the given Gateway IP Address to the HPP N A ECOM100 module on a leading edge transition to the IBox See also ECOM100 IP Setup ECIPSUP IBox 717 to setup ALL of the TCP IP parameters in a single instruction IP WJS Address Subnet Mask and Gateway Address ECOM100 Write Gateway Address The Workspace parameter is an internal ECWRGWA IB 731 private register used by this IBox and MUST ECOM100 KO ki BE UNIQUE in this one instruction and Workspace V400 MUST NOT be used anywhere else in your Success co program Error Either the Success or Error bit parameter will Error Code v400 turn on once the command is complete If Gateway Address o 0 0 0 there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The Gateway Address is stored in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this Box ONCE on first scan Since it require
45. Error Code CTRRDER Box to get extended error information The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRVELO Parameters vxj CTRIO Velocity Mode CTRYELO IB 1013 CTRIO Output KO s Frequency Duty Cycle 400 2 Step Count V400 e Workspace Success co Error co bd e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Frequency specifies the output pulse rate 20Hz 20KHz e Duty Cycle specifies the of on time versus off time This is a hex number Default of 0 is 50 also entering 50 will yield 50 50 duty cycle is defined as on half the time and off half the time e Step Count specifies the target position as a 32 bit Hex number a value of Kffffffff will cause the profile to run continuously as long as the output is enabled e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully Parameter DL06 Range K0 255 K0 3 K20 20000 See DLO6 V memory map Data Words K0 99 See DLO6 V memory map K0 2147434528 See DLO6 V memory map See DLO6 V memory map Data Words X
46. LOSED SPO NOT First Scan to drive the power flow to the IBox In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board ECIPSUP Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e IP Address specifies the module s IP Address e Subnet Mask specifies the Subnet Mask for the module to use e Gateway Address specifies the Gateway Address for the module to use Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS cece eee eee X Y C GX GY B See DLO6 V memory map EmO a2 dria saeco eE E E aaa X Y C GX GY B See DLO6 V memory map Error Code See DLO6 V memory map Data Words IP Address 0 0 0 1 to 255 255 255 254 IP Address Mask 0 0 0 1 to 255 255 255 254 IP Address 0 0 0 1 to 255 255 255 254 80 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs as ECIPSUP Example Rung 1 The ECOM100 Con
47. M100 WX ECWX Boxes in your program to simplify communications networking It will perform the RX on the specified Ear o ECOM100 s network which corresponds to SOO AMD RARER MIT a specific unique ECOM100 Configuration gaia PO lgt ECOM100 IBox at the top of your C program Slave ID The Workspace parameter is an internal From Slave Element Src private register used by this IBox and MUST biel aldo KI BE UNIQUE in this one instruction and pega Det MUST NOT be used anywhere else in your Spa a program Whenever this Box has power it will read element data from the specified slave into the given destination V memory buffer giving other ECOM100 RX and ECOM100 WX Boxes on that ECOM100 network a chance to execute For example if you wish to read and write data continuously from 5 different slaves you can have all of these ECRX and ECWX instructions in ONE RUNG driven by SP1 Always On They will execute round robin style automatically ECRX Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Slave ID specifies the slave ECOM 100 PLC that will be targeted by the ECRX instruction e From Slave Element Src specifies the slave address of the data to be read e
48. Mask could be displayed by an HMI The ECRDSNM is leading edge triggered not power flow driven similar to a counter input leg The command to read the Subnet Mask will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Read Subnet Mask SPO ECRDSNM ECOM100 Workspace Success Error Subnet Mask 4 words 3000 3003 DL06 Micro PLC User Manual Supplement Box Instructions l 93 DirectSOFTS5 IBox Instructions for DLO6 PLCs SSS ECOM100 Write Description ECWRDES IB 727 DS5 Used HPP N A ECOM100 Write Description will write the given Description to the ECOM100 module on a leading edge transition to the IBox If you use a dollar sign or double quote use the PRINT VPRINT escape sequence of TWO dollar signs for a single dollar sign or iie dollar sign double quote for a double ECOM100 Write Description quote character ECWRDES IB 727 The Workspace parameter is an internal ECOM100 KO private register used by this IBox and MUST Workspace BE UNIQUE in this one instruction and Success co t MUST NOT be used anywhere else in your Error program Error Code 400 Either the Success or Error bit parameter will Description CY turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than
49. Number of Bytes specifies the number of bytes to read from the slave ECOM 100 PLC e To Master Element Dest specifies the location where the slave data will be placed in the master ECOM100 PLC e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words K0 90 See DLO6 V memory map Number of Bytes K1 128 To Master Element Dest See DLO6 V memory map Data Words SUCCESS 0c eee eee ee X Y C GX GY B See DLO6 V memory map EMON soene ennnen X Y C GX GY B See DLO6 V memory map 106 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECRX Fxample Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available fo
50. O 5 one location for each input channel bled Input Data Address 400 ee Number of Output Channels K1 The Output Data Address is the Output Data Format 0 BCD 1 BIN KO e starting location in user V memory Output Data Address V400 where the analog output data values will be placed by ladder code or external device one location for each output channel enabled Since the Box logic only executes on the first scan the instruction cannot have any input logic ANLGCMB Parameters e Base KO Local must be 0 for DLOG PLC e Slot specifies which PLC option slot is occupied by the analog module 1 4 e Number of Input Channels specifies the number of analog input channels to scan e 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 e Input Data Address specifies the starting V memory location that will be used to store the analog input data e Number of Output Channels specifies the number of analog output channels that will be used e Output Data Format 0 BCD 1 BIN specifies the format of the analog output data BCD or Binary e Output Data Address specifies the starting V memory location that will be used to source the analog output data Parameter DLO6 Range KO local base only K1 4 Number of Input Channels K1 8 Input Data Format 0 BCD 1 BIN BCD KO Binary K1 Input Data Address See DLO6
51. O Write File to ROM writes the runtime changes made to a loaded CTRIO Preset Table back to Flash ROM on a leading edge transition to this IBox This Box will take more than 1 PLC scan to execute Either the Success or Error bit will turn on when the Paea fe command is complete If the Error Bit is on CTRIO Write File to ROM you can use the CTRIO Read Error Code CTRWETR 18 1006 CTRRDER Box to get extended error CTRIO KO information Output KO Workspace V400 bi The Workspace register is for internal use by S this Box instruction and MUST NOT be ae co Error used anywhere else in your program CTRWFTR Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully Parameter DLO6 Range K0 255 K0 3 See DLO6 V memory map Data Words SUCCESS eieaa ereina X Y C GX GY B See DLO6 V memory map EON jie tigcwetes cine tina X Y C GX GY B See DLO6 V memory map 158 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTRWFTR Example Rung 1 This sets
52. OFT5 IBox Instructions for DLO6 PLCs CTRIO Initialize Preset Table CTRINTR IB 1010 CTRIO Initialize Preset Table on a leading edge transition to this Box will create a single entry Preset Table in memory but not as a file on a specific CTRIO Output resource This IBox will take more than 1 PLC scan to execute Either the Success or Error bit will vxj CTRIO Initialize Preset Table on Reset turn on when the command is complete If CTRINTR 1B 1010 the Error Bit is on you can use the CTRIO CTRIO KO s Read Error Code CTRRDER IBox to get oo ko d d fi i Entry Type w400 Ls extended error information Pulse Time Gad Entry Type PresetCount V400 Workspace 400 i motos Success K1 Reset Error co K2 Pulse On uses Pulse Time K3 Pulse Off uses Pulse Time K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this Box instruction and MUST NOT be used anywhere else in your program CTRINTR Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Entry Type specifies the Entry Type to add during the edit e Pulse Time specifies a pulse time for the Pulse On and Pulse Off Entry Types e Preset Count specifies an initial count value to begin at after Reset e Workspace specifies a V memory locat
53. Pushed C11 DL06 Micro PLC User Manual Supplement Box Instructions l 79 ECOM100 Restore Default EMail Setup ECEMRDS ECOM100 Workspace Success Error Error Code DirectSOFT5 IBox Instructions for DLO6 PLCs B ECOM100 IP Setup ECIPSUP IB 717 DS5 Used HPP N A ECOM100 IP Setup will configure the three TCP IP parameters in the ECOM100 IP Address Subnet Mask and Gateway Address on a leading edge transition to the IBox The ECOM100 is specified by the ECOM100 i VIX which corresponds to a specific unique LAS PRATAR etu ECOM100 Configuration ECOM100 IBox e j oe at the top of your program Sear The Workspace parameter is an internal Workspace va00 private register used by this IBox and MUST ating ce rare rror BE UNIQUE in this one instruction and EROA FTT MUST NOT be used anywhere else in your etre program Subnet Mask Either the Success or Error bit parameter will Gateway Address o 0 0 0 turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 This setup data is stored in Flash ROM in the ECOM100 and will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY C
54. Real Numbers SUMR IB 542 sed Sum Real Numbers sums up a list of consecutive REAL DWORD numbers into a REAL 60 DWORD result You specify the group s starting and ending V memory addresses inclusive Remember that Real numbers are DWORDs MAI and occupy 2 words of V memory each so Sum Real Numbers the number of Real values summed up is SUMR 1B 542 equal to half the number of memory Start Address DWORD v400 locations Note that the End Address can be End Addr inclusive DWORD V400 EITHER word of the 2 word ending address Result DWORD for example if you wanted to add the 4 Real numbers stored in V2000 thru V2007 V2000 V2002 V2004 and V2006 you can specify V2006 OR V2007 for the ending address and you will get the same result When enabled this instruction will add up all the numbers in the group so you may want to place a differential contact driving the enable SUMR could be used as the first part of calculating an average SUMR Parameters e Start Address DWORD specifies the starting address of a block of V memory location values to be added together Real e End Addr inclusive DWORD specifies the ending address of a block of V memory location values to be added together Real e Result DWORD specifies the location where the sum of the block of V memory Real values will be placed l Parameter DLO6 Range Start Address inclusive DWORD See DLO6 V memory map Data Wo
55. SOFT5 IBox Instructions for DLO6 PLCs i RTOBCDD Example In the following example the RTOBCDD instruction is used to convert the 32 bit REAL floating point data format in V3000 and V3001 to the 8 digit BCD data format and stored in V2000 and V2001 K2 in the Number of Decimal Points implies the data will have two implied decimal points Real to Double BCD wilmplied Decimal Pt and Rounding RTOBCDD IB 563 Value DWORD Real 3000 3001 Number of Decimal Points K2 Result DWORD BCD 2000 2001 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFTS5 IBox Instructions for DLO6 PLCs Square BCD SQUARE IB 523 Square BCD squares the given 4 digit WORD BCD number and writes it in as an 8 digit DWORD BCD result SQUARE Parameters e Value WORD BCD specifies the BCD Square BCD Word or constant that will be squared SQUARE e Result DWORD BCD specifies the location yajye WORD BCD TAO where the squared DWORD BCD value will Result OWORD BCD V400 be placed Value WORD BCD V PK K0 9999 See DLO6 V memory map Data Words Result DWORD BCD See DLO6 V memory map Data Words 50 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs SQUARE Fxample In the following example the SQUARE instruction is used to square the 4 digit BCD value in V2000 and store the 8 digit double word BCD result in V3000 and V3001
56. Text u2 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m MATHBIN Example In the following example the MATHBIN instruction is used to calculate the math expression which multiplies the Binary value in V1200 by 1000 then divides by 4095 and loads the resulting value in V2000 Math Binary MATHBIN IB 501 WORD Result V2000 Expression 1200 K1000 K4095 DL06 Micro PLC User Manual Supplement Box Instructions l 43 DirectSOFT5 IBox Instructions for DLO6 PLCs Math Real MATHR IB 541 DS5 Math Real Format lets you enter complex mathematical expressions like you would in Visual Basic Excel or C to do complex calculations nesting parentheses up to 4 levels deep In addition to you can do Bit wise And amp Or Xor and many Real Math Real functions Arc Cosine ACOSR Arc Sine MATHR 1B 541 ASINR Arc Tangent ATANR Cosine DWORD Result TAO COSR Convert Radians to Degrees Expression DEGR Invert Bits INV Convert Degrees to Radians RADR HEX to Seven Segment Display SEG Sine SINR Square Root SQRTR Tangent TANR Example V2000 V2002 V2004 R2 5 SINR RADR V3000 R10 0 Every V memory reference MUST be able to fit into a double word Real formatted value MATHR Parameters e DWORD Result specifies the location where the Real result of the mathematical expressio
57. User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECWRDES Fxample Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS w402 502 Rung 2 On the 2nd scan set the Module Description of the ECOM100 Typically this is done using NetEdit but this IBox allows you to configure the module description in the ECOM100 using your ladder program The EWRDES is leading edge triggered not power flow driven similar to a counter input leg The command to write the module description will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code _FirstScan
58. V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config Ss ECOM100 ECOM100 Slot Status Workspace Msq Buffer 65 WORDs w402 502 Rung 2 On the 2nd scan assign the Subnet Mask of the ECOM100 to 255 255 0 0 The ECWRSNM is leading edge triggered not power flow driven similar to a counter input leg The command to write the Subnet Mask will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code To configure all of the ECOM100 TCP IP parameters in one Box see the ECOM100 IP Setup ECIPSUP IBox _FirstScan ECOM100 Write Subnet Mask SPO ECWRSNM IB 733 ECOM100 KO Workspace Y503 Success C100 Error C101 Error Code 2000 Subnet Mask 255 255 0 0 DL06 Micro PLC User Manual Supplement Box Instructions l 105 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 RX Network Read ECRX IB 740 DS5 Used HPP N A ECOM100 RX Network Read performs the RX instruction with built in interlocking with all other ECOM100 RX ECRX and ECO
59. X Y C GX GY B See DLO6 V memory map See DLO6 V memory map See DLO6 V memory map DL06 Micro PLC User Manual Supplement Box Instructions l 109 DirectSOFT5 IBox Instructions for DLO6 PLCs SSS SST ECWX Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config 1 ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS 402 502 example continued on next page 10 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECWX Example cont Rung 2 Using ECOM100 KO read X0 X7 from Slave K7 and write them to slave K5 as fast as possible Store them in this local PLC in C200 C207 and write them to C300 C307 in slave K5 Both the ECRX and ECWX work with the ECOM100 Config IBox to simplify all networking by handling
60. abled or disabled in the ECOM100 and store it in C5 DHCP is the same protocol used by PCs for using a DHCP Server to automatically assign the ECOM100 s IP Address Gateway Address and Subnet Mask The ECDHCPQ is leading edge triggered not power flow driven similar to a counter input leg The command to read Query whether DHCP is enabled or not will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Query DHCP Setting SPO ECDHCPGQ ECOM100 KO Workspace Success Error DHCP Enabled DL06 Micro PLC User Manual Supplement Box Instructions l 69 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Send E mail ECEMAIL IB 711 ECOM100 Send EMail on a leading edge transition will behave as an EMail client and send an SMTP request to your SMTP Server to send the EMail message to the EMail addresses in the To field and also to those listed in the Cc list hard coded in the ECOM100 It will send ECOM100 Send EMail the SMTP request based on the specified BERNE EAN ECOM100 which corresponds to a specific REI unique ECOM100 Configuration Success CO ECOM100 at the top of your program ara Smee The Body field supports what the PRINT PE i d and VPRINT instructions support for text Body S and embedded variables allowing you to embed real time data in your EMail e g
61. all of the interlocks and proper resource sharing They also provide very simplified error reporting You no longer need to worry about any SP busy bits or error bits or what slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is driving both the ECRX and ECWX IBoxes in the same rung On the scan that the Network Read completes the Network Write will start that same scan As soon as the Network Write completes any pending operations below it in the program would get a turn If there are no pending ECOM100 Boxes below the ECWX then the very next scan the ECRX would start its request again Using the ECRX and ECWX for all of your ECOM100 network reads and writes is the fastest the PLC can do networking For local Serial Ports DCM modules or the original ECOM modules use the NETCFG and NETRX NETWX IBoxes _On ECOM100 RX Network Read SP1 ECRX ECOM100 Workspace Slave ID From Slave Element Src Number Of Bytes To Master Element Dest Success Error ECOM100 WX Network Write ECVX ECOM100 Workspace Slave ID From Master Element Src Number Of Bytes To Slave Element Dest Success Error DL06 Micro PLC User Manual Supplement Box Instructions l 111 DirectSOFTS5 IBox Instructions for DLO6 PLCs NETCFG Network Configuration NETCFG IB 700 DS5 Used HPP N A Network Config defines
62. ata will be written to V2000 V2007 in BCD format Analog Input Module Pointer Setup ANLGIN Ng Base K0 Local No permissive contact or input logic is Slot used with this instruction Number of Input Channels Input Data Format 0 BCD 1 BIN Input Data Address DL06 Micro PLC User Manual Supplement Box Instructions l 9 DirectSOFT5 IBox Instructions for DLO6 PLCs Analog Output Module Pointer Setup ANLGOUT IB 461 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 XL o o a Analog Output Module Pointer Setup type the Base and the Slot NEET 1B 464 The Output Data Address is the Base K0 Local starting location in user V memory Slot KO where the analog output data values Number of Output Channels will be placed by ladder code or Output Data Format 0 BCD 1 BIN K0 external device one location for each Output Data Address V400 output channel enabled Since this logic only executes on the first scan this Box cannot have any input logic ANLGOUT Parameters e Base KO Local must be 0 for DLO6 PLC e Slot specifies which PLC option slot is occupied by the analog module 1 4 e Number of Output Channels specifies the number of analog output channels that will be used e Output Data Format 0 BCD 1 BIN specifies the for
63. ated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS cee cece eee X Y C GX GY B See DLO6 V memory map Error EE ern eee hes X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words DL06 Micro PLC User Manual Supplement Box Instructions l 73 DirectSOFTS5 IBox Instructions for DLO6 PLCs D uaua a aaa a ISOS ECEMRDS Example Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM
64. aw Data Filter Divisor 1 100 KI The Filter Divisor Constant is an integer in Filtered Value BCD TAQ 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 e Filter Frequency Timer specifies the Timer T number which is used by the Filter instruction e Filter Frequency Time 0 01sec specifies the rate at which the calculation is performed e Raw Data BCD specifies the V memory location of the raw unfiltered BCD value e Filter Divisor 1 100 this constant 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 e Filtered Value BCD specifies the V memory location where the filtered BCD value will be placed Parameter DLO6 Range Filter Frequency Timer T0 377 Filter Frequency Time 0 01 sec K0 9999 Raw Data BCD See DLO6 V memory map Data Words Filter Divisor 1 100 K1 100 Filtered Value B
65. below it in the program would get a turn If there are no pending NETRX or NET WX Boxes below this IBox then the very next scan the NETRX would start its request again Using the NETRX and NET WX for all of your serial port DCM or original ECOM network reads and writes is the fastest the PLC can do networking For ECOM100 modules use the ECOM100 and ECRX ECWX IBoxes _On Network RX Read SP1 NETRX Network Workspace Slave ID From Slave Element Src Number Of Bytes To Master Element Dest Success Error Network WX Write NETA Network Workspace Slave ID From Master Element Src Number Of Bytes To Slave Element Dest Success Error 16 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Network WX Write NETWX IB 702 Used Network WX Write performs the WX instruction with built in interlocking with all other HPP NA Network RX NETRX and Network WX NETWX Boxes in your program to simplify communications networking It will perform the WX on the specified Network M2 a Network Wx Writ which corresponds to a specific unique oars er sis ae Network Configuration NETCFG at the Keine a top of your program Workspace The Workspace parameter is an internal Slave ID private register used by this Box and mom yas be Earnie aro LIAO i MUST BE UNIQUE in this one ho ante dae R 0 Slave Element Des instructio
66. 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 e Filter Frequency Timer specifies the Timer T number which is used by the Filter instruction e Filter Frequency Time 0 01sec specifies the rate at which the calculation is performed e Raw Data Binary specifies the V memory location of the raw unfiltered binary decimal value e Filter Divisor 1 100 this constant 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 e Filtered Value Binary specifies the V memory location where the filtered binary decimal value will be placed Parameter DLO6 Range Filter Frequency Timer T0 377 Filter Frequency Time 0 01 sec K0 9999 Raw Data Binary See DLO6 V memory map Data Words Filter Divisor 1 100 K1 100 Filtered Value Binary 18 DL06 Micro PLC User Manual Supplement See DLO6 V memory map Data Words IBox Instructions DirectSOFT5 IBox Instructions
67. cific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace 401 Msg Buffer 65 WORDs Y402 Y502 Rung 2 On the 2nd scan assign the IP Address of the ECOM100 to 192 168 12 100 The ECWRIP is leading edge triggered not power flow driven similar to a counter input leg The command to write the IP Address will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code To configure all of the ECOM100 TCP IP parameters in one Box see the ECOM100 IP Setup ECIPSUP IBox _FirstScan ECOM100 Write IP Address SPO ECVYRIP IB 723 ECOM100 KO Workspace v503 Success c100 Error C101 Error Code 2000 IP Address 192 168 12 100 DL06 Micro PLC User Manual Supplement Box Instructions l 99 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Write Module ID ECWRMID IB 721 ECOM100 Write Module ID will write the given Module ID on a leading edge transition to the IBox If the Module ID is set in the hardware using VIXA the dipswitches this IBox will fail and return ECOM100 Write Module ID error code 1005 decimal ECWRMID 1B 721 The Workspace parameter is an internal Ecom1o0 ko private register used by this IBox an
68. cimal V memory location and sets four HPP N A 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 KO K65535 and or binary decimal V memory locations IA You must ensure that threshold limits are valid HiiLow Alarm Binary that is HH gt H gt L gt LL Note that when HILOALB IB 401 the High High or Low Low alarm condition is Monitoring Value Binary TAO 4 true that the High and Low alarms will also be High High Limit High High Alarm co g set respectively This means you may use the A a A igh Limi same threshold limit and same alarm bit for the E A High Alarm co 2 High High and the High alarms in case you ecg only need one High alarm Also note that the ay alarm co boundary conditions are inclusive That is if Poe the Low boundary is K50 and the Low Low sels Vera 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 Box then all alarm bits will be turned off regardless of the value of the Monitoring Value parameter O o HILOALB Parameters e Monitoring Value Binary specifies the V memory location of the Binary value to be monitored e High High Limit V memory location or constant specifies the high high alarm limit e High High Alarm On when the high high
69. counter with C1 enable CO to execute CTREDPT command to change the second preset turn on C2 to enable output 0 then turn encoder to value of 10 output 0 should turn on and then continue past a count of 30 output 0 should turn off Note that we must also reload the profile after changing the preset s this is why the CTRLDPR command follows the CTREDPT command in this example CTRIO Edit Preset Table Entry Start CTREDPT CTREDPT co CTRIO Output Table Entry 0 based Entry Type Pulse Time Preset Count Workspace Success Error CTRIO Load Profile CTRLDPR CTRIO Output File Workspace Success Error example continued on next page 130 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTREDPT Example con t Rung 3 This rung allows the programmer to reset the counter from the ladder logic reset counter C1 B2054 1 J _ AA OUT Rung 4 This rung allows the operator to enable output 0 from the ladder code enable output 0 C2 B2056 0 a ous DL06 Micro PLC User Manual Supplement Box Instructions 13 DirectSOFTS5 IBox Instructions for DLO6 PLCs CTRIO Edit Preset Table Entry and Reload CTREDRL IB 1002 DS5 CTRIO Edit Preset Table Entry and Reload on a leading edge transition to this IBox will HPP perform this dual operation to a CTRIO Output resource in one CTRIO command This IBox will ta
70. ctions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECWRNAM Example Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS 402 Y502 Rung 2 On the 2nd scan set the Module Name of the ECOM100 Typically this is done using NetEdit but this Box allows you to configure the module name of the ECOM100 using your ladder program The EWRNAM is leading edge triggered not power flow driven similar to a counter input leg The command to write the module name will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code _FirstScan ECOM100 Write Name SPO ECVWRNAM IB 725 ECOM100
71. d MUST Workspace BE UNIQUE in this one instruction and Siccess co gt MUST NOT be used anywhere else in your enor iid ErrorCode V400 Either the Success or Error bit parameter will ModuleiD Ko gt turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The Module ID is stored in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SPO STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board ECWRMID Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e Module ID specifies th
72. de less than 100 or a PLC logic error greater than 1000 You are limited to approximately 100 characters bytes of setup data for the entire instruction So if needed you could divide the entire setup across multiple ECEMSUP IBoxes on a field by field basis for example do the Carbon Copy cc field in one ECEMSUP IBox and the remaining setup parameters in another In order for this ECOM100 IBox to function you must turn ON dip switch 7 on the ECOM100 circuit board ECEMSUP Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Frror specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e SMTP Server IP Addr optional parameter that specifies the IP Address of the SMTP Server on the ECOM100 s network e Sender Name optional parameter that specifies the sender name that will appear in the From field to those who receive the e mail e Sender EMail optional parameter that specifies the sender EMail address that will appear in the From field to those who receive the e mail 76 DL06 M
73. dge triggered not power flow driven similar to a counter input leg The command to read the module description will be sent to the ECOM100 whenever the power flow into the Box goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Read Description SPO ECRDDES ECOM100 Workspace Success Error Description Num Chars DL06 Micro PLC User Manual Supplement Box Instructions l 83 DirectSOFT5 IBox Instructions for DLO6 PLCs SS ECOM100 Read Gateway Address ECRDGWA IB 730 DS5 Used HPP N A ECOM100 Read Gateway Address will read the 4 parts of the Gateway IP address and store them in 4 consecutive V Memory locations in decimal format on a leading edge transition to the IBox The Workspace parameter is an internal private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Either the Success or Error bit parameter will turn on once the command is complete In order for this ECOM100 IBox to function you must turn ON dip switch 7 on the ECOM100 circuit board ECRDGWA Parameters Ixe o ECOM100 Read Gateway Address ECRDGWA IB 730 ECOM100 Workspace 400 gt Success Error co s Gateway IP Addr 4 words V400 is e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to refe
74. e DWORD BCD Number of Decimal Points KO Result DWORD REAL e Number of Decimal Points specifies the number of implied decimal points in the Result DWORD e Result DWORD REAL specifies the location where the Real number will be placed Parameter DLO6 Range Value DWORD BCD V P K K0 99999999 See DLO6 V memory map Data Words Number of Decimal Points K0 8 Result DWORD REAL See DLO6 V memory map Data Words 38 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m BCDTORD Example In the following example the BCDTORD instruction is used to convert the 32 bit data in V2000 from an 8 digit BCD data format to a 32 bit REAL floating point data format and stored into V3000 and V3001 K2 in the Number of Decimal Points implies the data will have two digits to the right of the decimal point Double BCD to Real with Implied Decimal Point BCDTORD IB 562 Value DWORD BCD 2000 2001 Number of Decimal Points K2 Result DWORD REAL 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 39 DirectSOFT5 IBox Instructions for DLO6 PLCs Math BCD MATHBCD IB 521 Math BCD Format lets you enter complex mathematical expressions like you would in WA Visual Basic Excel or C to do complex FFA calculations nesting parentheses up to 4 levels oe th BCD deep In addition to
75. e Module ID that will be written to the module Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS a a eae X Y C GX GY B See DLO6 V memory map EMOD 2c 0at838 cece Adee cote X Y C GX GY B See DLO6 V memory map Error Code See DLO6 V memory map Data Words K0 65535 100 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECWRMID Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS Y402 Y502 Rung 2 On the 2nd scan set the Module ID of the ECOM100 Typically this is done using NetEdit but this Box allows you to configure the module ID of the ECOM100 using your ladder program The EWRMID is leading edge triggered not
76. e X Y C GX GY B See DLO6 V memory map 144 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m CTRLDPR Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 Rung 2 This CTRIO Load Profile Box will load File 1 into the working memory of Output 0 in CTRIO 1 This example program requires that you load CTRLDPR_IBox cwb into your Hx CTRIO module CTRIO Load Profile Try_Load_Profile CTRLDPR 1B 1001 co CTRIO Output File Workspace Success Error example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 145 DirectSOFTS5 IBox Instructions for DLO6 PLCs CTRLDPR Example con t Rung 3 If the file is successfully loaded set Profile_Loaded CTRLDPR_Success Profile_Loaded c100 C1 WA Ff eT 146 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTRIO Read Error CTRRDER IB 1014 Used CTRIO Read Error Code will get the decimal error code value from the CTRIO module WA listed below and place it into
77. e number of characters bytes to read from the ECOM100 s Description field Parameter DLO6 Range ECOM100 K0 255 See DLO6 V memory map Data Words SUCCESS 0 cece ee eee X Y C GX GY B See DLO6 V memory map EHON askced sted ri nuaa als X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words Num Chars K1 128 82 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECRDDES Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace 401 Msg Buffer 65 WORDS 402 V502 Rung 2 On the 2nd scan read the Module Description of the ECOM100 and store it in V3000 thru V3007 16 characters This text can be displayed by an HMI The ECRDDES is leading e
78. e property of their respective owners Automation Direct disclaims any proprietary interest in the marks and names of others Copyright 2006 Automationdirect com Incorporated All Rights Reserved No part of this manual shall be copied reproduced or transmitted in any way without the prior written consent of Automationdirect com Incorporated AutomationDirect retains the exclusive rights to all information included in this document M AVERTISSEMENT Nous vous remercions d avoir achet l quipement d automatisation de Automationdirect com en faisant des affaires comme AutomationDirect Nous tenons ce que votre nouvel quipement d automatisation fonctionne en toute s curit Toute personne qui installe ou utilise cet quipement doit lire la pr sente publication et toutes les autres publications pertinentes avant de l installer ou de l utiliser Afin de r duire au minimum le risque d ventuels probl mes de s curit vous devez respecter tous les codes locaux et nationaux applicables r gissant l installation et le fonctionnement de votre quipement Ces codes diff rent d une r gion l autre et habituellement voluent au fil du temps Il vous incombe de d terminer les codes respecter et de vous assurer que l quipement l installation et le fonctionnement sont conformes aux exigences de la version la plus r cente de ces codes Vous devez tout le moins respecter toutes les sections applicables du Code na
79. ectly or indirectly via a pointer either as a HEX constant from a memory location or indirectly through a pointer MOVEW Parameters MaA e From WORD specifies the word that will be Move Single Word MOVE moved to another location e To WORD specifies the location where the From WORD will be move to From WORD TAO g To WORD TAO Parameter DLO6 Range From WORD 00c eee ee eee V P K KO FFFF See DLO6 V memory map Data Words To WORD 0 cece cece eee eee VP See DLO6 V memory map Data Words 32 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs MOVEW Example In the following example the MOVEW instruction is used to move 16 bits of data from V2000 to V3000 when C100 turns on Move Single Word MOVEVY IB 200 From WORD 2000 To WORD 3000 DL06 Micro PLC User Manual Supplement Box Instructions l 33 Move Double Word MOVED IB 201 5 Move Double Word moves DirectSOFT5 IBox Instructions for DLO6 PLCs 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 e From DWORD specifies the double word that will be moved to another location e To DWORD specifies the location where the From DWORD will be move to Paramet
80. ed Decimal Point and Rounding RTOBCDD IB 563 DS5 Used HPP N A Real to Double BCD with Implied Decimal Point and Rounding converts the absolute value of the given Real number to an 8 digit DWORD BCD number compensating for an implied number of decimal points K0 K8 and performs rounding For example RTOBCDD R38156 74 with an implied number of decimal points equal to K1 would yield 381567 BCD If the implied number of decimal points was 0 then the function would yield 38157 BCD note that it rounded up Ixe Real to Double BCD wilmplied Decimal Pt and Rounding RTOBCDD IB 563 Value DWORD Real TAO Number of Decimal Points KO e Result DWORD BCD 400 s If the Real number is negative the Result will equal its positive absolute value RTOBCDD Parameters e Value DWORD Real specifies the Dword Real number that will be converted and rounded to a BCD number with decimal points e Number of Decimal Points specifies the number of implied decimal points in the Result DWORD e Result DWORD BCD specifies the location where the rounded implied decimal points DWORD BCD value will be placed Parameter DLOG6 Range Value DWORD Real V P R R See DLO6 V memory map Data Words Number of Decimal Points K0 8 Result DWORD BCD See DLO6 V memory map Data Words ELS l DL06 Micro PLC User Manual Supplement Box Instructions Direct
81. eering binary specifies the V memory location where the scaled engineering decimal value will be placed l Parameter DLO6 Range Raw 12 bit binary 06 V P See DLO6 V memory map Data Words High Engineering K0 65535 Low Engineering K0 65535 Engineering binary 000 VP See DLO6 V memory map Data Words 14 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ANSCLB Fxample In the following example the ANSCLB instruction is used to scale a raw value 0 4095 binary that is in V2000 The engineering scaling range is set 0 1000 low engineering value high engineering value The scaled value will be placed in V2100 in binary format Analog Scale 12 Bit Binary to Binary ANSCLB IB 403 Raw 12 bit binary 2000 High Engineering Low Engineering Engineering binary DL06 Micro PLC User Manual Supplement Box Instructions l 15 DirectSOFTS5 IBox Instructions for DLO6 PLCs D u a a ISOS Filter Over Time BCD FILTER IB 422 DS5 Used Filter Over Time BCD will perform a first order filter on the Raw Data on a defined time HPP N A interval The equation is New Old Raw Old FDC where Rake New New Filtered Value Fiter over Time BED FILTER IB 422 Old Old Filtered Value Filter Freq Timer To FDC Filter Divisor Constant Filter Freq Time 0 01 sec KO Raw Data BCD Raw R
82. er Lv x 23 Move Double Word MOVED From DWORD TAQ To DWORD TAO DLO6 Range KO FFFFFFFF See DLO6 V memory map Data Words See DLO6 V memory map Data Words 34 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs 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 Move Double Word MOVED IB 201 From DWORD 2000 2001 To DWORD 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 35 DirectSOFTS5 IBox Instructions for DLO6 PLCs BCD to Real with Implied Decimal Point BCDTOR IB 560 BCD to Real with Implied Decimal Point converts the given 4 digit WORD BCD value to a Real number with the implied number of decimal points KO K4 For example BCDTOR K1234 with an implied number of decimal points equal to LY Jos 33 K1 would yield R123 4 BCD to Real with Implied Decimal Point BCDTOR IB 560 BCDTOR Parameters Value WORD BCD e Value WORD BCD specifies the word or Number of Decimal Points K0 i constant that will be converted to a Real Result DWORD REAL v400 S number e Number of Decimal Points specifies the number of implied decimal points in the Result DWORD e Result DWORD REAL specifies the location where the Real number will be placed Parameter DLO6 Range Value WORD BC
83. ere the Error Code will be written Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words See DLO6 V memory map Data Words DL06 Micro PLC User Manual Supplement Box Instructions l 147 DirectSOFTS5 IBox Instructions for DLO6 PLCs aT CTRRDER Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 Rung 2 This CTRIO Read Error Code Box will read the Extended Error information from CTRIO 1 This example program requires that you load CTRRDER_IBox cwb into your Hx CTRIO module CTRIO Read Error Code Read_Error_Code CTRRDER IB 1014 co CTRIO K1 Workspace V401 Error Code V402 148 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTRIO Run to Limit Mode CTRRTLM IB 1011 Used CT RIO Run To Limit Mode on a leading edge transition to this Box loads the Run to WA Limit command and given parameters on a specific Output resource The CTRIO s Input s must be configured as Limit s for this function to work CTRIO Run To Limit Mod Valid Hexadecimal Limit Values ee aah ee A K00 Risi
84. etup the ECOM100 to use its internal TCP IP settings on a DS5 Used HPP NA N A leading edge transition to the IBox To configure the ECOM100 s TCP IP settings manually e4 use the NetEdit3 utility or you can do it programmatically from your PLC program vijel using the ECOM100 IP Setup ECIPSUP or ECOM100 Disable DHCP the individual ECOM100 IBoxes ECOM ECDHCPD Write IP Address ECWRIP ECOM Write ECOM100 Gateway Address ECWRGWA and ECOM100 Write Subnet Mask ECWRSNM Success Error Error Code Workspace The Workspace parameter is an internal private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Either the Success or Error bit parameter will turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The Disable DHCP setting is stored in Flash ROM in the ECOM100 and the execution of this Box will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this Box ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board ECDHCPD Pa
85. f 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 MAXA o timer a RESET and ele is never On Delay Timer turned on so you must have continuous y ONDTMR IB 301 power flow to the IBox for at least the R i Timer Number TO specified On Delay Time before the On Delay Time 0 01 sec TAO Output turns On Output co This IBox utilizes a Timer resource TMREF which cannot be used anywhere else in your program ONDTMR Parameters e Timer Number specifies the Timer TMRF number which is used by the ONDTMR instruction e On Delay Time 0 01sec specifies how long the Output will remain on once power flow to the Tbox is removed e Output specifies the output that will be delayed turning on by the On Delay Time Parameter DLO6 Range 0 377 On Delay Time 00 0 ee eee KV K0 9999 See DLO6 V memory map Data Words QUID vice ogee tane annus s X Y C GX GY B See DLO6 V memory map 26 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ONDTMR Fxample 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 turn
86. fig Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WWORDs V402 Y502 Rung 2 On the 2nd scan configure all of the TCP IP parameters in the ECOM100 IP Address 192 168 12 100 Subnet Mask 2533 2595 0a 0 Gateway Address 192 168 0 1 The ECIPSUP is leading edge triggered not power flow driven similar to a counter input leg The command to write the TCP IP configuration parameters will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code _FirstScan ECOM100 IP Setup SPO ECIPSUP ECOM100 Workspace Success Error C101 Error Code 2000 IP Address 192 168 12 100 Subnet Mask 255 255 0 0 Gateway Add
87. fo Hi Low Alarm BCD HILOAL IB 421 Monitoring Value BCD TAO i High High Limit TAG al High High Alarm High Limit TAO i High Alarm Low Limit Low Alarm co i Low Low Limit O o Q Low Low Alarm 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 HILOAL Parameters e Monitoring Value BCD specifies the V memory location of the BCD value to be monitored e High High Limit V memory location or constant specifies the high high alarm limit e High High Alarm On when the high high limit is reached e High Limit V memory location or constant specifies the high alarm limit e High Alarm On when the high limit is reached e Low Limit V memory location or constant specifies the low alarm limit e Low Alarm On when the low limit is reached e Low Low Limit V memory location or constant specifies the low low alarm limit e Low Low Alarm On when the low low limit is reached Parameter DLO6 Range Monitoring Value BCD See DLO6 V memory map Data Words High High Limit K0 9999 or see DLO6 V memory map Data Words See DLO6 V memory map K0 9999 or see DLO6 V memory map Data Words See DLO6 V memory map K0 9999 or see DLO6 V memory map Data Words Low Alarm See DLO6 V memory map
88. for DLO6 PLCs 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 Filter Over Time Binary FILTERB Filter Freq Timer Filter Freq Time 0 01 sec Raw Data Binary Filter Divisor 1 100 Filtered Value Binary DL06 Micro PLC User Manual Supplement Box Instructions l 19 DirectSOFTS5 IBox Instructions for DLO6 PLCs Hi Low Alarm BCD HILOAL IB 421 DS5 Hi Low Alarm BCD monitors a BCD value V memory location and sets four possible alarm HPP states High High High Low and Low Low whenever the Box has power flow You enter the alarm thresholds as constant K BCD values KO K9999 and or BCD value V memory locations You must ensure that threshold limits are valid that is HH gt H gt L gt 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 Ixe
89. fter Reset e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully 136 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 K0 3 K0 5 See DLO6 V memory map Data Words Pulse Time 0000 cee eee VK K0 65535 See DLO6 V memory map Data Words Preset Count ccc cece ences VK K0 2147434528 See DLO6 V memory map See DLO6 V memory map Data Words SUCCESS reiti darna Katee X Y C GX GY B See DLO6 V memory map ENOL greuiuiidecleeauiew faders X Y C GX GY B See DLO6 V memory map CTRINPT Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 13 7 DirectSOFT5 IBox Instructions for DLO6 PLCs aT CTRINPT Example cont Rung 2 This rung is a sample method for enabl
90. he Workspace parameter is an internal private register used by this IBox and MUST Papa e BE UNIQUE in this one instruction and ECOM100 Read Module ID MUST NOT be used anywhere else in your ECRDMID IB 720 program ECOM100 KO Either the Success or Error bit parameter will Workspace 400 turn on once the command is complete Success co In order for this ECOM100 IBox to function Error Co you must turn ON dip switch 7 on the ECOM100 circuit board lees moult ECRDMID Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Module ID specifies the location where the ECOM100 s Module ID decimal will be placed Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS iis rcenin cs acatereeanctea X Y C GX GY B See DLO6 V memory map BION E E E aancheitio Sts X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words 88 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECRDMID Example Rung 1
91. he programmer to control the command from Data View for testing purposes Turning on CO will cause the CTRINTR instruction to create a single entry preset table but not as a file and use it for output 0 the new preset will be loaded when the current count is reset In this case the single preset will be a set at a count of 25 for output 0 Operating procedure for this example code is to load the CTRINTR_ex1 cwh file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 10 and output 0 light will come on Now turn on CO to execute the CTRINTR command reset the counter with C1 then turn encoder to value of 25 output 0 should turn on ee CTRIO Initialize Preset Table on Reset Start a CTRINTR CTRIO Output Entry Type Pulse Time Preset Count Workspace Success Error example continued on next page 142 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m CTRINTR Example con t Rung 3 This rung allows the programmer to reset the counter from the ladder logic reset counter C1 B2054 1 eS OT E Rung 4 This rung allows the operator to enable output 0 from the ladder code enable output 0 C2 B2056 0 W Ap i OUT DL06 Micro PLC User Manual Supplement Box Instructions l 143 DirectSOFTS5 IBox Instructions for DLO6 PLCs D aa aa a ISOS CTRIO
92. his Box utilizes a Timer resource TMRF which cannot be used anywhere else in your program OFFDTMR Parameters e Timer Number specifies the Timer TMRF number which is used by the OFFDTMR instruction e Off Delay Time 0 01sec specifies how long the Output will remain on once power flow to the Tbox is removed e Output specifies the output that will be delayed turning off by the Off Delay Time Parameter DLO6 Range T0 377 Off Delay Time 00 KV K0 9999 See DLO6 V memory map Data Words OUIDUT Ae Oe ees 4 X Y C GX GY B See DLO6 V memory map 24 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m 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 off Delay Timer OFFDTMR Timer Number Off Delay Time 0 01 sec K500 Output C20 Example timing diagram C100 5 sec 5 sec C20 DL06 Micro PLC User Manual Supplement Box Instructions l 25 DirectSOFTS5 IBox Instructions for DLO6 PLCs On Delay Timer ONDTMR IB 301 On Delay Timer will delay the turning on of the Output parameter by the specified amount o
93. icro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECEMSUP Parameters con t e Port Number optional parameter that specifies the TCP IP Port Number to send SMTP requests usually this does not to be configured see your network administrator for information on this setting e Timeout sec optional parameter that specifies the number of seconds to wait for the SMTP Server to send the EMail to all the recipients e Cc optional parameter that specifies a list of carbon copy Email addresses to send all EMails to K0 255 See DLO6 V memory map Data Words X Y C GX GY B See DLO6 V memory map X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words DL06 Micro PLC User Manual Supplement Box Instructions l 77 DirectSOFTS5 IBox Instructions for DLO6 PLCs ST ECEMSUP Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a commo
94. ific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Timeout sec specifies a timeout period so that the instruction may have time to complete e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written Parameter DLO6 Range K0 255 K5 127 See DLO6 V memory map Data Words See DLO6 V memory map See DLO6 V memory map See DLO6 V memory map Data Words Timeout sec Workspace SUCCESS ooe cee oe X Y C GX GY B ENON aoso cutee gee oa e s X Y C GX GY B DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECDHCPE Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interl
95. ign installation or operation Our products are not fault tolerant and are not designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of the product could lead directly to death personal injury or severe physical or environmental damage High Risk Activities Automation Direct specifically disclaims any expressed or implied warranty of fitness for High Risk Activities For additional warranty and safety information see the Terms and Conditions section of our catalog If you have any questions concerning the installation or operation of this equipment or if you need additional information please call us at 770 844 4200 This publication is based on information that was available at the time it was printed At Automation Direct we constantly strive to improve our products and services so we reserve the right to make changes to the products and or publications at any time without notice and without any obligation This publication may also discuss features that may not be available in certain revisions of the product This publication may contain references to products produced and or offered by other companies The product and company names may be trademarked and are the sol
96. ill workspace 400 turn on once the command is complete Success In order for this ECOM100 Box to function Error co you must turn ON dip switch 7 on the IP Address 4 words Vv400 ECOM100 circuit board ECRDIP Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e IP Address specifies the starting address where the ECOM100 s IP Address will be placed in 4 consecutive V memory locations Parameter DLO6 Range ECOM100 K0 255 See DLO6 V memory map Data Words SUCCESS rovers l a ranea X Y C GX GY B See DLO6 V memory map EMON cata ei ed sethused notes X Y C GX GY B See DLO6 V memory map IP Address 4 Words See DLO6 V memory map Data Words 86 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECRDIP Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this
97. ill read the Module Name up to the number of specified characters HPP N A on a leading edge transition to the IBox The Workspace parameter is an internal private register used by this IBox and MUST 5 BE UNIQUE in this one instruction and BeeMt 00 ead Mama MUST NOT be used anywhere else in your BE ES oe ECOMI00 Either the Success or Error bit parameter will atepace Matt Success co gt turn on once the command is complete 3 T In order for this ECOM100 Box to function as Name v400 you must turn ON dip switch 7 on the A 7 ECOM100 circuit board ECRDNAM Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Module Name specifies the starting buffer location where the ECOM100 s Module Name will be placed e Num Chars specifies the number of characters bytes to read from the ECOM100 s Name field Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS prices eee eee X Y C GX GY B See DLO6 V memory map EMON Sacto atest geet atts nals X Y C
98. in Flash ROM in the ECOM100 and the execution of this IBox will disable the ECOM100 module for at least a half second until it writes the Flash ROM Therefore it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan Since it requires a LEADING edge to execute use a NORMALLY CLOSED SPO STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 IBox to function you must turn ON dip switch 7 on the ECOM100 circuit board ECWRNAM Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e Module Name specifies the Name that will be written to the module Parameter DLO6 Range K0 255 See DL06 V memory map Data Words SUCCESS suicide eee ea anaana X Y C GX GY B See DLO6 V memory map EMON facets oe drania nae dns X Y C GX GY B See DLO6 V memory map Error Code See DLO6 V memory map Data Words Module Name Text 102 l DL06 Micro PLC User Manual Supplement Box Instru
99. ing the CTRINPT command A C bit is used to allow the programmer to control the command from Data View for testing purposes Turning on CO will cause the CTRINPT instruction to create a single entry preset table but not as a file and use it for the output 0 In this case the single preset will be a set at a count of 15 for output 0 Operating procedure for this example code is to load the CTRINPT_ex1 cwb file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 15 and output 0 light will not come on Now reset the counter with C1 enable CO to execute CTRINPT command to create a single preset table with a preset to set output 0 at a count of 15 then turn encoder to value of 15 output 0 should turn on nee CTRIO Initialize Preset Table CTRIO Output Entry Type Pulse Time Preset Count Workspace Success Error example continued on next page 138 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ee __ ___ CTRINPT Example cont Rung 3 This rung allows the programmer to reset the counter from the ladder logic reset counter C1 B2054 1 eS OT E Rung 4 This rung allows the operator to enable output 0 from the ladder code enable output 0 C2 B2056 0 a a T DL06 Micro PLC User Manual Supplement Box Instructions l 139 DirectS
100. instruction to change the second preset in file 1 from a reset at a value of 20 to a reset at a value of 30 Operating procedure for this example code is to load the CTREDRL_ex1 cwb file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 10 and output 0 light will come on continue to a count above 20 and the output 0 light will turn off Now reset the counter with C1 enable CO to execute CTREDRL command to change the second preset count value to 30 then turn encoder to value of 10 output 0 should turn on and continue on to a value of 30 and the output 0 light will turn off Note that it is not necessary to reload this file separately however the command can only change one value at a time A CTRIO Edit Preset Table Entry and Reload Start CTREDRL CTREDRL co CTRIO Output Table Entry 0 based Entry Type Pulse Time Preset Count Workspace Success Error example continued on next page 134 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTREDRL Example con t Rung 3 This rung allows the programmer to reset the counter from the ladder logic reset counter C1 B2054 1 J _ pa OUT Rung 4 This rung allows the operator to enable output 0 from the ladder code enable output 0 C2 B2056 0 fe OUT DL06 Micro PLC User Manua
101. ion has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully DL06 Micro PLC User Manual Supplement Box Instructions l 149 DirectSOFTS5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 K0 3 K20 20000 See DLO6 V memory map Data Words KO FF See DLO6 V memory map Data Words K0 99 See DLO6 V memory map Data Words See DLO6 V memory map Data Words SUCCESS cece eee X Y C GX GY B See DLO6 V memory map ENOL aif cksig a uhcae seyr dunna X Y C GX GY B See DLO6 V memory map CTRRTLM Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config 1 CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 Rung 2 This CTRIO Run To Limit Mode Box sets up Output 0 in CTRIO 1 to output pulses at a Frequency of 1000 Hz until Llimit 0 comes on This example program requires that you load CTRRTLM_IBox cwb into your Hx CTRIO module CTRIO Run To Limit Mode eee CTRRTLM 18 1011 CTRIO Output Frequency Limit Duty Cycle Workspace Success Error example continued on next page 150 DL06 Micro PLC User Manual Supplement Box Instructio
102. ion that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully 140 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 K0 3 K0 5 See DLO6 V memory map Data Words Pulse Time 000 cece eee VK K0 65535 See DLO6 V memory map Data Words Preset Count cc eee siipat VK K0 2147434528 See DLO6 V memory map See DLO6 V memory map Data Words SUCCESS sariri ceca wierd cee X Y C GX GY B See DLO6 V memory map ENON stato Teachotwkehade X Y C GX GY B See DLO6 V memory map CTRINTR Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 141 DirectSOFTS5 IBox Instructions for DLO6 PLCs aT CTRINTR Example con t Rung 2 This rung is a sample method for enabling the CTRINTR command A C bit is used to allow t
103. ke more than 1 PLC scan to f Paa MAA execute Either the Success or Error bit will l heath di lete If CTRIO Edit Preset Table Entry and Reload turn on when the command is complete eral ee the Error Bit is on you can use the CTRIO CTRIO Read Error Code CTRRDER Box to get Output extended error information VENE Entry 0 based Entry Type Entry Type v400 Pulse Time KO Set Preset Count K1 Reset Workspace Success K2 Pulse On uses Pulse Time Error co G K3 Pulse Off uses Pulse Time K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTREDRL Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Table specifies the Table number of which an Entry is to be edited e Entry specifies the Entry location in the Preset Table to be edited e Entry Type specifies the Entry Type to add during the edit e Pulse Time specifies a pulse time for the Pulse On and Pulse Off Entry Types e Preset Count specifies an initial count value to begin at after Reset e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed
104. l Supplement Box Instructions l 135 DirectSOFT5 IBox Instructions for DLO6 PLCs aT CTRIO Initialize Preset Table CTRINPT IB 1004 DS o Used CTRIO Initialize Preset Table on a leading edge transition to this IBox will create a single HPP N A _ entry Preset Table in memory but not as a file on a specific CTRIO Output resource This IBox will take more than 1 PLC scan to IAA r execute Either the Success or Error bit will CTRIO Initialize Preset Table turn on when the command is complete If CTRINPT 18 1004 the Error Bit is on you can use the CTRIO CTRIO Read Error Code CTRRDER Box to get sae extended error information PulseTime v400 Entry Type Preset Count V400 Workspace 400 KO Set Success K1 Reset Emor co a K2 Pulse On uses Pulse Time K3 Pulse Off uses Pulse Time K4 Toggle K5 Reset Count Note that the Pulse Time parameter is ignored by some Entry Types The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRINPT Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Entry Type specifies the Entry Type to add during the edit e Pulse Time specifies a pulse time for the Pulse On and Pulse Off Entry Types e Preset Count specifies an initial count value to begin at a
105. map Data Words SUCCESS 0 cece eee ee X Y C GX GY B See DLO6 V memory map ENOL tncee eden ckoeatels X Y C GX GY B See DLO6 V memory map CTREDPT Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config 1 CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 1 29 DirectSOFTS5 IBox Instructions for DLO6 PLCs aT CTREDPT Example con t Rung 2 This rung is a sample method for enabling the CTREDPT command A C bit is used to allow the programmer to control the command from Data View for testing purposes Turning on CO will cause the CTREDPT instruction to change the second preset from a reset at a count of 20 to a reset at a count of 30 for output 0 on the CTRIO in slot 2 Operating procedure for this example code is to load the CTREDPT_ex1 cwb file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 10 and output 0 light will come on and stay on until a count of 20 is reached where it will turn off Now reset the
106. mat of the analog output data BCD or Binary e Output Data Address specifies the starting V memory location that will be used to source the analog output data Parameter DLO6 Range KO local base only K1 4 Number of Output Channels K1 8 Output Data Format 0 BCD 1 BIN BCD KO Binary K1 Output Data Address See DLO6 V memory map Data Words 10 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ANLGOUT Example In the following example the ANLGOUT instruction is used to setup 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 Analog Output Module Pointer Setup ANLGOUT Base KO0 Local No permissive contact or input logic is Slot used with this instruction Number of Output Channels Output Data Format 0 BCD 1 BIN Output Data Address DL06 Micro PLC User Manual Supplement Box Instructions l 11 DirectSOFTS5 IBox Instructions for DLO6 PLCs 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 4095 BCD into BCD 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 V memory address ijl you want the to place the scaled Analog Scale 12 Bit BCD
107. me SPO ECRDNAM ECOM100 Workspace Success Error Module Name Num Chars DL06 Micro PLC User Manual Supplement Box Instructions l 91 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Read Subnet Mask ECRDSNM IB 732 DS5 Used HPP N A ECOM100 Read Subnet Mask will read the 4 parts of the Subnet Mask and store them in 4 consecutive V Memory locations in decimal format on a leading edge transition to the Box The Workspace parameter is an internal private register used by this IBox and MUST Kix 0 BE UNIQUE in this one instruction and ECOM100 Read Subnet Mask MUST NOT be used anywhere else in your ECRDSNM 1B 732 program ECOM100 Either the Success or Error bit parameter will Workspace 400 7 turn on once the command is complete Success In order for this ECOM100 IBox to function Error co i you must turn ON dip switch 7 on the Subnet Mask 4 words V400 i ECOM100 circuit board ECRDSNM Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Subnet
108. 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 C120 HisLow Alarm Binary HILOALB Monitoring Value Binary High High Limit High High Alarm High Limit High Alarm Low Limit Low Alarm Low Low Limit Low Low Alarm DL06 Micro PLC User Manual Supplement Box Instructions l 23 DirectSOFT5 IBox Instructions for DLO6 PLCs Off Delay Timer OFFDTMR IB 302 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 ZAA REMAIN ON for the specified amount of Off Delay Timer time in hundredths of a second Once the OFEOT R sae Off Delay Time has expired the output will R 7 turn Off If the power flow to the Box comes ai back on BEFORE the Off Delay Time then T Pe TRENITA 7 the timer is RESET and the Output will lhe 2 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 T
109. n your PLC you must have a different ECOM100 Configuration IBox for EACH ECOM100 module in your system that utilizes any ECOM IBox instructions The Workspace and Status parameters and the entire Message Buffer are internal private registers used by the ECOM100 Configuration Box and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program In order for MOST ECOM100 Boxes to function you must turn ON dip switch 7 on the ECOM100 circuit board You can keep dip switch 7 off if you are ONLY using ECOM100 Network Read and Write Boxes ECRX ECWX ECOM100 Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Slot specifies the option slot the module occupies e Status specifies a V memory location that will be used by the instruction e Workspace specifies a V memory location that will be used by the instruction e Msg Buffer specifies the starting address of a 65 word buffer that will be used by the module for configuration Parameter DLO6 Range K0 255 K1 4 See DLO6 V memory map Data Words See DLO6 V memory map Data Words See DLO6 V memory map Data Words 62 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Fxample The ECOM100 Config IBox
110. n 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config 1 ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS W402 V502 example continued on next page 78 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECEMSUP Example con t Rung 2 Whenever an EStop is pushed ensure that president of the company gets copies of all EMails being sent The ECOM100 EMail Setup Box allows you to set change the SMTP EMail settings stored in the ECOM100 The ECEMSUP is leading edge triggered not power flow driven similar to a counter input leg At power up the ROM based EMail configuration stored in the ECOM100 is copied to a RAM based working copy You can change this working copy by using the ECEMSUP IBox To restore the original ROM based configuration use the Restore Default EMail Setup ECEMRDS IBox If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code EStop Pushed C11 ECOM100 EMail Setup ECEMSUP IB 712 ECOM100 KO Workspace Y503 Success C100 Error C101 Error Code w2000 SMTP Server IP Addr Sender Name Sender Email Port Number Timeout sec Cc president acme com Rung 3 Once the EStop is pulled out take the president off the cc list by restoring the default EMail setup in the ECOM100 EStop
111. n BCD format Analog Scale 12 BitBCD to BCD ANSCL Raw 0 4095 BCD High Engineering Low Engineering Engineering BCD DL06 Micro PLC User Manual Supplement Box Instructions l 13 DirectSOFTS5 IBox Instructions for DLO6 PLCs Analog Scale 12 Bit Binary to Binary ANSCLB IB 403 Analog Scale 12 Bit Binary to Binary scales a 12 bit binary analog value 0 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 V memory address you want to place the YJx 3 8 scaled engineering unit value The Analog Scale 12 Bit Binary to Binary engineering units are generated as binary angela Ip 403 and can be the full range of 0 to 65535 Raw 12 bit binan see ANSCL Analog Scale 12 Bit BCD PeREREneeraG a to BCD if your raw units are in BCD et Low Engineering format moe Engineering binary TAO i 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 e Raw 12 bit binary specifies the V memory location of the unipolar unsigned raw decimal unscaled value 12 bit binary 0 4095 decimal e High Engineering specifies the high engineering value when the raw input is 4095 decimal e Low Engineering specifies the low engineering value when the raw input is 0 decimal e Engin
112. n and MUST NOT be used PE a anywhere else in your program Error ai Whenever this IBox has power it will write data from the master s V memory buffer to the specified slave starting with the given slave element giving other Network RX and Network WX Boxes on that Network a chance to execute For example if you wish to read and write data continuously from 5 different slaves you can have all of these NETRX and NETW X instructions in ONE RUNG driven by SP1 Always On They will execute round robin style automatically NETWX Parameters e Network specifies the CPU ports DCM s ECOM s Network defined by the NETCFG instruction e Workspace specifies a V memory location that will be used by the instruction e Slave ID specifies the slave PLC that will be targeted by the NET WX instruction e From Master Element Src specifies the location in the master PLC where the data will be sourced from e Number of Bytes specifies the number of bytes to write to the slave PLC e To Slave Element Dest specifies the slave address the data will be written to e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words K0 90 From Master Element Src See DLO6 V memory map Data Words Number of Bytes K1 128 To Slave Element Des
113. n will be placed result must fit into a double word Real formatted location e Expression specifies the mathematical expression to be executed and the result is stored in specified DWORD Result location Each V memory location used in the expression must be in Real format Parameter DLO6 Range See DLO6 V memory map Data Words Text ZPE DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m MATHR Example In the following example the MATHER instruction is used to calculate the math expression which multiplies the REAL floating point value in V1200 by 10 5 then divides by 2 7 and loads the resulting 32 bit value in V2000 and V2001 Math Real MATHR IB 541 DWORD Result 2000 2001 Expression 1200 R10 5 R2 7 DL06 Micro PLC User Manual Supplement Box Instructions l 45 DirectSOFTS5 IBox Instructions for DLO6 PLCs Real to BCD with Implied Decimal Point and Rounding RTOBCD IB 561 DS5 Real to BCD with Implied Decimal Point and Rounding converts the absolute value of the given Real number to a 4 digit BCD number compensating for an implied number of decimal points KO K4 and performs rounding For example RTOBCD R56 74 with an Lv Ja r implied number of decimal points equal to Real to BCD wilmplied Decimal Pt and Rounding K1 would yield 567 BCD If the implied RTOBCD IB 561 number of decimal points was 0 then the valle DWORD Real
114. need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e To specifies an E mail address that the message will be sent to e Subject subject of the e mail message e Body supports what the PRINT and VPRINT instructions support for text and embedded variables allowing you to embed real time data in the EMail message 70 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS 0 cece eee X Y C GX GY B See DLO6 V memory map ErrOr oe eee ee eee X Y C GX GY B See DLO6 V memory map Error Code See DLO6 V memory map Text Text See PRINT and VPRINT instructions ECEMAIL Example Ss Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global re
115. ng Edge of Ch1 C CTRIO K10 Falling Edge of Ch1 C Sioi i Frequency K20 Both Edges of Ch1 C Limit KO1 Rising Edge of Ch1 D Duty Cycle V400 5 Workspace V 400 i K11 Falling Edge of Ch1 D aie K21 Both Edges of Ch1 D Error co g K02 Rising Edge of Ch2 C K12 Falling Edge of Ch2 C K22 Both Edges of Ch2 C K03 Rising Edge of Ch2 D K13 Falling Edge of Ch2 D K23 Both Edges of Ch2 D This Box will take more than 1 PLC scan to execute Either the Success or Error bit will turn on when the command is complete If the Error Bit is on you can use the CTRIO Read Error Code CTRRDER Box to get extended error information The Workspace register is for internal use by this Box instruction and MUST NOT be used anywhere else in your program CTRRTLM Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Frequency specifies the output pulse rate 20Hz 20KHz e Limit the CTRIO s Input s must be configured as Limit s for this function to operate e Duty Cycle specifies the of on time versus off time This is a hex number Default of 0 is 50 also entering 50 will yield 50 50 duty cycle is defined as on half the time and off half the time e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruct
116. ns DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Restore Default E mail Setup ECEMRDS IB 713 DS o Used ECOM100 Restore Default EMail Setup on a leading edge transition will restore the HPP N A original EMail Setup data stored in the ECOM100 back to the working copy based on the specified ECOM100 which corresponds to a specific unique ECOM100 Rabies Configuration ECOM100 at the top of ECOM100 Restore Default EMail Setup your program ECEMRDS IB 713 When the ECOM100 is first powered up ECOM100 it copies the EMail setup data stored in Workspace ROM to the working copy in RAM You can then modify this working copy from your program using the ECOM100 EMail Setup ECEMSUP IBox After modifying Error Code the working copy you can later restore the original setup data via your program by using this Box The Workspace parameter is an internal private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Either the Success or Error bit parameter will turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board Success Error ECEMRDS Parameters e ECOM100 this is a logical number associ
117. ns DirectSOFT5 IBox Instructions for DLO6 PLCs m CTRRTLM Fxample cont Rung 3 If the Run To Limit Mode parameters are OK set the Direction Bit and Enable the output CTRRTLM_Success Out_O_Direction c100 B5056 4 OUT Out_0_Enable B5056 0 OUT DL06 Micro PLC User Manual Supplement Box Instructions l 151 DirectSOFTS5 IBox Instructions for DLO6 PLCs T CTRIO Run to Position Mode CTRRTPM IB 1012 DS o Used CTRIO Run To Position Mode on a leading edge transition to this Box loads the Run to HPP WA Position command and given parameters on a specific Output resource Valid Function Values are PABA a 00 Less Than Ch1 Fn1 CTRIO Run To Position Mode CTRRTPM 1B 1012 10 Greater Than Ch1 Fn1 CTOS 01 Less Than Ch1 Fn2 Output Frequency 11 Greater Than Ch1 Fn2 T I 02 Less Than Ch2 Fn1 Duty Cycle V400 g 12 Greater Than Ch2 Fn1 Paeit KEMU i Workspace 03 Less Than Ch2 Fn2 Success 13 Greater Than Ch2 Fn2 Error co a This IBox will take more than 1 PLC scan to execute Either the Success or Error bit will turn on when the command is complete If the Error Bit is on you can use the CTRIO Read Error Code CTRRDER IBox to get extended error information The Workspace register is for internal use by this IBox instruction and MUST NOT be used anywhere else in your program CTRRTPM Parameters e CTRIO specifies a specific CTRIO module based on a user defined n
118. nternal private register used by the CTRIO Config Box and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program CTRIO Parameters e CTRIO specifies a specific CTRIO module based on a user defined number e Slot specifies which PLC option slot the CTRIO module occupies e Workspace specifies a V memory location that will be used by the instruction e CTRIO Location specifies where the module is located local base only for DL06 e Input This needs to be set to the same V memory register as is specified in CTRIO Workbench as Starting V address for inputs for this unique CTRIO e Output This needs to be set to the same V memory register as is specified in CTRIO Workbench as Starting V address for outputs for this unique CTRIO Parameter DLOG Range K0 255 K1 4 See DLO6 V memory map Data Words See DLO6 V memory map Data Words See DLO6 V memory map Data Words 120 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m CTRIO Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CTRxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030
119. nto 16 bit single V memory location e Expression specifies the mathematical expression to be executed and the result is stored in specified WORD Result Each V memory location used in the expression must be in BCD format Parameter DLO6 Range See DLO6 V memory map Data Words Text 40 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs MATHBCD Example In the following example the MATHBCD instruction is used to calculate the math expression which multiplies the BCD value in V1200 by 1000 then divides by 4095 and loads the resulting value in V2000 Math BCD MATHBCD IB 521 WORD Result 2000 Expression 1200 K1000 K4095 DL06 Micro PLC User Manual Supplement Box Instructions l 41 DirectSOFTS5 IBox Instructions for DLO6 PLCs Math Binary MATHBIN IB 501 DS5 Math Binary Format lets you enter complex mathematical expressions like you would in 7A Visual Basic Excel or C to do complex calculations nesting parentheses up to 4 levels deep In addition to you can do LA Modulo aka Remainder Shift Right Math Binary gt gt and Shift Left lt lt Bit wise And amp MATHBIN 1B 501 Or Xor and some binary functions WORD Result TAO g Convert to BCD BCD Convert to Binary Expression BIN Decode Bits DECO Encode Bits ENCO Invert Bits INV HEX to Seven Segment Display SEG and Sum Bits
120. o reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e IP Address specifies the IP Address that will be written to the module Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS aret seen tania ds wa die X Y C GX GY B See DLO6 V memory map EMO oes nd aseseih eeotia coseactte eercilet X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words IP Address 0 0 0 1 to 255 255 255 254 98 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECWRIP Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this spe
121. ock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOmM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDs 402 502 Rung 2 On the 2nd scan enable DHCP in the ECOM100 DHCP is the same protocol used by PCs for using a DHCP Server to automatically assign the ECOM100 s IP Address Gateway Address and Subnet Mask Typically this is done using NetEdit but this Box allows you to enable DHCP in the ECOM100 using your ladder program The ECDHCPE is leading edge triggered not power flow driven similar to a counter input leg The commands to enable DHCP will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON The ECDHCPE does more than just set the bit to enable DHCP in the ECOM100 but it then polls the ECOM100 once every second to see if the ECOM100 has found a DHCP server and has a valid IP Address Therefore a timeout parameter is needed in case the ECOM100 cannot find a DHCP server If a timeout does occur the Error bit will turn on and the error code will be 1005 decimal The Success bit will turn on only if the ECOM100 finds a DHCP Server and is assigned a valid IP Address If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code _FirstScan ECOM100 Enable DHCP
122. oduite ou transmise de quelque fa on que ce soit sans le consentement pr alable crit de la soci t Automationdirect com Incorporated AutomationDirect conserve les droits exclusifs l gard de tous les renseignements contenus dans le pr sent document DirectSOFTS5 IBox Instructions for DLO6 PLCs a ST Overview The Ibox Instructions listed in this supplement are in addition to the Standard RLL Instructions found in Chapter 5 of the DLO6 User Manual These new instructions are available when using DirectSOFT5 to program your DL06 PLC the DLO6 CPU requires firmware version v2 10 or later to use the new features in DirectSOFTS5 For more information on DirectSOFTS5 and to download our Free version please visit our Web site at www automationdirect com Instruction Analog Input Output Combo Module Pointer Setup ANLGCMB Analog Input Module Pointer Setup ANLGIN Analog Output Module Pointer Setup ANLGOUT Analog Scale 12 Bit BCD to BCD ANSCL Analog Scale 12 Bit Binary to Binary ANSCLB Filter Over Time BCD FILTER Filter Over Time Binary FILTERB Hi Low Alarm BCD HILOAL Hi Low Alarm Binary HILOALB Instruction Off Delay Timer OFFDTMR On Delay Timer ONDTMR One Shot ONESHOT Push On Push Off Circuit PONOFF Instruction Move Single Word MOVEW Move Double Word MOVED Instruction BCD to Real
123. power flow driven similar to a counter input leg The command to write the module ID will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code _FirstScan ECOM100 Write Module ID SPO ECWR MID IB 721 ECOM100 KO Workspace 603 Success C100 Error C101 Error Code 2000 Module ID K12 DL06 Micro PLC User Manual Supplement Box Instructions l 1 0 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Write Name ECWRNAM IB 725 ECOM100 Write Name will write the given Name to the ECOM100 module on a leading edge transition to the Box If you use a dollar sign or double quote use the PRINT VPRINT escape sequence of TWO dollar signs for a single dollar sign or vaca dollar sign double quote for a double ECOM100 Write Name quote character ECWRNAM 1B 725 The Workspace parameter is an internal ECOM100 KO i private register used by this IBox and MUST workspace BE UNIQUE in this one instruction and Success co i MUST NOT be used anywhere else in your Error program Error Code V400 Either the Success or Error bit parameter will Module Name turn on once the command is complete If there is an error the Error Code parameter will report an ECOM100 error code less than 100 or a PLC logic error greater than 1000 The Name is stored
124. r Element Dest specifies the location where the slave data will be placed in the master PLC e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed Parameter DL06 Range K0 255 See DLO6 V memory map Data Words K0 90 See DLO6 V memory map Number of Bytes K1 128 To Master Element Dest See DLO6 V memory map Data Words SUCCESS sarriro segan bad ccdact X Y C GX GY B See DLO6 V memory map EMON concave tobe eee inian X Y C GX GY B See DLO6 V memory map 114 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m NETRX Fxample Rung 1 The Network Configuration IBox coordinates all of the interaction with other Network Boxes NETRX NETWX You must have a Network Configuration IBox for each serial port network DCM module network or original ECOM module network in your system Configuration IBoxes must be at the top of your program and must execute every scan This IBox defines Network KO to be for the local CPU serial port 2 KF2 For local CPU serial ports or DCM ECOM modules use the same value you would use in the most significant byte of the first LD instruction in a normal RX WX rung to reference the port or module Any NETRX or NET WX Boxes that need to reference this specific network would enter KO for their Net
125. r flow transitions WA 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 ARSE PONOFF Parameters Push On Push Off Circuit e Discrete Input specifies the input that will PONOFF IB 300 toggle the specified output Discrete Input CO ry Dient Out pei he ons at sce Ou S e Internal State specifies a work bit that is eres a used by the instruction DLO6 Range See DLO6 V memory map See DLO6 V memory map See DLO6 V memory map Parameter Discrete Input X Y C S T CT GX GY SP B PB Discrete Output X Y C GX GY B Internal State 0 eee X Y C 30 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs PONOFF Fxample 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 C10 is pressed again C20 turns off C100 is an internal bit used by the instruction Push On Push Off Circuit PONOFF IB 300 Discrete Input C10 Discrete Output C20 Internal State c100 DL06 Micro PLC User Manual Supplement Box Instructions l 31 DirectSOFTS5 IBox Instructions for DLO6 PLCs Move Single Word MOVEW IB 200 Move Single Word moves copies a word to a memory location dir
126. r use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config E ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS 402 502 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 1 07 DirectSOFTS5 IBox Instructions for DLO6 PLCs SS ST ECRX Example con t Rung 2 Using ECOM100 KO read X0 X7 from Slave K7 and write them to slave K5 as fast as possible Store them in this local PLC in C200 C207 and write them to C300 C307 in slave K5 Both the ECRX and ECWX work with the ECOM100 Config Box to simplify all networking by handling all of the interlocks and proper resource sharing They also provide very simplified error reporting You no longer need to worry about any SP busy bits or error bits or what slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is driving both the ECRX and ECWX Boxes in the same rung On the scan that the Network Read completes the Network Write will start that same scan As soon as the Network Write completes any pending operations below it in the program would get a turn If there are no pending ECOM100 Boxes below the ECWX then the very next scan the ECRX would start its request again Using the ECRX and ECWX for all of your ECOM100 network reads and writes is the fastest the PLC can do networking For local Serial Po
127. rameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS cctaduaneclaeecaulele an X Y C GX GY B See DLO6 V memory map ENON sav tha diedahhowdt adds X Y C GX GY B See DLO6 V memory map See DLO6 V memory map Data Words DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs TE ECDHCPD Example Rung 1 The ECOM100 Config Box is responsible for coordination interlocking of all ECOM100 type Boxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx Boxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes
128. rds End Address inclusive DWORD See DLO6 V memory map Data Words Result DWORD See DLO6 V memory map Data Words DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs SUMR Example In the following example the SUMR instruction is used to total the sum of all floating point REAL number values in words V2000 thru V2007 and store the resulting 32 bit floating point REAL number value in V3000 and V3001 Sum Real Numbers IB 542 2000 2001 V2007 3000 3001 SUMR Start Address DWORD End Addr inclusive DWORD Result DWORD DL06 Micro PLC User Manual Supplement Box Instructions l 61 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Configuration ECOM100 IB 710 DS5 Used ECOM100 Configuration defines all the common information for one specific ECOM100 HPP N A module which is used by the other ECOM100 IBoxes for example ECRX ECOM100 Network Read ECEMAIL ECOM100 Send EMail ECIPSUP ECOM100 IP o PE fs Semip eie ECOM100 Config You MUST have the ECOM100 ECOM100 IB 710 Configuration Box at the top of your ECOM100 ladder stage program with any other Slot Ki configuration Boxes The Message Buffer sau parameter specifies the starting address of a Wak TTT 65 WORD buffer This is 101 Octal A EE addresses e g V1400 thru V1500 Meg SEES rea 00 If you have more than one ECOM100 i
129. rence this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Gateway IP Addr specifies the starting address where the ECOM100 s Gateway Address will be placed in 4 consecutive V memory locations Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS vcrai eaan ee X Y C GX GY B See DLO6 V memory map EMOR Rescate cnc ithiee d evacn bce aa eae X Y C GX GY B See DLO6 V memory map Gateway IP Address 4 Words See DLO6 V memory map Data Words 64 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECRDGWA Fxample Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 as ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 mod
130. ress 192 168 0 1 DL06 Micro PLC User Manual Supplement Box Instructions l 81 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Read Description ECRDDES IB 726 ECOM100 Read Description will read the ECOM100 s Description field up to the number WA Of specified characters on a leading edge transition to the IBox The Workspace parameter is an internal gt LJN private register used by this IBox and MUST a nA BE UNIQUE in this one instruction and HAL MUN R EEG DEENEN MUST NOT be used anywhere else in your ECRDDES IB 726 program ECOM100 K0 Either the Success or Error bit parameter will aide REAN turn on once the command is complete eubtnee at Error In order for this ECOM100 IBox to function Description W you must turn ON dip switch 7 on the tae a ECOM100 circuit board grills ad ECRDDES Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Description specifies the starting buffer location where the ECOM100 s Module Name will be placed e Num Char specifies th
131. rts DCM modules or the original ECOM modules use the NETCFG and NETRX NETWX IBoxes _On ECOM100 RX Network Read SP1 ECRX ECOM100 Workspace Slave ID From Slave Element Src Number Of Bytes To Master Element Dest Success Error ECOM1 00 WX Network Write ECWX ECOM100 Workspace Slave ID From Master Element Src Number Of Bytes To Slave Element Dest Success Error 108 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 WX Network Write ECWX IB 741 simplify communications networking It ECOM100 WX Network Write performs the WX instruction with built in interlocking with HPP N A other an oxes in your program to HPP N A all other ECOM100 RX ECRX and ECOM100 WX ECWX IB in your prog will perform the WX on the specified 5a ECOM100 s network which Eee ae ene 3 ECWX B 741 corresponds to a specific unique ECONO E ECOM100 Configuration ECOM100 Workspace FTIT r IBox at the top of your program Slave ID The Workspace parameter is an internal horiMasier lemania Number Of Bytes private register used by this IBox and e TA tps MUST BE UNIQUE in this one IOS instruction and MUST NOT be used Error a anywhere else in your program Whenever this IBox has power it will write data from the master s V memory buffer to the specified slave starting with the given slave element giving other ECOM100 RX and ECOM1
132. s ECOM100 KO All other ECxxxx IBoxes refer to this module as KO If you need to move the module in the base to a different slot then you only need to change this one IBox V400 is used as a global result status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS w402 502 Rung 2 On the 2nd scan assign the Gateway Address of the ECOM100 to 192 168 0 1 The ECWRGWA is leading edge triggered not power flow driven similar to a counter input leg The command to write the Gateway Address will be sent to the ECOM100 whenever the power flow into the Box goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the specific error code To configure all of the ECOM100 TCP IP parameters in one Box see the ECOM100 IP Setup ECIPSUP IBox _FirstScan ECOM100 Write Gateway Address SPO ECWRGWA ECOM100 Workspace Success Error Error Code Gateway Address 192 168 0 1 DL06 Micro PLC User Manual Supplement Box Instructions l 97 DirectSOFTS5 IBox Instructions for DLO6 PLCs ECOM100 Write IP Address ECWRIP IB 723 ECOM100
133. s a LEADING edge to execute use a NORMALLY CLOSED SP0 STR NOT First Scan to drive the power flow to the IBox In order for this ECOM100 Box to function you must turn ON dip switch 7 on the ECOM100 circuit board ECWRGWA Parameters e ECOM100 this is a logical number associated with this specific ECOM100 module in the specified slot All other ECxxxx Boxes that need to reference this ECOM100 module must reference this logical number e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the request is completed successfully e Error specifies a bit that will turn on if the instruction is not successfully completed e Error Code specifies the location where the Error Code will be written e Gateway Address specifies the Gateway IP Address that will be written to the module Parameter DLO6 Range K0 255 See DLO6 V memory map Data Words SUCCESS 0 cece eee X Y C GX GY B See DLO6 V memory map Error eee eee eee X Y C GX GY B See DLO6 V memory map Error Code See DLO6 V memory map Data Words Gateway Address 0 0 0 1 to 255 255 255 254 96 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ECWRGWA Fxample Rung 1 The ECOM100 Config IBox is responsible for coordination interlocking of all ECOM100 type IBoxes for one specific ECOM100 module Tag the ECOM100 in slot 1 a
134. s off C21 turns off immediately On Delay Timer ONDTMR Timer Number On Delay Time 0 01 sec K200 Output C21 Example timing diagram C101 2 Sec 2 sec C21 DL06 Micro PLC User Manual Supplement Box Instructions l 27 DirectSOFTS5 IBox Instructions for DLO6 PLCs One Shot QNESHOT IB 303 DS5 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 Box is simply a different name for the PD Coil Positive Differential ONESHOT Parameters e Discrete Output specifies the output that One Shot will be on for one scan ONESHOT IB 303 Discrete Output Discrete Output 0 X Y C See DLO6 V memory map 28 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs m ONESHOT Example In the following example the ONESHOT instruction is used to turn C100 on for one PLC scan after CO goes from an off to on transition The input logic must produce an off to on transition to execute the One Shot instruction One Shot ONESHOT IB 303 Discrete Output C100 Example timing diagram co Ty H Scan time C100 DL06 Micro PLC User Manual Supplement Box Instructions l 29 DirectSOFTS5 IBox Instructions for DLO6 PLCs Push On Push Off Circuit PONOFF IB 300 Used Push On Push Off Circuit toggles an output state whenever its input powe
135. sed as the first part of Result DWORD BCD w400 calculating an average SUMBCD Parameters e Start Address specifies the starting address of a block of V memory location values to be added together BCD e End Addr inclusive specifies the ending address of a block of V memory location values to be added together BCD e Result DWORD BCD specifies the location where the sum of the block of V memory BCD values will be placed Parameter DLO6 Range See DLO6 V memory map Data Words See DLO6 V memory map Data Words See DLO6 V memory map Data Words End Address inclusive Result DWORD BCD 56 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs SUMBCD Fxample In the following example the SUMBCD instruction is used to total the sum of all BCD values in words V2000 thru V2007 and store the resulting 8 digit double word BCD value in V3000 and V3001 Sum BCD Numbers SUMBCD IB 522 Start Address 2000 End Addr inclusive V2007 Result DWORD BCD V 3000 3001 DL06 Micro PLC User Manual Supplement Box Instructions l 57 DirectSOFTS5 IBox Instructions for DLO6 PLCs Sum Binary Numbers SUMBIN IB 502 Sum Binary Numbers sums up a list of consecutive 16 bit WORD Binary numbers into a 32 bit DWORD binary result You specify the group s starting and ending V memory addresses inclusive When enabled this instruction
136. structions for DLO6 PLCs m NETWX Example cont Rung 2 Using Network KO read X0 X7 from Slave K7 and write them to slave K5 as fast as possible Store them in this local PLC in C200 C207 and write them to C300 C307 in slave K5 Both the NETRX and NETWX work with the Network Config IBox to simplify all networking by handling all of the interlocks and proper resource sharing They also provide very simplified error reporting You no longer need to worry about any SP busy bits or error bits or what port number or slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is driving both the NETRX and NETWX IBoxes in the same rung On the scan that the Network Read completes the Network Write will start that same scan As soon as the Network Write completes any pending operations below it in the program would get a turn If there are no pending NETRX or NETWX IBoxes below this IBox then the very next scan the NETRX would start its request again Using the NETRX and NETWX for all of your serial port DCM or original ECOM network reads and writes is the fastest the PLC can do networking For ECOM100 modules use the ECOM100 and ECRX ECWX IBoxes _On Network RX Read SP1 NETRX Network Workspace Slave ID From Slave Element Src Number Of Bytes To Master Element Dest Success Error Network VX write NETX Network Workspace Sla
137. sult status register for the other ECxxxx Boxes using this specific ECOM100 module V401 is used to coordinate interlock the logic in all of the other ECxxxx Boxes using this specific ECOM100 module V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slot Status Workspace Msg Buffer 65 WORDS Y402 V502 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions 71 DirectSOFTS5 IBox Instructions for DLO6 PLCs D ua a a ISOS ECEMAIL Example cort Rung 2 When a machine goes down send an email to Joe in maintenance and to the VP over production showing what machine is down along with the date time stamp of when it went down The ECEMAIL is leading edge triggered not power flow driven similar to a counter input leg An email will be sent whenever the power flow into the Box goes from OFF to ON This helps prevent self inflicted spamming If the EMail is sent turn on C100 If there is a failure turn on C101 If it fails you can look at V2000 for the SMTP error code or other possible error codes ECOM100 Send EMail Machine Down ECEMAIL c10 ECOM100 Workspace Success Error Error Code To joe acme com vp acme com Subject Machine Offline Body Machine 5010 B went offline at _time 24 on _date us 72 l DL06 Micro PLC User Manual Supplement Box Instructio
138. t X Y C S T CT GX GY V See DLO6 V memory map X Y C GX GY B See DLO6 V memory map X Y C GX GY B See DLO6 V memory map DL06 Micro PLC User Manual Supplement Box Instructions l 117 DirectSOFTS5 IBox Instructions for DLO6 PLCs aT NETWX Example Rung 1 The Network Configuration Box coordinates all of the interaction with other Network Boxes NETRX NETWX You must have a Network Configuration IBox for each serial port network DCM module network or original ECOM module network in your system Configuration Boxes must be at the top of your program and must execute every scan This Box defines Network KO to be for the local CPU serial port 2 KF2 For local CPU serial ports or DCM ECOM modules use the same value you would use in the most significant byte of the first LD instruction in a normal RX WX rung to reference the port or module Any NETRX or NET WX IBoxes that need to reference this specific network would enter KO for their Network parameter The Workspace register is used to maintain state information about the port or module along with proper sharing and interlocking with the other NETRX and NET WX Boxes in the program This V memory register must not be used anywhere else in the entire program Network Config 1 NETCFG Network CPU Port or Slot ex KF2 or K3 Workspace example continued on next page 18 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox In
139. t 0 C2 B2056 0 4 _ T 124 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTRIO Clear Preset Table CTRCLRT IB 1007 Used CTRIO Clear Preset Table will clear the RAM based Preset Table on a leading edge transition WA to this IBox This Box will take more than 1 PLC scan to execute Either the Success or ME u Error bit will turn on when the command is CTRIO Clear Preset Table complete If the Error Bit is on you can use CTRCLRT IB 1007 the CTRIO Read Error Code CTRRDER CTRIO KO IBox to get extended error information Output Ko The Workspace register is for internal use by Workspace V400 this IBox instruction and MUST NOT be Success co used anywhere else in your program Error CTRCLRT Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config e Output specifies a CTRIO output to be used by the instruction e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully Parameter DLO6 Range K0 255 K0 3 See DLO6 V memory map Data Words SUCCESS sdicweuss aaah divans X Y C GX GY B See DLO6 V memory map EMOl s cscdth cide Saeed woth X Y C GX GY B See DLO6 V memory map
140. the command from Data View for testing purposes Turning on CO will cause the CTRADPT instruction to add a new preset to the preset table for output 0 on the CTRIO in slot 2 The new preset will be a command to RESET entry type K1 reset pulse time is left at zero as the reset type does not use this and the count at which it will reset will be 20 Operating procedure for this example code is to load the CTRADPT_ex1 cwh file to your CTRIO then enter the code shown here change to RUN mode enable output 0 by turning on C2 in Data View turn encoder on CTRIO to value above 10 and output 0 light will come on and stay on for all counts past 10 Now reset the counter with C1 enable CO to execute CTRADPT command to add a reset for output 0 at a count of 20 turn on C2 to enable output 0 then turn encoder to value of 10 output 0 should turn on and then continue on to count of 20 output 0 should turn off aes CTRIO Add Entry to End of Preset Table CTRIO Output Entry Type Pulse Time Preset Count Workspace Success Error example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 1 23 DirectSOFTS5 IBox Instructions for DLO6 PLCs CTRADPT Example cont Rung 3 This rung allows the programmer to reset the counter from the ladder logic reset counter C1 B2054 1 3 J_ a OU Rung 4 This rung allows the operator to enable output 0 from the ladder code enable outpu
141. the given Error Code register on a leading edge transition to the IBox Since the Error Code in the CTRIO is only maintained until another CTRIO Fakes command is given you must use this CTRIO Read Error Code instruction immediately after the CTRIO GTRRDER Ip 1014 Box that reports an error via its Error bit CTRIO KO parangter Workspace V400 a The Workspace register is for internal use Eqnreade by this IBox instruction and MUST NOT be used anywhere else in your program Error Codes 0 No Error 100 Specified command code is unknown or unsupported 101 File number not found in the file system 102 File type is incorrect for specified output function 103 Profile type is unknown 104 Specified input is not configured as a limit on this output 105 Specified limit input edge is out of range 106 Specified input function is unconfigured or invalid 107 Specified input function number is out of range 108 Specified preset function is invalid 109 Preset table is full 110 Specified Table entry is out of range 111 Specified register number is out of range 112 Specified register is an unconfigured input or output 2001 Error reading Error Code cannot access CTRIO via ERM CTRRDER Parameters e CTRIO specifies a specific CTRIO module based on a user defined number see CTRIO Config e Workspace specifies a V memory location that will be used by the instruction e Error Code specifies the location wh
142. tional de pr vention des incendies du Code national de l lectricit et des codes de la National Electrical Manufacturer s Association NEMA Des organismes de r glementation ou des services gouvernementaux locaux peuvent galement vous aider d terminer les codes ainsi que les normes respecter pour assurer une installation et un fonctionnement s rs L omission de respecter la totalit des codes et des normes applicables peut entra ner des dommages l quipement ou causer de graves blessures au personnel Nous ne garantissons pas que les produits d crits dans cette publication conviennent votre application particuli re et nous n assumons aucune responsabilit l gard de la conception de l installation ou du fonctionnement de votre produit Nos produits ne sont pas insensibles aux d faillances et ne sont ni con us ni fabriqu s pour l utilisation ou la revente en tant qu quipement de commande en ligne dans des environnements dangereux n cessitant une s curit absolue par exemple l exploitation d installations nucl aires les syst mes de navigation a rienne ou de communication le contr le de la circulation a rienne les quipements de survie ou les syst mes d armes pour lesquels la d faillance du produit peut provoquer la mort des blessures corporelles ou de graves dommages mat riels ou environnementaux activit s risque lev La soci t AutomationDirect nie toute garantie expresse ou implicite d
143. to BCD engineering unit value The engineering ANSCL IB 423 units are generated as BCD and can be Raw 0 4095 BCD TAO the full range of 0 to 9999 see ANSCLB HighEngineering K0 Analog Scale 12 Bit Binary to Binary if Low Engineering your raw units are in Binary format Engineering BCD TAO Note that this IBox only works with unipolar unsigned raw values It does NOT work with bipolar or sign plus magnitude raw values ANSCL Parameters e Raw 0 4095 BCD specifies the V memory location of the unipolar unsigned raw 0 4095 unscaled value e High Engineering specifies the high engineering value when the raw input is 4095 e Low Engineering specifies the low engineering value when the raw input is 0 e Engineering BCD specifies the V memory location where the scaled engineering BCD value will be placed Parameter DLO6 Range Raw 0 4095 BCD 0005 VP See DLO6 V memory map Data Words High Engineering K0 9999 Low Engineering K0 9999 Engineering BCD 005 VP See DLO6 V memory map Data Words 12 DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs ANSCL Example In the following example the ANSCL instruction is used to scale a raw value 0 4095 BCD that is in V2000 The engineering scaling range is set 0 100 low engineering value high engineering value The scaled value will be placed in V2100 i
144. ts input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 153 DirectSOFTS5 IBox Instructions for DLO6 PLCs SSS ST CTRRTIPM Example cont Rung 2 This CTRIO Run To Position Mode Box sets up Output 0 in CTRIO 1 to output pulses at a Frequency of 1000 Hz use the Greater than Ch1 Fn1 comparison operator until the input position of 1500 is reached This example program requires that you load CTRRTPM_IBox cwb into your Hx CTRIO module CTRIO Run To Position Mode TCIM CTRRTPM IB 1012 CTRIO Output Frequency Function Duty Cycle Position Workspace Success Error Rung 3 If the Run To Position Mode parameters are OK set the Direction Bit and Enable the output CTRRTPM_Success Out_O_Direction C100 B5056 4 3 OUT Out_O_Enable 85056 0 OUT 154 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs CTRIO Velocity Mode CTRVELO IB 1013 CTRIO Velocity Mode loads the Velocity command and given parameters on a specific WA Output resource on a leading edge transition to this IBox This Box will take more than 1 PLC scan to execute Either the Success or Error bit will turn on when the command is complete If the Error Bit is on you can use the CTRIO Read
145. uilt in interlocking with all other Network RX NETRX and Network WX NETWX Boxes in your program to simplify communications networking It will perform the RX on the specified Network which LAs Pe Seen n corresponds to a specific unique Network any Par ee ner Configuration NETCFG at the top of your Niches program Workspace The Workspace parameter is an internal Slave ID private register used by this IBox and MUST From Blava Element Groy BE UNIQUE in this one instruction and PA Tei MUST NOT be used anywhere else in your aes program Error co Whenever this IBox has power it will read element data from the specified slave into the given destination V memory buffer giving other Network RX and Network WX Boxes on that Network a chance to execute For example if you wish to read and write data continuously from 5 different slaves you can have all of these NETRX and NET WX instructions in ONE RUNG driven by SP1 Always On They will execute round robin style automatically NETRX Parameters e Network specifies the CPU ports DCM s ECOM s Network defined by the NETCFG instruction e Workspace specifies a V memory location that will be used by the instruction e Slave ID specifies the slave PLC that will be targeted by the NETRX instruction e From Slave Element Src specifies the slave address of the data to be read e Number of Bytes specifies the number of bytes to read from the slave device e To Maste
146. ule V402 V502 is a common 130 byte buffer available for use by the other ECxxxx Boxes using this specific ECOM100 module ECOM100 Config ECOM100 ECOM100 Slat Status Workspace Msg Buffer 65 WWORDs 402 Y502 Rung 2 On the 2nd scan read the Gateway Address of the ECOM100 and store it in V3000 thru V3003 4 decimal numbers The ECOM100 s Gateway Address could be displayed by an HMI The ECRDGWA is leading edge triggered not power flow driven similar to a counter input leg The command to read the Gateway Address will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON If successful turn on C100 If there is a failure turn on C101 _FirstScan ECOM100 Read Gateway Address SPO ECRDGYVA IB 730 ECOM100 KO Workspace 503 Success C100 Error C101 Gateway IP Addri4 words 3000 3003 DL06 Micro PLC User Manual Supplement Box Instructions l 85 DirectSOFT5 IBox Instructions for DLO6 PLCs ECOM100 Read IP Address ECRDIP IB 722 ECOM100 Read IP Address will read the 4 parts of the IP address and store them in 4 consecutive V Memory locations in decimal format on a leading edge transition to the Box The Workspace parameter is an internal private register used by this IBox and MUST WAR BE UNIQUE in this one instruction and ECOM100 Read IP Address MUST NOT be used anywhere else in your ECRDIP L IB 722 program ECOM100 Either the Success or Error bit parameter w
147. ulse On and Pulse Off Entry Types e Preset Count specifies an initial count value to begin at after Reset e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully Parameter DLO6 Range K0 255 K0 3 K0 5 See DLO6 V memory map Data Words Pulse TIME 2 2 02 eee csaieniniia ce deena VK K0 65535 See DLO6 V memory map Data Words Preset Count ccc cece ences VK K0 2147434528 See DLO6 V memory map See DLO6 V memory map Data Words SUCCESS 0 00 cece eee X Y C GX GY B See DLO6 V memory map EM OR ssteectarady caw ERORE X Y C GX GY B See DLO6 V memory map 122 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs TE CTRADPT Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for its input data and V2030 through V2061 for its output data CTRIO Config CTRIO CTRIO Slot Workspace Input 2000 2025 Output 2030 2061 Rung 2 This rung is a sample method for enabling the CTRADPT command A C bit is used to allow the programmer to control
148. umber see CTRIO Config Ibox e Output specifies a CTRIO output to be used by the instruction e Frequency specifies the output pulse rate 20Hz 20KHz e Duty Cycle specifies the of on time versus off time This is a hex number Default of 0 is 50 also entering 50 will yield 50 50 duty cycle is defined as on half the time and off half the time e Position specifies the count value as measured on the encoder input at which the output pulse train will be turned off e Workspace specifies a V memory location that will be used by the instruction e Success specifies a bit that will turn on once the instruction has successfully completed e Error specifies a bit that will turn on if the instruction does not complete successfully 152 l DL06 Micro PLC User Manual Supplement Box Instructions DirectSOFT5 IBox Instructions for DLO6 PLCs Parameter DLO6 Range K0 255 K0 3 K20 20000 See DLO6 V memory map Data Words K0 99 See DLO6 V memory map K0 2147434528 See DLO6 V memory map See DLO6 V memory map Data Words SUCCESS oidtctwads coke we X Y C GX GY B See DLO6 V memory map ENON nesstorcrsanatalaetinn pia nig X Y C GX GY B See DLO6 V memory map CTRRTIPM Example Rung 1 This sets up the CTRIO card in slot 2 of the local base Each CTRIO in the system will need a separate CTRIO I box before any CT Rxxxx I boxes can be used for them The CTRIO has been configured to use V2000 through V2025 for i
149. ve ID From Master Element Src Number Of Bytes To Slave Element Dest Success Error DL06 Micro PLC User Manual Supplement Box Instructions l 1 19 DirectSOFT5 IBox Instructions for DLO6 PLCs CTRIO Configuration CTRIO IB 1000 CTRIO Config defines all the common information for one specific CTRIO module which is used by the other CTRIO Box instructions for example CTRLDPR CTRIO Load Profile CTREDRL CTRIO Edit and Reload Preset Table CTRRTLM CTRIO CTRIO Config i Run to Limit Mode CTRIO 18 1000 CTRIO The Input Output parameters for this Slot instruction can be copied directly from the Workspace po _ CTRIO Workbench configuration for this Local Base CTRIO module Since the behavior is slightly EDC Conneced Ha ERM different when the CTRIO module is in an let EBC Base via an ERM you must specify Output whether the CTRIO module is in a local base or in an EBC base The DL06 PLC only supports local base operation at this time You must have the CTRIO Config Box at the top of your ladder stage program along with any other configuration Boxes If you have more than one CTRIO in your PLC you must have a different CTRIO Config IBox for EACH CTRIO module in your system that utilizes any CTRIO Box instructions Each CTRIO Config Box must have a UNIQUE CTRIO value This is how the CTRIO IBoxes differentiate between the different CTRIO modules in your system The Workspace parameter is an i
150. work parameter The Workspace register is used to maintain state information about the port or module along Ss with proper sharing and interlocking with the other NETRX and NET WX Boxes in the program This V memory register must not be used anywhere else in the entire program Network Config NETCFG Network CPU Port or Slot ex KF2 or K3 Workspace example continued on next page DL06 Micro PLC User Manual Supplement Box Instructions l 115 DirectSOFTS5 IBox Instructions for DLO6 PLCs a rr NETRX Example cont Rung 2 Using Network KO read X0 X7 from Slave K7 and write them to slave K5 as fast as possible Store them in this local PLC in C200 C207 and write them to C300 C307 in slave K5 Both the NETRX and NET WX work with the Network Config IBox to simplify all networking by handling all of the interlocks and proper resource sharing They also provide very simplified error reporting You no longer need to worry about any SP busy bits or error bits or what port number or slot number a module is in or have any counters or shift registers or any other interlocks for resource management In this example SP1 always ON is driving both the NETRX and NET WX Boxes in the same rung On the scan that the Network Read completes the Network Write will start that same scan As soon as the Network Write completes any pending operations
Download Pdf Manuals
Related Search
here hereditary heretic heredity here movie heretic definition hereinafter heresy definition hereditary meaning here comes the sun here\u0027s johnny hereby here comes the guide hereditary hemochromatosis hereditary angioedema here i am to worship lyrics here comes the sun lyrics heretic movie hereditary spherocytosis herencia hereditary movie here to slay hereditary hemorrhagic telangiectasia heredia costa rica here come the mummies here comes the bus
Related Contents
Téléchargez votre magazine Loaner Car Net User Manual EBRA 9T EBRAVI 9T EBR 9T EBRVI 9T Philips AW 7502 User's Manual AgfaPhoto DuoScan 100 FERROLI ESPAÑA, S.A. - Ministerio de Hacienda Martha Stewart Living 0463800600 Instructions / Assembly CM10 Série - Oriental Motor Copyright © All rights reserved.
Failed to retrieve file