Home

MB-Gateway User Manual

image

Contents

1. Write Proje B Bit I Integer IBl Integer 2 words E Floating point H Hex E Text A Ascii STOP 0000 8000 CO 02DD1 D 1 1 AF A 1H MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples Choose Ok and follow the steps when prompted to transfer the project to the PLC Read Write Program PC PLC Project MBGATEWAY1 Project Name MBGATEWAY1 Program Size Total 8 000 steps Program Size Total 8 000 steps Program Size 3steps 0 03 WiProgram Size 3steps 0 03 GiFree Area 7 997 steps 99 97 95 BilFree Area 7 997 steps 99 97 0 8 000 v Save Project to PLC Memory Project File Total 256 000 bytes Recovery data is written with the project WiProject File Size 964bytes 0 37 The project cannot be read from the PLC GiFree Area 255 036 bytes 99 63 without this option being selected 256 000 Last Update Mar 22 2011 15 15 37 Last Update Mar 20 2011 12 10 27 OK Cancel Help MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 15 Appendix A Application Examples E Now go into the MB GATEWAY configuration and match the serial port settings to the PLC Port 3 settings Open up a web browser such as Internet Explorer and enter in the IP address of the MB GATEWAY to access the main screen as shown gt Modbus Gateway Windows Internet Explorer er e
2. Detail Oo Detail Contact Save Project As NC Contact NC Import Export Compile Project Transfer Project Print Setup Print Preview Print Ctrl P Project Properties Exit To FromPAC To USB Drive From USB Drive Run First Scan Onl 5 0 Run Every Scan Run Every Second Run When Called Disable Task IRE NO Edge Contac NC Edge Contac 124 Compare Contar pur Out Coil str Set Coil Reset Coil OR Out FL Flasher Debounce Coil Timed Coil I6 Toggle Coil Program End No Operation User No Security Task New Task MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 27 Rung 1 Column 1 PAC Offline Project File Status Saved PAC Project Status Run Time Transfer Appendix A Application Examples E Step 3 Configure the MRX instruction to read data from the MB GATEWAY Double click on the instruction MRX Read to configure the MRX instruction as shown Modbus Read MRX Ethernet Port CPL ETH Ext In Progress Clickl_Read1_InProg nd ccEXEXINM Complete Redi Conp TCP Port Number 502 Success Click1 Readl Success Don Slave Node Number 1 Default 255 SS Error Clickt_Read1_Err Serial Port Timeout _ TimeOu VAT 3 Exception Response String Readi ExResp m
3. C Hide Alias Columns Address in Cell Display Signed v PLC Addresses Base 1 Enter in 1 for the Slave ID This matches the Unit ID in the protocol that will determine which Modbus Serial Slave will be targeted on the serial side of the MB GATEWAY Entering 1 here will match up to the Station Number configured above in DirectSoft for the DL06 PLC Choosing Function 3 sets up the read for 4xxxxx registers Checking the PLC Addresses Base 1 in the lower right corner matches the addressing to the cross reference chart mentioned above Once this windows has been configured as shown above click on OK Now click on the Connection pulldown menu and select Connect lt Modbus Poll Mbpoll1 DER File Edit Setup Functions Display View Window Help 05 06 15 16 22 23 101 Auto Connect 0 1 Quick Connect 5 SR 1000ms DISABLED 4x0000 Port 1 9600 8 E 1 A 8 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 Appendix A Application Examples In the Connection Setup window choose the Modbus TCP IP connection type Enter the IP address of your MB GATEWAY module in the lower left hand corner Match everything else as shown Connection Setup Connection Modbus TCP IP Cancel Mode Serial Settings Response Timeout 1000 ms Delay Between Polls 1 0 Remote Server IP Address Port Connect Timeout 192 168 15 47 5
4. Automatic Polling Skip execution if buffer is greater than Word Swap Slave Modbus Starting Address 1 400000 Map 32 bit data to 16 bit Modbus Decimal Addressing Zero Based Modbus Addressing Modbus Function Code 3 Read Holding Reg xj Tag Name Mapping Number of Tags 1 Non Array Tag 1 CLICK_DS1 O C Show Instruction Comment IP Address address of the GATEWAY TCP Port Number Leave at default 502 Slave Node Number This should match the Node address of Port 3 of the CLICK PLC Leave at 1 in this case Slave Modbus Starting Address Set to 1 to read address DS1 in the CLICK PLC Tag Name Mapping Create a Tag called CLICK_DS1 as an Signed Int 16 Tag to read in 051 from the CLICK PLC Use the status bits and Exception Response String to verify whether communications were successful or not If the Error bit comes on look at the Exception Response String to see which error occurred If the Timeout Bit comes on check the IP address settings of the P3 550 and the GATEWAY and make sure that they are in compatible subnets If the Successful Status bit comes on add the CLICK DSI tag to the Data View at the bottom of the Productivity Suite Programming Software and check the values Change the values in the CLICK data view for 051 and verify that the CLICK DS1 tag matches A 28 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 Appendix A Application Example
5. 255 255 255 0 Gateway 0 5 0 0 0 Cancel In the ECOM Settings tab click the Peer to Peer Config button Add the Devices appropriate for your project Peer to Peer Configuration Device Protocol Configuration Modbus TCP IP 10 11 0 233 502 Unit ID 1 Modbus TCP IP 10 11 0223 Port 502 Unit ID 2 Eum Modbus TCP IP 10 11 0233 Port 502 Unit ID 3 _ Delete Delete All OK Cancel In our example we have added three devices that are the MB GATEWAY Device 1 is the Automatic Reads table that resides in the MB GATEWAY so it is configured with the MB GATEWAY IP address and the MB GAEWAY Unit ID Device 2 is the first drive It is configured with the MB GATEWAY IP address and the first drive Unit ID Device 3 is the second drive It is configured with the MB GATEWAY IP address and the second drive Unit ID A 30 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 Appendix A Application Examples Step 2 Set the Serial Port Configuration In the NetEdit Module List select your MB GATEWAY Set the IP address and subnet mask as appropriate for your network In our example we use 10 11 0 233 and 255 255 255 0 Click Start Web Based Config To set the Gateway Modbus ID as appropriate for your network In our example we use 1 Set the Serial Port Configuration as appropriate for your network For our example we use Baud rate 19200 Parity Odd Stop bit
6. A 30 Step 2 Set the Serial Port Configuration A 31 Step 3 Set the Communication Parameters A 31 Step 4 Using Automatic Reads A 32 Step 5 Access the Automatic Read Data A 33 Step 6 Read and Write from the DLO6 A 36 Appendix A Application Examples E Example 1 A Using Modbus Poll to MB GATEWAY with DLO6 Slave This example will illustrate how to use Modbus Poll which is a PC based Modbus Master simulator tool to connect through the MB GATEWAY to a DL06 PLC via 2 wire RS 485 Items needed for this example MB GATEWAY DirectLogic 06 PLC any model PC with Modbus Poll installed free demo is available at www modbustools com Small length of Belden 9842 or equivalent cable ZL CMA15 ZipLink communication port adapter 15 pin high density female to terminal block Ethernet switch and cables to connect from the PC to MB GATEWAY Step 1 Connect the MB GATEWAY serial port to the DL06 secondary communications port Using the short length of Belden 9842 connect the MB GATEWAY to the DL06 Port 2 as shown RS 422 RS 485 Gateway ZL CMA15 to DLO6 Port2 ed z 15 pin Female RX GI D Connector 0106 Port 2 Pin Descriptions 5V Power connection TXD Transmit data RS 232C Receive data RS 232C Ready to send RS 232
7. 192 168 15 47 Fie Edit View Favorites Tools Help Modbus Gateway MB Gateway by Automation Direct com Gateway Modbus ID 255 0xFF Module Name Modbus Gateway 2 Module Description Modbus Gateway Ethernet Address 00 E0 62 40 47 05 IP Setup Address 192 168 15 93 Subnet 255 255 0 0 Gateway 0 0 0 0 Booter Version 5 0 53 OS Version 1 0 597 Serial Port Configuration 38400 8 ODD 1 RTU Slave Timeout Retrys Timeout 500 Retrys 0 Automatic Reads Reading from Slave 1 Show Status Monitor Status Information Firmware Updates Hosteng com TES internet 5 amp 100 A 16 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples e S Click on the link to the right of Serial Port Configuration and set up the window to match the CLICK PLC port and then click on the Send button to save the settings Get Serial Port Setup Windows Internet Explorer G ae 192 168 15 47 File Edit View Favorites Tools Help Er Get Serial Port Setup Serial Port Configuration Baud 115200 57600 038400 19200 14400 O 9600 4800 O2400 1200 Rate 0600 O 300 Parity O Even Odd None Stop Bits 91 O2 9 internet fg 100 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 A 17 Appendix A Application Examples E Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software Once the softwar
8. Base 1 in the lower right corner matches the addressing to the cross reference chart mentioned above Once this windows has been configured as shown above click on OK Now click on the Connection pulldown menu and select Connect 71 Modbus Poll Mbpoll1 File Edit Setup Functions Display View Window Help 05 06 15 16 22 23 101 9 Auto Connect Quick Connect FS SR 1000ms DISABLED Port 1 9600 8 E 1 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 2 1 Appendix A Application Examples E In the Connection Setup window choose the Modbus TCP IP connection type Enter the IP address of your MB GATEWAY module in the lower left hand corner Match everything else as shown Connection Setup Connection Modbus TCP IP Cancel Mode Serial Settings Response Timeout 1000 ms Delay Between Polls 10 ms Remote Server IP Address Port Connect Timeout 192 168 15 47 502 3000 ms Click on OK to connect to the MB GATEWAY If everything has been configured correctly the counter next to TX will increment rapidly and the counter next to Err will not increment If the Error counter is incrementing go back and verify that all the steps prior to this one have been followed If you get an error that says Modbus TCP connection failed verify that the IP address of the PC and the IP address of the GATEWAY are in compatible subnets and can communic
9. Block Monitor NO Contact NC amp Security Accounts Comment Comment Name Detail Detail Mode 8 NC Contact NC Write Program NO Edge Contac E Tag Database JO Overview Rung Comment W Tag Cross Refe 2 3 Monitor amp Debu Data View E Data Logger Set Coil K PTN Out Coil lt 1857 Reset Coil OR Out Task Management Ou 8 0 Tasks Run First Scan Onl 1089 Debounce Coil 5 0 Run Every Scan i il Timed Coil Run Every Second Run When Called Program End Disable Task v No Operation lt gt 1 Flasher Toggle Coil User Security Task New Task Rung 1 Column 1 PAC Offline Project File Status Saved PAC Project Status Run Time Transfer A 24 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples a E Double click on the image of the P3 550 in the center of the hardware configuration gt Read Configuration em Group 00 Hardware Components PAC Base Groups Base Chassis ERE 7 P3 03B P3 05B P3 08B P3 11B Main CPU P3 550 B Discrete Input P3 08ND35 P3 16ND3 10 Peripheral Devices T P3 32ND3 P3 64ND3 P3 08NAS 16 P3 165IM Discrete Output P3 08TD15 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 25 Appendix A Application Examp
10. Lp EIS For Help press F1 Online DLO6 RGA o 001 07680 06 Change the value in data view for VO to various values and watch the value change in Modbus Poll to match A 10 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples SH Example 2 Using Modbus Poll to MB GATEWAY with CLICK Slave This example will illustrate how to use Modbus Poll which is PC based Modbus Master simulator tool to connect through the MB GATEWAY to a CLICK PLC via 2 wire RS 485 Items needed for this example MB GATEWAY e CLICK PLC any 0 01 or C0 02xx x PLC with 3 pin terminal RS 485 port PC with Modbus Poll installed free demo is available at www modbustools com Small length of Belden 9842 or equivalent cable Ethernet switch and cables to connect from the PC to MB GATEWAY Step 1 Connect the MB GATEWAY serial port to Port 3 of the CLICK PLC Using the short length of Belden 9842 connect the MB GATEWAY to CLICK s Port 3 as shown RS 485 Band Gateway 3 Pin y OND Ol Terminal Blok Port 3 Pin Descriptions EKRE e saes 8 3 SII iG 2 minus Signal RS 485 E Da d x 3 LG Logic Ground OV E GND 01 Gateway contains a 1200 Termination Resistor between RX and RX MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 11 Appendix A Application Examples E Step 2 Configure the C
11. GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples e E Click the Port 3 Setup button to configure Port 3 of the PLC COM Port Setup There are only 3 ports C0 02DD1 D CPU Module Port 1 The setup of this port is Fixed CLUICK gt Tt works as a network slave only Koyo This port is used for programming and maintenance only Port 2 stop This port is used For general purpose communication that uses RS 232 This port can be a network master or slave Learn More Setup Port 3 This port is used For general purpose communication that uses RS 485 This port can be a network master or slave Learn More Setup OK J L Cancel Help Configure the port for 38400 baud rate Odd parity 1 Stop Bit and Node Address 1 Leave the other settings as shown below Note the Node Address number configured here Once the settings are configured Click on the Ok button Com Port Setup Details Port ETENIM v Protocol Modbus Basic Configuration Wiring Details Node Address 1 247 1 Port3 R5 485 Non isolation Baud Rate bps 3 pin Removable Terminal Parity Block Stop Bit Advanced Configuration Time out Setting S00 ms v Character Time out 2 1000ms 2 Response Delay Time 0 5000 0 MB GATEWAY USER M Hardware User Manual 1st E
12. MB GATEWAY open up a web browser such as Internet Explorer and enter in the IP address of the MB GATEWAY to access the main screen as shown Modbus Gateway Windows Internet Explorer DEAR Go e 192 168 15 47 P File Edit View Favorites Tools Help Modbus Gateway MB Gateway by Automation Direct com Gateway Modbus ID 255 0xFF Module Name Modbus Gateway 1 Module Description Modbus Gateway Ethernet Address 00 E0 62 40 47 07 IP Setup Address 192 168 15 47 Subnet 255 255 0 0 Gateway 192 168 1 10 Booter Version 5 0 53 OS Version 1 0 597 Serial Port Configuration 0 7 NONE 1 RTU Slave Timeout Retrys Timeout 1000 Retrys 2 Automatic Reads Reading from none Show Status Monitor Status Information Firmware Updates Hosteng com te Internet For instructions on connecting with a web browser see NetEdit Configuration section in Chapter 3 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 5 Appendix A Application Examples E Click on the link to the right of Serial Port Configuration and set up the window to match A the DL06 PLC port and then click on the Send button to save the settings Get Serial Port Setup Windows Internet Explorer i 192 168 15 47 Fie Edit View Favorites Tools Help Get Serial Port Setup Serial Port Configuration Baud 115200 57600 38400 O 19200 14400 O 9600 O 4800 2400 1200 R
13. 00 ECWX Dev2 OK C102 Im ECRX Dev3 OK T1 C104 ECWX Dev3 OK S a ECRX Dev2 Fai C101 Bn ECWX Dev2 Fai C103 ECRX Dev3 Fai C105 ECWX Dev3 Fai C107 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 37 I IJ IJ IJ Count successful ECRX and ECWX transactions Count failed ECRX and ECWX transactions Appendix A Application Examples ECOM100 RX Network Read ECRX IB 740 ECOM100 3 K7 Workspace V505 Slave ID K3 From Slave Element Src Y20400 Number Of Bytes K8 To Master Element Dest v2020 Success C104 Error C105 ECOM100 WX Network Write ECWX IB 741 100 K7 Workspace V506 Slave ID From Master Element Src v2100 Number Of Bytes K4 To Slave Element Dest V4432 Success C106 Error C107 INCB RXANX OK count v3000 INCB RXWX Fail count v3001 END Appendix A Application Examples E LIXA o ECOM100 RX Network Read ECRX IB 740 ECOM100 Workspace Slave 1D From Slave Element Src Number Of Bytes To Master Element Dest Success Enor In our example ECRX boxes ECOM100 defined for this DL program in the ECOM100 iBox in our Rung 1 Workspace 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 Slave ID The GS Drive Node ID 2 or 3 depending on which drive we target Fr
14. 02 3000 Click on OK to connect to the MB GATEWAY If everything has been configured correctly the counter next to TX will increment rapidly and the counter next to Err will not increment If the Error counter is incrementing go back and verify that all the steps prior to this one have been followed If you get an error that says Modbus TCP connection failed verify that the IP address of the PC and the IP address of the GATEWAY are in compatible subnets and can communicate Modbus Poll Mbpoll1 File Edit Connection Setup Functions Display View Window Help amp 05 06 15 16 22 23 101 EE Mbpoll1 Tx 60 Err 0 ID 1 F 03 SR 100ms 4x0000 For Help press F1 192 168 15 47 502 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 9 Appendix A Application Examples E Once Modbus Poll is communicating to the PLC go into DirectSoft open up a Data View A window and enter in VO and change the display type to Decimal to match the Modbus Poll software iit DirectSOFT 5 Programming UNTITLED Ladder View File Edit Search View Tools PLC Debug Window Help Go EDIT yy an Md Mi Open tnr Find Sh pr 09 Help LEN et gt wono Element Status Edits vo D 1 4 Gi 8 2 co 2 gt
15. 0521 ew int 400021 03 06 16 No oT O0 0 0 O0 O0 le le le le le le Data Type Filter Used Unused Address Display MODBUS Address V Display All Data Types Display both used and unused MODBUS 984 Addressing fies MODBUS HEX Addressing Display only unused 20 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 Appendix A Application Examples Serial Slave will be targeted on the serial side of the MB GATEWAY Entering 1 here will match up to the B Enter in 1 for the Slave ID This matches the Unit ID in the protocol that will determine which Modbus Node Address configured above in the CLICK programming software for Port 3 A Read Write Definition SlavelD Function 03 Read Holding Registers 4x J ancel Address 1 Quantity 11 Scan Rate 1000 ms Disable v Read witite Disabled View Rows 10 O20 O50 C Hide Alias Columns Address in Cell Display Signed v PLC Addresses Base 1 Enter in 1 for the Slave ID This matches the Unit ID in the protocol that will determine which Modbus Serial Slave will be targeted on the serial side of the MB GATEWAY Entering 1 here will match up to the Station Number configured above in the CLICK software Choosing Function 3 sets up the read for 4xxxxx registers Checking the PLC Addresses
16. 1 Step 3 Set the Communication Parameters Set the communication parameters in the drives as appropriate for your network In our example Parameter Parameter Number Description Drive ID Baud Rate Modbus RTU 8 Odd 1 RS 485 interface Keypad STOP disabled Frequency determined by RS 485 interface First Drive Second Drive MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 3 1 Appendix A Application Examples E Step 4 Using Automatic Reads In the MB GATEWAY browser configuration utility click the Automatic Reads link Slave number 2 is the first drive and Slave number 3 is the second drive in our example Configure the lines as appropriate For our example we will read the status registers for each drive Setup Automatic Reads Windows Internet Explorer DEAR Go H 10 11 0 233 viR lel File Edit View Favorites Tools Help er Setup Automatic Reads Setup Automatic Reads Gateway Modbus Address 1 v Auto Assign Gateway Addresses RTU Number Gateway Start of Memory Address Elements Address 8848 4 Memory Slave To Read Number 3 Holding Regs 3 Holding Regs 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry Unused Entry 0 Unused Entry elelee relele Te N CUnusedEnty 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry Un
17. C Clear to send RS 232C Recieve data RS 422 485 Power connection GND Power connection GND NOTE If using a connector Transmit data RS 422 485 other than ZL CM15 or Transmit data RS 422 485 ZL CMA15L jumpers must Ready to send RS 422 485 be installed on the Ready to send RS 422 485 PLC side RXD Recieve data RS 422 485 Pin 11 to 14 CTS Clear to send n RS 422 485 Pin 12 to 15 CTS Clear to send RS 422 485 Internally Connect Gateway contains a 1200 Termination Resistor between RX and RX NI Go po A 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples Step 2 Configure the DL06 PLC serial port and MB GATEWAY serial port Connect to the DL06 PLC with DirectSoft Go to the PLC pulldown and select Setup gt Setup Secondary Comm Port as shown it DirectSOFT 5 Programming UNTITLED Ladder View File Edit Search Tools Pl Debug Window Help G 2 T d Usb Disconnect p owz Opts loom Out Hel Link Setup Status D Value m1 EE Memory Map Tools PLC Modes Ctrl Shift R Configure Password PRE RE Diagnostics Setup Pause Bits Clear PLC Memory 72 Overrides Copy config data from PLC to Disk Mem
18. LICK serial port and MB GATEWAY serial port Connect to the CLICK PLC with CLICK programming software Go to the Setup pulldown and select Com Port Setup as shown CLICK Programming Software NewProject1 ckp Main Program Gi File Edit view Program Instruction PLC Monitor Window Help D d di System Configuration X Beal OOo amp ls ia Scan Time fd Watch Dog Timer DoR w Password Setup Ctrl Shift P Online STOP No PLC Error Nicknames Address Comments B Navigal Battery Backup Setup B Program Functio Interrupt Setup 8 B Ladder Pro CPU Built in 1 0 Setup Main Pri Software Setup Subroutine Program Interrupt Program Address Picker Edit Rung Comments L Local Program Informatio Syntax Check Cross Reference View Monitor i Status Monitor i Data View RE DataView fra Text View for Override View z Bille rt RE E E t s en 8 A Bi Instruction List Instruction Edge Contact Compare Coil Reset Timer Counter Timer Counter Advanced es Math bea Drum s8 Shift Register Copy Search iil Copy nal Search Program Control iu Call ree For jur Next end Communication Com Port B Bit E Integer 8 Integer 2 words E Floating point 81 Hex M Tet A Ascii STOP 0000 8000 CO 02DD1 D 1 1 AF A 12 MB
19. PENDIX APPLICATION EXAMPLES In This Appendix Example 1 Using Modbus Poll to MB GATEWAY with DLO6 Slave A 2 Items needed for this example A 2 Step 1 Connect the MB GATEWAY serial port to the DLO6 secondary communications port seris sas A E a a re A 2 Step 2 Configure the DLO6 PLC serial port MB GATEWAY serial port A 3 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 7 Example 2 Using Modbus Poll to MB GATEWAY with CLICK Slave A 11 Items needed for this example A 11 Step 1 Connect the MB GATEWAY serial port to Port 3 of the CLICK PLC A 11 Step 2 Configure the CLICK serial port and MB GATEWAY serial port A 12 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 18 Example 3 Using P3000 as Master Client to MB GATEWAY with CLICK Slave A 24 Step 1 Connect CLICK to the MB GATEWAY as shown in example 2 A 24 Step 2 Connect P3000 CPU P3 550 to MB GATEWAY via Ethernet Switch and Two Ethernet Cables iusso dde uu dr xe se eee A 24 Step 3 Configure the MRX instruction to read data from the MB GATEWAY A 28 Example 4 DirectLogic 06 HO ECOM100 as Master Client to MB GATEWAY with Mulitple GS Drives as A 29 Step 1 Set up Peer to Peer Configuration
20. Program Informatic Timer Syntax Check Counter Cross Reference View Advanced E Monitor amp Math Status Monitor ru Drum 39 Data View 5n Shift Register Copy Search m Dataview ford Copy Text View sno Search fer Override View Program Control le CS Address B Bit E Integer IB Integer 2 words E Floating point H Hex E Text A Ascii STOP 00008000 0 02001 0 1 1 AF MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 19 Appendix A Application Examples E 9 Address Picker Edit Mode Fill Down Mickname Find v Exact Match Address amp j Data Type MODBUS Address Function code Nickname Initial Value Retentive Address Comment INT 400001 03 06 16 No 052 rw 400002 03 06 16 D53 rw 400003 03 06 16 No 054 rw iNT 400004 03 06 16 No 055 rw 400005 03 06 16 No 056 400006 03 06 16 No D57 rw 400007 03 06 16 No 058 rw 400008 03 06 16 No 059 rw 400009 03 06 16 No 0 400010 03 06 16 0511 400011 03 06 16 No DS12 rw 400012 03 06 16 No psi3 Int 400013 03 06 16 No psi 400014 03 06 16 No D515 400015 03 06 16 No D516 rw 400016 03 06 16 No psiz 400017 03 06 16 No psig 400018 03 06 16 No D519 400019 03 06 16 No D520 rw 400020 03 06 16 No
21. a from a drive instead of using of the Automatic Read feature of the MB GATEWAY and to Write data to the drive the Slave ID in the ECRX and or ECWX iBoxes will be the Drive ID The From Slave Element and or To Slave Element values will be the addresses in the drive 1 100 Contig ee IB 710 Network 7 uses the H2 Ecom100 in Slot 2 ECOM100 K7 It will use the range of V memory from V402 V502 as the Slot K2 working buffer Status V400 Workspace V401 Msg Buffer 65 WORDs V402 V502 _FirstScan SPO p 2 K On the first PLC scan set the Comm Error and Comm Success count registers to 0 OUT RXAWX OK count v3000 OUT RAW Fail count v3001 _FirstScan a K350 E our example we will write frequency 35 0Hz into each of our drives This rung will load the decimal value 35 0 into V memory address V2100 AND a 1 into V2010 that will write to the Run Stop command um v2100 LD K1 OUT g 2101 ECOM100 RX Network Read i n ECRX 18 740 Ecom100 K7 Workspace w503 Slave ID K2 From Slave Element Src Y20400 Number Of Bytes KB To Master Element Dest 2000 Success c100 Error C101 ECOM100 WX Network Write ECW IB 741 ECOM100 KT Workspace 504 Slave ID K2 From Master Element Src v2100 Number Of Bytes K4 To Slave Element Dest 44 2 Success C102 Error C103 continued A 36 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 hal ECRX Dev2 OK C1
22. ate Modbus Poll Mbpoll1 DoR Fie Edit Connection Setup Functions Display View Window Help Dae x 7 SE 05 06 15 16 22 23 101 WP Mbpoll1 x 60 Err 0 ID 1 F 03 SR 100ms Alias 4x0000 For Help press 1 192 168 15 47 502 A 22 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples Once Modbus Poll is communicating to the PLC go into the CLICK programming software open up a Data View window and enter in DS1 as shown HR Data View DataView1 Fill Down Write All New Values Integer Export Change the value in data view for DS1 to various values and watch the value change in Modbus Poll to match MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 23 Appendix A Application Examples E Example 3 Using P3000 as Master Client to MB GATEWAY with CLICK Slave Step 1 Connect CLICK to the MB GATEWAY as shown in example 2 Step 2 Connect P3000 CPU P3 550 to MB GATEWAY via Ethernet Switch and Two Ethernet Cables Configure the IP address of the P3 CPU and the MB GATEWAY to be compatible subnets Steps to configure the IP address of the P3 550 CPU areas follows Click on Setup on the top menu bar and choose Hardware Configuration Productivity Suite Programming Software Version 1 4 1 1 No Name BAE Instructions ontacts F 4 Data Logger rn Rung n Instruction v
23. ate 600 O 300 Parity O Even O Odd None Stop Bits 91 O2 internet gr 100 A 6 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 Appendix A Application Examples Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software Once the software has been obtained from www modbustools com and installed according to the directions provided from their website open up the Modbus Poll software Click on the Setup pulldown menu and select Read Write Definition as shown 7 Modbus Poll Mbpoll1 File Edit Connection Functions Display View Window Help amp b oc x 101 9 M EE Mbpoll1 Read Write Disabled Shift F6 0 0 10 Exceltog No Connection Alias Log Reset Counters Use as Default Readjwrite definition Port 1 9600 8 E 1 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 7 Appendix A Application Examples E Configure the Read Write definition for a simple read of the register 400001 which equates to VO in the DirectLogic PLCs see Attp support automationdirect com docs Modbus_xref pdf for more information on Modbus addressing to DirectLogic PLC addressing equivalents Read Write Definition 1 Slave ID 1 Function 03 Read Holding Registers 4 ancel Address Quantity Scan Rate 1000 ms Disable v Read Write Disabled View Rows 10 O20
24. d Rev 10 13 A 13 Appendix A Application Examples E Next transfer the project to the PLC for the Port 3 settings to take effect Select the PLC pulldown menu and choose Write Project into PLC CLICK Programming Software NewProject1 ckp Main Program DER G File Edit View Setup Program Instruction Monitor Window Help aq x 9 aa Disconnect Foao 1 gt Read Data from PLC a n SN s Write Data into ES ie 3 Read Project from PLC Ctrl F9 Navigation Write Project into PLC Shift F9 E AF Bi Instruction List Program Function PLC Online Project Information Instruction 3 Calendar Clock Setup Sr amp 9 Ladder Program it Edge Contact H P kd Main re PLC Modes Ctrl Shift R Cannas y Subroutine Program Error History ii Interrupt Program Clear Memory Out Address Picker Update Firmware Set d Reset a Edit Rung Comments Reset to Factory Default TimeriCounter Ly Local Program Informatic mj Timer Syntax Check Counter Cross Reference View _ Advanced EQ Monitor amp Math f Status Monitor bui Drum 2 WE Data View Shift Register T Copy Search amp Dataview Copy Text View aol Search fer Override View Program Control tau Call roe For Next ea End x Communication V b Error Nicknames Address Comments 1
25. e has been obtained from www modbustools com and installed according to the directions provided from their website open up the Modbus Poll software Click on the Setup pulldown menu and select Read Write Definition as shown ME Modbus Poll Mbpoll1 File Edit Connection Functions Display View Window Help v Read Write Disabled Shift F6 Excel Log Log Reset Counters Use as Default Read write definition Port 1 9600 8 E 1 A 18 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples Configure the Read Write definition for a simple read of the register 400001 which equates to DS1 in the CLICK PLC as shown CLICK Programming Software NewProject1 ckp Main Program G File Edit View Setup Gey Instruction PLC Monitor Window Help D Giu Add New Subroutine Program M 5 gh 9 n Add New Interrupt Program Ctrl I JO0 0 u ht Edit Rung Comments 5 STOP No PLO Error Local Program Information L Navigation c D E AF A Bi Instruction List Program Function PLC Syntax Check Instruction 8 ie Ladder Program Cross Reference View inta Nicknames j Address Comments H M a Edge Contact Main Program 1 Compare Subroutine Program 89 Interrupt Program f Out Address Picker g Edit Rung Comments Timer Counter Local
26. es A To Slave Flement Dest the Modbus register where the data will be written in the drive In this case V4432 equates to P9 26 Comm Speed Reference See GS Drive manual for more details Success a bit that will turn on once the instruction is completed successfully Error a bit that will turn on if the instruction is not successfully completed MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 39
27. les E Click on the Ethernet Ports tab and configure the IP address in the Use the Following IP address field Once the correct IP address and Subnet Mask is entered click on the OK button and close the hardware configuration window Options Ethernet Ports Serial Ports External Ethernet Port Port Name CPU ETH Ext Port Security Option Read Only Read Write TCP IP Settings Use current settings Use DHCP Use the Following IP Address 192 168 15 53 Subnet Mask 255 255 0 0 Default Gateway 0 0 0 0 Timeout between data query and response 100 30 000 msec 5 x100 msec Modbus TCP Port 1 65535 502 Comm Heartbeat Value 2 1 000 sec E Local Ethernet Port Timeout between data query and response 20 20 000 msec 100 x10 msec Comm Heartbeat Value 200 10 000 msec 20 x100 msec A 26 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples e E Transfer the project to the PAC in order to have the new settings take effect To do this select File from the pulldown menu and then Transfer Project gt To PAC Productivity Suite Programming Software Version 1 4 1 1 No Name Edit Setup PAC Tools Window Help New Project T 20 Online A Choose 8 Ex 2 Open Project Close Project Contacts Save Project Ctri s Rung Instruction Tag Block Tag Monitor Comment comment
28. n the 100 iBox in our Rung 1 Workspace 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 Slave ID The MB GATEWAY Modbus Gateway ID 1 since we are reading the Automatic Read data stored in the MB GATEWAY From Slave Element Src the Gateway Memory Address identified on the MB GATEWAY Setup Automatic Reads config page Note that the address in the MB GATEWAY 0 should be entered here as VO and DirectSoft software will change the name to TAO This is a naming convention for addresses internal to the PLC and will not affect either the targeted A 34 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples Ee address or the use of Timer 0 in the DL program Number of Bytes 20 Since our addresses for both example drives are contiguous we can A read all 10 elements with one iBox Each element is a word 2 bytes so we want to read 20 bytes to get all 10 elements To Master Flement Dest the location where the slave data will be placed in the master ECOM100 PLC Success a bit that will turn on once the request is completed successfully Error a bit that will turn on if the instruction is not successfully completed MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 35 Appendix A Application Examples E Step 6 Read and Write from the DL06 To Read dat
29. om Slave Element Src V20400 equates to Status Monitor 1 in the GS Drive Hex 2100 and Modbus Decimal 48449 See GS Drive manual for details Number of Bytes Each Modbus register element that we want to read is a word 2 bytes in our example we will read 3 status registers To Master Flement Dest the location where the slave data will be placed in the master ECOM100 PLC Success a bit that will turn on once the request is completed successfully Error a bit that will turn on if the instruction is not successfully completed FILE o ECOM100 WX Network Write ECWX IB 741 ECOM100 Workspace Slave ID From Master Element Src Number Of Bytes To Slave Element Dest V 4432 success Enor In our example ECWX boxes ECOM100 Module ID set in NetEdit and defined for the DL program in the ECOM100 iBox in our Rung 1 Workspace 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 Slave ID The GS Drive Node ID 2 or 3 depending on which drive we target From Master Element Src the location of data in the Master PLC that will be written to the drive A 38 MB GATEWAY USER M Hardware User Manual Ist Ed Rev 10 13 Appendix A Application Examples Number of Bytes 4 In our example we will write the speed 2 bytes to the Comm Speed Reference register and set the next register to RUN 2 byt
30. ory Cartridge Name EFE Copy config data from Disk to PLC zt Retentive Ranges Watch Dog Timer Li Initialize Scratch Pad i Config Selection a Config Check amp 00 0 _ 1 Calendar Dvi000 fat PID 2 Setup PLC Secondary Communication Ports 00001 07680 06 XE Inteligent 10 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 3 Appendix A Application Examples E Setup the port as shown for Modbus protocol 38400 baud rate Odd parity 1 Stop bit and Station Number 1 Match everything else as shown Note the Station Number configured in the PLC Once this has been done click on the icon on the upper right hand side with the arrow pointing to the PLC to save the settings in the PLC Setup Communication Ports Port 2 E Protocol K Sequence DirectNET M MODBUS Non Seq ASCIl Remote 1 0 Time out Base Timeout x 1 RTS on delay time RTS off delay time Station Number Baud rate 38400 Stop bits 1 Parity Odd Port 2 15 Pin Base Timeout 800 ms m in 800 ms Help 500 ms 3 Characters Echo Suppression C RS 422 485 4 wire RS 232C 2 wire RS 485 2 wire A 4 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples e E In order to match the serial port settings of the DLOG to the
31. s SH Example 4 DirectLogic 06 HO ECOM100 as Master Client to A MB GATEWAY with Mulitple GS Drives as Slaves Cable end marked DirectLOGIC 8 Drive Side DLO6 PLC J m gt w ECOM100 10 11 0 221 aa Ethernet Cat5e _ MB GATEWAY T 10 110 233 GS Drive a Node ID 2 Stride Ethernet 26 CDM RJ12X4 Switch RS 485 iT GS RJ12 CBL 2 Ethernet 3 Caution Wire ONLY the pins connected by Cat5e the cable The drives DC power available at the RJ12 pins will affect other drives if other y pins are connected RS 485 Cable F Error N m gt GND 4 1 1 Cable end In ORXe Li 1 2 RX ie l3 Drive Side 1 me 11 loa 1 Qs iA in 609 200 GS Drive 1 1 Dog tea ette ee mesi d Node ID 3 MB GATEWAY USER M Hardware User Manual Ist Ed Rev C 10 13 A 29 Appendix A Application Examples E Step 1 Set up Peer to Peer Configuration In NetEdit Scan Network to find your HO ECOM100 Set the Module ID IP address and Subnet Mask as appropriate for your network In our example we use 7 10 11 0 221 and 255 255 255 0 respectively General Settings 2 Module ID 4 Obtain an IP address automatically Use the following IP settings Name HO ECOM100 NE IP Address 10 1 0 22 Description HO ECOM100 Ethemet ications Modul communications Module
32. used Entry elre O Unused Entry v rel fol fel fel fel fel fel oe fo fe e 0 Unused Entry fa 100 A 32 MB GATEWAY USER M Hardware User Manual Ist Ed Rev C 10 13 Step 5 Access the Automatic Read Data The ECRX iBox is used since the data will be read by the ECOM100 rather than a serial connection Appendix A Application Examples el VIXIA ECOM100 RX Network Read ECRX IB 740 ECOM1003 KT Workspace 503 s Slave ID From Slave Element Src v20400 Number Of Bytes s To Master Element Des V2000 ad Success Error MB GATEWAY USER M Hardware User Manual Ist Ed Rev C 10 13 A 33 Appendix A Application Examples E ECOM100 Config 1 ECOM100 1B 710 ECOM100 K7 Slot K2 Status v400 Workspace V401 Msg Buffer 65 WWORDs ECOM 7 _FirstScan SPO 2 Ko OUT RXANX OK Count v505 OUT RXANX Fail Count V506 100 Network Read ECRX IB 740 3 l ECOM100 3 K7 Workspace 503 Slave ID K1 From Slave Element Src TAO Number Of Bytes K20 Master Element Dest v2000 Success C100 Error C101 mci INCB 4 RXANX OK Count LT v505 SP1_NetAX_7_OK C102 SP1_NetRX_7_Fall INCB RXIWX Fail Count 5 17 506 SP1 NetWX 7 Fail C103 __ 100 defined for this DL program i

Download Pdf Manuals

image

Related Search

Related Contents

  Nortel Networks VPN Router and Client Workstation 7.11 User's Manual  Avaya Site Manager Software Version 15.6.0.0 (308664-15.6 Rev 00) Release Notes  TFM-403 Installation and Operating Instructions  Pro Quick™  sensION+ PH3 HACH_LANGE 0710.indd  Page 1 Page 2 磯 はじめに 叙 このたびは、エールペペーサラット  

Copyright © All rights reserved.
Failed to retrieve file