Home
Win-GRAF-User-Manual-english V1.01
Contents
1. cee iO Drivers ae demo_X 310 fey E Ma MODBUS Master ame H C Exception programs 3 E a ATU COMO 115200 N 8 1 E Global variables J L Programs a see 8 lt 4 gt Read Input Registers 1 1 4 W310 ALO INT i 34 Main B 7 H A lt 15 gt Write Coil Bits 1 1 4 E XV310_AL1 INT Watch for debugging H B lt 2 gt Read Input Bits 1 33 36 XV310 Al 2 INT AE Soft Scope lt 16 gt Write Holding Registers 1 33 34 3 XV310_AL 3 INT Initial values g TEE XV310_AO_0 INT Ys Binding Configuration WAAT Dataexchange 0 FrEF Detak X310 AO 1 INT jong Hiona nenne SP JIOA Data exchange 1 FFFF Defaut Ya Variables gy xV310_AL2 Data exchange 2 FFFF Defg MOL Ose Types a gt XVI AlI Data exchange 3 FFFF Default F gt is gt EE 10 Drivers Variables P Note The Offset value is starting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address Moreover if you set the Operation as Error report the Offset value for the mapping variable Date Type DINT must be set to 0 MODBUS Master Request Request Description Slave Unit The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board lt 2 gt Read Input Bits R 3 gt Read Holding Registers lt 4 gt Read Input Registers ws Wieikn cinale anil hik Data block Base address 1 Nb items 4 Start from addr 1 and read
2. Response Delay Set Module Configurations Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 17 6 Inthe Al Al Alarm tab to configure the proper ranges and values for each Al channel and remenmber to select any Al channel e g CH 00 you want to use then click the Set Alarm button XV308 Firmwvare A102 Configuratidg AI Al Alarm Do alarm Host WOT Dt About High Alarm Limit Low Alarm Limit 9 Alarm Mode 7 ch o0 00003 000 003 fioe 10v io ho Disable v cH o2 00052 00 0052 ffosj asvix 2s fas Disable cHio4 00022 000 022 00 20 me Disable cH os 00005 000 005 fios 10v eio sd Disable cHos 00006 000 006 fios 10v eio Disable lM cH o7 00001 000 001 fio 10v elio sd Disable XV308 05 2 5 V 20 mA 07 4 mA 20 mA 10 V 5 V OA 1V 20 mA l 1A 0 mA 20 mA Note 1 For easy to use recommended to use the data format Engineering E g 2 5 V will show as 25000 to 25000 and 4 mA to 20 mA will show as 4000 to 20000 2 When using these Type Code 06 07 OD 1A please check if the position of eight hardware jumpers on the XW board are correct www icpdas com root product solutions datasheet hmi touch monitor XV308 pdf Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 18 Note When using the XV308 you need to click the Set Pow
3. RangeLo SigHi SigLo gt lt modbusitem ope Data offset 4 symbol DINT_3 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 6 symbol DINT_4 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 8 symbol DINT_S nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Status offset 0 symbol ERROR_STATUS2 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusreg gt lt modbusport gt lt modbusport kind master Eleieig eee TEE REREN port 502 sdiags 1 reconnect 1 disabled 0 reqdelay 10 rtu 0 gt lt modbusreg name mode Read Input Bits address 0 nbitem 3 slave 1 call Periodic 1000 8000 timeout 1000 retry 1 gt lt modbusitem ope Data offset 0 symbol boo_1 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 1 symbol boo_2 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 2 symbol boo_3 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Status offset 0 symbol ERROR_STATUS1 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusreg gt lt modbusreg name mode Read Input Registers address 0 nbitem 5 slave 1 call Periodic 1000 8000 timeout 1000 retry 1 gt
4. Types Build a Oo X Breakpoints Prompt Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 1 2 Click the Insert Configuration button on the left of the IO Drivers window then click the MOSBUS Master and OK to enable the Modbus Master setting IO Drivers Name Value OF Name Ai Global variables lal RETAIN variables gt Add Confiruration Choose a configuration E Al MODBUS MODELS Master MODBUS Slave Cancel D Ps 3 Click the Insert Master Port button on the left side to open the setting window Then select the Serial MODBUS RTU set COM Port e g COM2 9600 N 8 1 and Delay time recommended value 10 ms it can be O to 10000 and then click OK 10 Drivers H MODBUS Master Name Value F Name Type ee es Global variables D Os HODEUS Maser Bort E RETAIN variables Main 2 O MODBUS on Ethernet Ta pOnBadindex A Address Fe pOnDivZero F Port Eire a Mo Protocol pP Onen M Se e If wish to set it as a Modbus ASCII Master change the setting to
5. 4 mA 20 mA OV 10V 3 10 V OV 5V 5 5 V l Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 20 5 1 7 Connecting the XV107 XV107A 8 DI 8 DO The XV107 XV107A is an 8 channel digital input and 8 channel digital output board This section provides a Win GRAF demo project demo_XV107 zip First go to Section 5 1 6 for the information of the XV Board before using it Demo description This demo added two data blocks One is used to read 8 DI data and the other is used to write 8 DO data 1 Mouse double click the 1st data block i e lt 2 gt Read Input Bits to open the setting window Workspace J 10 Drivers Ha 5 demo_X 107 Ig me MODBUS Master A TY Name Type Exception programs 3 r ATU COM0 115200 N 81 xXv107_DI_00 BOOL Programs a 8 lt 2 gt Read Input Bits 1 18 xV107 DIO1 BOOL ee ae Main B i B lt 15 gt Write Coil Bits 1 1 8 FF x 107_DI 02 BOOL A 1 AST EE y m a e T a _ Symbol Operation Offset Mask Storage aortas Sai E Initial values wa XV107_DI_00 Data exchange 0 FFFF Default yr 07 D Os BOOL A Binding Configuration xv107_DI_01 Data exchange 1 FFFF Default AA 07 DI OG BOOL B Sq Global defines as x 107_DI_02 Data exchange 2 FFFF Default A 07 DI a BOOL f Variables a 107 _DI_03 Data exchange 3 FFFF Default Types g xv 107_DI_04 Data exchange 4 FFFF Default AA TA om Boo Y eV 107_DI_05 Data exchange 5 FFFF Default 107_Dl_06 Data exchange
6. ASCIl COM2 9600 N 8 1 Doly between roguests After receiving the respond waiting for 10 ms to send the next command Delay ms 10 Try to reconnect after communication error peas ee iiemed bt for slaves Select Disabled if you do not want Disabled do not open and manage this port to use this COM Port setting 4 Click the Insert Slave Data Block button on the left side to create a data block IO Drivers UOH azte ATU COM 9600 N8 Disabled Name Value Mode ATU Address COM 2 9600 4 8 1 Fort Ji Reconnect after error Slaves diagnostics Delay between requests me 10 J Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 2 This table lists five data blocks and each data block stands for one Modbus Master Request 6 Write single holding register Write one AO data U6 bi Write Holding Registers 5 1 1 Read DI data 1 Completing all the following settings in the MODBUS Master Request window and then click OK MODBUS Master Request a Slave Unit Ere Enter the Net ID of the Slave device In this case the Net ID is 1 Slave Unit Me lt a b MODBUS Request i Select lt 2 gt Read Input Bits option Request Description MODBUS Request pees P c Base address aie K Start from 1 by default lt 3 gt Read Holding Registers re Nb items 2A
7. Status 3 as Error report that means this variable will be set to an error code when a read error occurs or reset it to O when a read request is successful Press the F1 key to see the description of the Modbus Master Configuration and move to the title Status and command variables to know related commands and error codes IO Drivers E MODBUS Master Name Value a S ar ATU COM2 9600 N 8 1 Request lt 6 gt Write single holdi oan B lt 2 Read Input Bits 1 1 16 Slave Unit 3 B lt 5 gt Write single coil bit 2 1 1 Address 1 ie lt 4 gt Read Input Reaisters 3 1 10 Nb Item 1 g i lt 6 gt Write single holding register 3 1 1 Activation On Change Period rms 0 E Period on err 0 ep Timeout ms 250 E Number of tri 1 gt Description sil f aa E p 2193 Chute D Symbol Operation Offset Mask Storage Range le Name Value Word_Write_1 Data exchange D7 FFF T Default Status 3 Eronen Jo FFFF Default lt gt 4 gt 10 Drivers Variables Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 12 5 1 5 Write AO Data 32 bit 1 Using the same way in the Section 5 1 Step 4 to create the 5th data block and completing all the following settings in the MODBUS Master Request window and then click OK MODBUS Master Request x In this example in this example a a Slave Unit
8. c Base address Page ice aera Kabia nonicbae pl Start from 1 by default Data block Refer the Section 5 1 1 to change it lt Base address 1 j d On call Nb items i The request is activated when a program call to send it Pina 4 Refer the Section 5 1 1 for details Brioadic ms on call e e Timeout Set a timeout value A z gt On change sia When time out occurred it will show e the defined error code The e Timeout 250 ms recommended value for the Modbus P RTU ASCII device is 200 to 1000 ms Nb trials In this case the value is 250 ms 2 Next open the Variables window and then declare variables that are available for the program Workspace lO Drivers Test_01 E Mg MODBUS Master Name Value ni L Exception programs 3 Gl ATU COM2 9600 N 8 1 Request lt 5 gt Write single coil bit E L Programs a lt 2 gt Read Input Bits 1 1 16 Slave Unit 2 7 H Main B 5 gt Write single coil bit 2 1 1 Address 1 d E Watch for debuggi Nb Item 1 i BB Soft Scope g Activation On Call EJ Initial values Tips Period ms 0 Ajd Binding Configuration Press F1 key to view the details Period omenor O Xg Global defines c5 on the MODBUS Master settings Timeout ms 250 3 Variables Number of trials 1 fy Types BY Description Double click it to open the window Add two boolean variables in the Variabl
9. lt modbusitem ope Data offset 0 symbol DINT_1 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 2 symbol DINT_2 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 4 symbol DINT_3 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 6 symbol DINT_4 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 8 symbol DINT_S nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Status offset 0 symbol ERROR_STATUS2 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt fmodbusreg gt lt modbusport gt lt MOQDUS gt Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 50 7 Click the Win GRAF menu bar Tools gt Import File Edit View Insert Project BOS Window Help dd amp 25 8 BR Options BWEBAEs FHA Customize 7 Send to Watch as La Exception programs roger ee 38 1 100 502 E A Global variables a i omame Go to Yanable Definition gt 1 1 3 boo 1 BOOL ow a Main Edit Variables as Text boo 2 BOOL 5 al sy for debuggin Generis fini focas boo 3 BOOL feast Soft Scope oie ar DINT_1 DINT f g B toring A tion Hd Binding Configuration History gisters 1 1 5 DINT_3 DINT gt
10. r Global defines gS lt 15 gt Write Coil Bits 1 1 Ride Ai Variables J ZL Types Ht K Port xz Build A If using it as the Modbus l Protocol ASCII Master modify it to ASCIl COM0 115200 N 8 1 2 Double click on RTU COM 115200 N 8 1 to open the MODBUS Master Port window grrr DoT Note l Com port COMO 115200 N 6 1 All the demo projects listed in above table L enable the WP 5xx8 as a Modbus RTU Delay between requests Master device and set the Com Port as Delay ms 0 COM0 115200 N 8 1 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 15 Configure the Al AO channel If you want to use the Al AO channel of the XV Board e g XV308 XV310 in the WP 5xx8 First stop the Win GRAF driver in the PAC and then configure each Al AO channel by using DCON_Utility_ Pro CE _200 exe Using the WP 5238 as an example 1 Click the Win _GRAF_WP_5238 or the small icon on the taskbar to open the Win GRAF driver window and then click the End Driver button Win GRAF WP 3236 WP 5238 driver Version 1 01 Jul 16 2014 This product is licensed Project name demo w110 VMODB size 308928 Elapsed time 0 0 0 19 Stop the Win GRAF driver 2 Click My Device on the desktop and then get into the path System_Disk Tools dcon_utility_ pro to run the DCON_Utility_ Pro _CE_200 exe Bs at jv Virtud cE l G auto_contig O cmd _confg G language G
11. Mand Tamuk DManizkav _ lt ee The number of DI signals to read Jala DIOC In this case the number is 16 Base address 1 Note Nb items 16 isi L m If you want to change the Base address GA Activation right click the MODBUS Master and Periodic 2000 ms jisooo then select the MODBUS Master 70n call on error Addresses to modify the value On change Misc Q Timeout 250 ms This option can not apply to the Read request IO Drivers we PMODBUS Master Nb trials 1 MODBUS Master addresses g First valid MODBUS addresses d Activation The way to send the Modbus request Input bits Periodic Sending the request periodically Cail bits In this case to send once every two seconds Input registers on error means the next sending time when Holding registers an exception occurred e g 15 seconds On call The request is activated when a program call to send it On change In case of a write request means that the request is activated each time any variable changed e Timeout Set a timeout value When time out occurred it will show the defined error code The recommended value for the Modbus RTU ASCII device is 200 to 1000 ms In this case the value is 250 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 3 2 Next open the Variables window and then declare variables that are available for the program Workspace 10
12. 3g Global defines 3 Global Binding Editor DINT 4 DINT 7 oft Variables g Compare Project DINT_5 DINT E Types Ei Generate HTML Graphic ERROR_STATUS1 DINT a j ERROR STATUS2 DINT v OPC Client r ean i tai IEC61850 Client pee TF ame alue Goose Client T Slave Unit Address Communication Parameters 1 Runtime Parameters gt 1 epee Export gt 8 In the Import Assistant window click Import project items XNL and Next 9 Select the file you want to import e g Master_2 xml and click Open button Import Assistant Welcome to the Import Assistant What do you want to import PO PERETE ed Import project items XML mport ST file Import project items from previous versions Import common definitions Import library definitions Import OEM libraries Import Embedded HMI hardware definition Eal O Projects Demo01 yICPDAS_template EAA EST oc a 9 MICP_M other G Test Test_01 aia test C Test_2 G Test_3 RAF test_0528 ar OHNI SDE AtS ERIRE aM Master_2 xml v Bde O ERRAU T XML files xml v Ra 4 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 51 10 Click Finish to finish the import action Import Assistant Import is complete 11 In the IO Drivers window there has added a new Open MODBU
13. 6 FFFF Defa lt V107_DI_OF Data exchange 7 FFFF A aiant itame patie V 107_status Error report 0 F Default F lt gt Note The Offset value is starting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address Moreover if you set the Operation as Error report the Offset value for the mapping variable Date Type DINT must set to O MODBUS Master Request Request Description l SlavejUnit 1 _ The Net ID fixed to 1 of the Slave device i e XV board MODBUS Request E gt ae Cail Bits Ta rr are Holding Registers NY as PAS Man Tree Naniokavn_ Data block Base address 1 Start from addr 1 and Nb items 8 L nu read eight data Activation Periodic 50 ms o On call Read every 50 ms On change Misc Timeout 100 l An exception occurrs if no Nb trials 1 respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 21 2 Mouse double click the 2nd data block i e lt 15 gt Write Coil Bits to open the setting window Workspace 10 Drivers HIES fl demo_X 107 B S Mp MODBUS Master aji Name Type E E Exception programs CE G ATU COM0 115200 N 8 1 xV107 DIO5 BOOL s E L Programs ce o BB lt 2 gt Read Input Bits 1 1 8 xV107_ DLO6 BOOL foe aE Main B i SE lt 15 gt Write Coil Bits 1 1 8 xV10 7_ DLO BOOL Watch fo
14. Description Enter the Net ID of the Slave device D C Slave Unit 4 Xa e g the Net ID is 4 Request MODBUS Request b MODBUS Request lt 6 gt Write single holding register zl Select lt 16 gt Write Holding Registers lt 15 gt Write Coil Bits a Lo mols gt Write Holding Reaisters i c Base address lt Saha Hie Start from 1 by default 5 Base address 1 Refer the Section 5 1 1 to change it Nb items Nb items 2 E The number of AO signals to write Activation In this case the number is 2 ALO 1 ma LE lii 2 _ el because the REAL type requires two AON es on error Modbus address On change Misc d On change In case of a write request Timeout 250 ms means that the request is activated 8 each time any variable changed Nb trials t z Refer the Section 5 1 1 for details e Timeout Set a timeout value When time out occurred it will show the defined error code The recommended value for the Modbus RTU ASCII device is 200 to 1000 ms In this case the value is 250 ms 2 Next open the Variables window and then declare variables that are available for the program Workspace IO Drivers Test_01 E Mm MODBUS Master H Exception programs 2 ge ATU COM2 9600 N 8 1 Request lt 16 gt Write Holding R E L Programs J lt 2 gt Read Input Bits 1 1 16 Slave Unit 4 T Main B e lt 5
15. Drivers 5 5 Watch for debuggi HA Soft Scope Initial values 4 Binding Configuration 3g Global defines fal Vanables 2 Types Tips z gi LS Press F1 key to view the details on the MODBUS Master settings 2 Test_01 fe Ma MODBUS Master Name Yale o G L Exception programs 2 g ATU COM2 9600 N 8 1 Request lt 2 gt Read Input Bits uu Programs A lt 2 Read Input Bits 1 1 16 Slave Unit 1 1 Main H x i Address 1 Nb ltem 16 Activation Periodic Period ms 2000 Period on error 15000 Timeout ms 250 Number of trials 1 Description Double click it to open the window Operation Offset Mask x Declaring 16 variables to read data Name Boo_01 to Boo_16 Type BOOL and one array variable to record the state of data access Name Status Dim 5 Type DINT Refer the Sectin 2 3 1 for the way to declare variables and the figure below shows defined variables Variables Name Dim Attrib fo Global variables Bool 01 BOOL Bool 02 Bool O35 Bool 04 Bool O05 Bool Ob Bool OF Bool 08 Bool 09 Bool 10 Bool 11 Bool 12 Bool 13 Bool 14 Bool 15 Bool 16 i ax Spb Initvalue User Tag Description gt Bool 16 Status Bool 16 BOOL Status DIMT See eee eee eee eee 4 Id Drivers Wariables lt 3 Inthe IO Drivers window like the figure below drag all required variables in the Variables Area i e Boo
16. Master Request x Description cs Slave Unit The Net ID fixed to 1 of the Slave device i e XV board MODBUS Request lt 2 gt Read Input Bits Ail _ lt 3 gt Read Holding Registers lt 4 gt Read Input Reaisters LO vika minale emil bik Data block Base address Start from addr 1 and read eight data Nb items Activation Periodic On call C On change Misc Timeout 100 z An exception occurrs if no Nb trials t respond for 100 ms 2 As the figure below mouse double click the 2nd data block i e lt 15 gt Write Coil Bits to view the setting window 3 As the figure below mouse double click the 3rd data block i e lt 2 gt Read Input Bits to view the setting window Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 32 Workspace J 10 Drivers H E E demo_X 308_3 E El Mg MODBUS Master A SF Name Tyre Lj Exception programs ga ATU COMO 115200 N 8 1 AV308_Al INT Gal Programs H t lt 4 gt Read Input Registers 1 1 8 AV308_status DINT 7 ae Main B BEI lt 15 gt Write Coil Bits 1 1 4 as AVS08_DO_O BOOL Watch for debugging H B lt 2 gt Read Input Bits 1 33 40 v xv300_DO_1 BOOL Al Soft Scope LD nisl veo 1 Symbol Operation Mask Storage Offset 0 1 2 3 xV308_DO2 BOOL xV308_DO3 BOOL wi Raitt l fe X 308_D0_0 Data exchange FFFF Default i Y e XV
17. Word_4 Data exchange 0 FFFF Default Word 5 Data exchange OL _ kif Prefault 7 Word 6 Data exchange o FFFF Default Long_1 Data exchange 0 FFFF Real_1 Data exchange 0 FFFF DWORD Low High Status 2 Error report FFFF Default oO i4 gt 10 Drivers Variables Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 9 vi 6 As the figure below select the Word_1 to Word_6 and then click Iterate property to set their Offset value From O By 1 Operation Offset Mask Storage Data exchange s FF Defa A Data exchange Data exchange Word _4 Data exchange Word 5 Data exchange Word 6 Dataexchange fa lt s Results 4 i Bl 10 Drivers Variables OK WI _Cancel 7 Next double click the Offset field of Long 1 and Real_1 items and set their values as 6 and 8 then press Enter key to complete the settings Note One 32 bit data requires two Modbus addresses For instance the Offset value of Long 1 is 6 and the next Offset value must be set to 8 i e Real_ 1 Symbol Operation Offset Mask Storage Word 4 Data exchange 3 FFFF Default A Word 5 Data exchange 4 FFFF Default Word_6 Data exchange 5 FFFF Default Data exchange Data exchange Status 2 p 4 gt 10 Drivers Variables Error report EJ Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 10 5 1 4 Write AO Data 16
18. XV310_DL3 BOOL y g B Name Value ARE amp Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 35 MODBUS Master Request Request Description Slave Unit MODBUS Request lt 1 gt Read Coil Bits lt 2 gt Read Input Bits lt 3 gt Read Holding Registers LeAnn Nand Terk Nanickonen Note When using the XV310 Data block Base address to read DI data the base address must be set to 33 Nb items Activation Periodic On call On change Misc Timeout Nb trials The Net ID fixed to 1 of the Slave device i e XV board Start from addr 33 and read four data Read every 50 ms An exception occurrs if no respond for 100 ms 4 Mouse double click the 4th data block i e lt 16 gt Write Holding Registers Sacer IO Drivers HP oO demo_X 310 iB 1 MODBUS Master ASF Name Type Exception programs ce Bid ATU COM0 115200 N 8 1 AVS1IO AL 1 INT A S L Programs d H A lt 4 gt Read Input Registers 1 1 4 RV31I0_AlL2 INT 3 ae Main B H B lt 15 gt Write Coil Bits 1 1 4 XV310_AL3 INT J E Watch for debugging H B lt 2 gt Read Input Bits 1 33 36 xY310_A0 0 INT AE Soft Scope g H w 8 lt 16 gt write Holding Registers 1 33 34 v XV310 AQ 1 INT aE es Initial values Symbol pere K offset Mask Storage AV3I0_status DINT w l ea _ V310_A0_0 Data exchange 0 FFF Defaut OSS 2 Sea
19. bit 1 Using the same way in the Section 5 1 Step 4 to create the 4th data block and completing all the following settings in the MODBUS Master Request window and then click OK MODBUS Master Request i ehiccorample in this example Request a p a Slave Unit Description Enter the Net ID of the Slave device Slave Unit 3 e g the Net ID is 3 q MODBUS Request b MODBUS Request Select kets Read Input Registers FT Le lt 6 gt Write single holding register 1 lt 6 gt Write single holding register i a oe hs Lats Wika nil Dib Start from 1 by default Data block Refer the Section 5 1 1 to change it c Vis address 1 d On change In case of a write request Nb teme means that the request is activated each time any variable changed ows 5 Refer the Section 5 1 1 for derails Periodic ms 0 gt Gi E m e Timeout Set a timeout value J On call fon error E O On change When time out occurred it will show fice the defined error code The e Nir 250 ms recommended value for the Modbus S z RTU ASCII device is 200 to 1000 ms In Nb trials t this case the value is 250 ms 2 Next open the Variables window and then declare variables that are available for the program SESAN lO Drivers Ba Test_01 i sie MODBUS Master Name Value Ce C Exception programs a a RATU COM2 9600 N_ 8 1 Request lt 6 gt Write single
20. ee l 111_status DINT v gt z z Sia I Note The Offset value is starting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address MODBUS Master Request Request Description Slave Unit ry The Net ID fixed to 1 of the Slave device i e XV board MODBUS oie arises Pts heats ot lt 2 gt Read nput Bits lt 3 gt Read Holding Registers L PA ai Masd Tem Ik Maniek ve Data block Base address 1 Start from addr 1 and A pa Nb items I read one data Activation Periodi 50 O On call On change Misc BE saat An exception occurrs if no tb trials respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 25 5 1 10 Connecting the XV116 5 DI 6 Relay The XV116 is a 5 channel digital input and 6 channel relay output board This section provides a Win GRAF demo project demo_XV116 zip First go to Section 5 1 6 for the information of the XV Board before using it Demo description This demo added two data blocks One is used to read 5 DI data and the other is used to write 6 DO data 1 Mouse double click the 1st data block i e lt 2 gt Read Input Bits to open the setting window Workspace IO Drivers HR C demo _X 116 E Mp MODBUS Master j T Name Type D H Exception programs a Ge ATU COMO 115200 N 8 1 3 116_DI_0
21. gt Write single coil bit 2 1 1 Address 1 a Watch for debugai kani B lt 4 gt Read Input Registers 3 1 10 Nb Item 2 ia AS Soft Scope z H A lt 6 gt Write single holding register 3 1 1 Activation On Change L 5 Initial values rE sedi CM ahs eee ee Seed Period ms 0 9 4 Binding Configuration i Period on error O 3g Global defines 5 Timeout ms 250 t Variables Tips Number of trials 1 Press F1 key to view the details on the MODBUS Master settings Description Double click it to open this window Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 13 Declaring a Real variable Refer the Appendix A for details on data type and ranges refer the Section 2 3 1 for operations Real Write _1 REAL Used to write AO data 32 bit After completing the setting the defined variable shows as below T Name Type S Atti Syb Init value User Tag Description Real Vvrite_1 REAL T mimi bivas_ Variables ig 3 Inthe IO Drivers window drag variables Real_Write_1 and Status that created in the Section 5 1 1 from the Variables Area to the Symbol Area in the 5th data block Note The Status is an array variable When you drag Status into the Symbol Area it will show Status 0 to Status 4 simply press Del key to delete Status 0 to 3 4 Set the Operation field of the Status 4 as Error report that m
22. log_report G remote_config G system CE PlatfornBase_ _arm He CrdParser cll Commu cll ef OCON Utility Pro CE 200 exe t 1OModule cll PACNET all a 3 Platform Protocol dll as Utility cl 3 Click the COM Port button to set the COM Port as COMO set the Baud Rate as 115200 and set the Format as N 8 1 and then click OK DCON Utility Pro 7 0 0 0 for CE7 ami WwPrs731 Minacaoa o End Address Timeout oo jms CON 8 2 OE 8 1 0 8 1 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 16 4 After clicking the Search button the XV Board e g XV308 will show in the window Then double click this item to get into the setting window DCON Utility Pro 2 0 0 0 for CE arm WP5231 E Start Address o End Address w laa pee pers lae eea ee ee xv308 i ih 115200 Disable N 8 1 Modbus RTUJ8 AI 8 Uni Double click COM O N 8 1 Address 1 01h Baud Rate 115200 Checksum Disable 5 Inthe Configuration tab set the Data Format as Engineering Format recommended setting set the Fast Mode as Fast Mode and uncheck the Reverse DI State INIT XV3O06 Firmware A102 eee d Configuration PALAI Alarm DC Alarm Host WDT DI About ProtocolfINit Modbus RTU 7 Address 1o 01H Baud FateINIT 115200 7 Parity INIT 3 Ho 1 None Parit Checksum INIT Disable Data Format Engineering Forn x Fast Mode Fast Mode
23. once when data is changed e Timeout Set up the max time to wait for the response If exceeds it that means an error For Modbus TCP UDP recommended 1000 3000 ms this example is 1000 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 39 6 Open the Variables window set up the variables want to use Workspace IO Drivers Ep Test 2 E My MODBUS Master Name Value E aj LJ Exception programs g G p Open MODBUS 192 168 1 100 502 Request lt 4 gt Read Input Registers E I Programs 3 lt 4 gt Read Input Registers 1 7 4 Slave Unit 1 oe ak Main B Address 1 La Watch for debuggi GS Nb Item 4 t ie BB Soft Scope ir Tips Activation Periodic o SS Initial values F press F1 key to see the setting Period ms 1000 9 4 Binding Configuration method for MODBUS Master Period on error 15000 sen g Global defines a Timeout ms 1000 fa Variables E Number of trials 1 E Types B Description Double click to open Please follow the table to set up 4 WORD 16 bit variables refer Section 2 3 1 Word_1 Word_4 WORD se Used to read the Al data 16 bit DINT Used to record the read write status Refer the Appendix A to see the data types and range of the variables After setting up it is as the picture below Variables TY Name _ Type Dim Attrib Syb Initvalue User Tag Description Status DINT 0 4 LJ Word 1 WORD LJ Word 2 WORD LI Word 3 WO
24. the Modbus TCP Master to connect the ET 7000 modules The maximum recommend amount of the connecting ET 7000 modules depends on the PAC model such as the XP 8xx8 CE6 WP 5238 and WP 5248 recommends a maximum of 200 the WP 8xx8 VP 25W8 and VP 4138 is recommended that no more than 32 For more information about the ET 7000 series products please visit the website http www icodas com root product solutions remote io ethernet io ethernet io selection html Use Internet Browser to Set the ET 7000 Modules Before the first time using the ET 7000 you must set up the ET 7000 by using the Internet Browser When the ET 7000 shipping from the factory the settings are IP address 192 168 255 1 Mask 255 255 0 0 Please set the IP of your PC in the same network e g set the IP to 192 168 255 100 Mask 255 255 0 0 then open the browser such as IE and enter the IP of the ET 7000 to connect it Notice The Dip Switch on the rear of the ET 7000 must stay in the Normal position gt PET 7000 Web page Windows Internet Explorer m a in tthe PET 70182 AUaARSS 192 168 2551 PRAHAA EWIE es HEITAR ae ek RRA A SRB R EET EHA l Piss GRASS O PSS pE e Username Admin Password Admin Case sensitive i F252 88 0 he P G Admin fobotobok sche Pea ISR Huit Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 42 Click Configuration gt Module I O Settings t
25. 0 BOOL S L Programs B agy i lt 2 gt Read Input Bits 1 1 5 p 116 BlO1 BOOL i a Main mE H B lt 15 gt Write Coil Bits 1 1 6 z xv116_DI 02 BOOL H E Watch for debugging a atch for debugging Symbol Operation Mask Storage AY116 DIOS BOOL fill Soft Scope Fant XWV116 DI 04 BOOL l et wt XV116_DI_00 Data exchange 0 FFFF Default L E Initial values X 116_ status DINT 912 Binding Configuration 2v116_DI1_01 Data exchange 1 FFFF Default WHE DLO COOL Se Global defines a s 116_DI_02 Data exchange 2 FFFF Defaul sient egi A Variables S 116_DI_03 Data exchange 3 FFFF Default gt 4 XV116_DI_04 Data exchange 4 FFFEM Default _Name Yalue Types 116_status Error report F Default oro Note The Offset value is starting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address Moreover if you set the Operation as Error report the Offset value for the mapping variable Date Type DINT must set to 0 MODBUS Master Request Request Description slave Unit 1 5 The Net ID fixed to 1 of the HODBUS Request Slave device i e XV board lt 1 gt Read Coil Bits K Data block z Base address 4 Nb items 5 Start from addr 1 and 7 read five data Activation 5 s A E Periodic 50 ms 0 O On call i On change Read every 50 ms Misc p d Timeout 100 z An
26. 00 3 xv111_DO_D1 xV111_DO_02 xV111_D0_03 0 Default A ni Mir 1 5 Note The Offset value is starting 3 from 0 and the Modbus address 4 i 5 of a variable is equal to this value E plus 1 Base address 1 f erer ray a8 8 FFFF Default W11 1 DO 12 FFFF Default w111 D 04 3 FFFF Default W141 1 DO 1 4 FFFF Default w11 1 DO 15 FFFF Default XV111_status FFFF Default lt FFFF Default FFFF Default The Net ID fixed to 1 of the Slave device i e XV board Start from addr 1 and write 16 data fon error Write only when data changed An exception occurrs if no respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 24 BOOL DINT Name Value M gt 2 Mouse double click the 2nd data block i e lt 1 gt Read Coil Bits to open the setting window ure E demo_X 111 H Exception programs ct LJ Programs at Main SL Watch for debugging All Soft Scope L E Initial values Binding Configuration 3g Global defines fat Variables aan Types WEE aN MODBUS Master lO Drivers X111 D010 BOOL A gh dip RTU COMO 115200N 81 E Hee lt 15 gt Write Coil Bits 1 1 16 xv111_D0_11 BOOL LE y 9 lt 1 gt Read Coil Bits 1 1 1 t xXv111_ D0 12 BOOL E g Error report V 111_status re x 111_DO 13 BOOL F Symbol Operation Offset Mask Storage aa soins XV111_status Error report 0 FFFF Default en
27. 0_0 Data exchange 0 FFFF Default E EJ Initial values AV308 DO 4 BOOL ba ei z xv 308_D0_1 Data exchange 1 FFFF Default BRR 3 Binding Configuration V308 DOS BOOL fg a amp 308_DO_2 Data exchange 2 FFFF Default En D 3g Global defines c5 Xv306_D0 6 BOOL ts a Variables 308_DO_3 Data exchange 3 FFFF Default W308 D 07 BOOL A Tubes as x 308_DO_4 Data exchange 4 FFFF Default pe xe bai E xVv308_D0_5 Data exchange 5 FFFF Defaut ta 308_D0_6 Data exchange 6 FFFF Default Name Value xv 308_D0_7 Data exchange FFFF Default MODBUS Master Request x lt Request Description Slave Unit The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board OR RS 25 gt Write single coil bit A lt 6 gt Write single holding lt 15 gt Write Coil Bits ates Usikn Unldina Nanickave N Write DO data Nb items 8 Start from addr 1 and write eight data Data block Base address Activation Periodic On call fon error On change Write only when data changed Misc z Timeout 100 An exception occurrs if no Nb trials t respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 31 Demo description demo_XV308_ 3 This demo added three data blocks the 1st one is used t
28. 308_D0_1 Data exchange FFFF Default ara k paR y 39g a al delmes Gp xv308_D0_2 Data exchange FFFF Default gt B me g ei ie Data exchange FFFF Default EEEE r Workspace 10 Drivers ra C demo_X 308_3 E Mg MODBUS Master ame Type Exception programs a Elway ATU COMO 115200 N 8 1 AV308_DO_1 BOOL Programs q Fl lt 4 gt Read Input Registers 1 1 8 7 AYSUB DO 2 BOOL O ho E Man B eB lt 15 Write Coil Bits 1 1 4 v306_D0_3 BOOL von C Watch for debugging 2 H B lt 2 gt Read Input Bits 1 33 40 Avona D4 BOOL _ at State g Symbol Operation Offset Mask Storage eee Wee asta 1 Initial Wales svaga DI Bi BOOL i 914 Binding Corfigurat F ava0e_Dl_4 Data exchange 4 FFFF Default O08 DIF BEDOL I vee anes X08 DIS Data exchange 5 FFFF Default x o A a j T oe aw a0 Dl 6 Data exchange G FFFF Default Sll Ts iai j ge 308D Data exchange 7 o FFFF Defaut Name Value ananasa Des lt im s iii MODBUS Master Request 2 lt 15 gt Write Coil Bits Write 4 DO dat Request rite ald Description Slave Unit aoo MODBUS Request lt 5 gt Write single coil bit A lt 6 gt Write single holding regi an 1 lt 15 gt Write Coil Bits Let es UWeike Unldinan Oni A The Net ID fixed to 1 of the Slave device i e XV board as OK Base address 1 r Start from addr 1 and Nb items 4 E o l write four data HODBUS Ma
29. Chapter5 Modbus Master connecting to Modbus Slave Devices This chapter lists the way to enable the Win GRAF PAC as a Modbus Master to connect Modbus RTU ASCII Slave or Modbus TCP UDP Slave devices If you want to use one XV board in the WP 5xx8 refer the Section 5 1 6 to Section 5 1 11 5 1 Enabling the Win GRAF PAC as a Modbus RTU ASCII Master Application Diagram Win GRAF PAC Recommend to connect Modbus RTU ASCII Master Max 32 devices port i 8142iW O i 8144iW XPAC XP 8xx8 CE6 Modbus RTU ASCII Slave Device WinPAC WP 8xx8 tM Series I O Modules WP Sxx8 ViewPAC VP 25W8 VP 4138 Modbus RTU ASCII Slave Device RS 422 485 Modules i 8142iW 2 ports i 8144iW 4 ports Refer the P1 1 to view all PAC models Follow these steps 1 Mouse click the Open Fieldbus Configuration tool button to open IO Drivers window Win GRAF Test 01 File Edit View Insert Project Tools Window Help ala i NE eE EESE nite GE js D aA Workspace 10 Drivers gt T aan S E Tes 0 B Mame Yale vee Exception programs Ai Global variables Ca El Programs d la RETAIN variables cow OE Main O Main 7 EI Watch for debugai T pOnBadindex Soft Scope ta oOnDivZero w see lt Initial values gt a E Ya Binding Configuration oe e oo Sg Global defines oe fa Variables iS ll w A La
30. Default FFFF Default FFFF Default FFFF Default Defa Bool_10 Bool_11 Bool 12 Bool 15 Bool_14 Bool 15 Bool 16 Status Bool 14 Data exchange Bool 15 Data exchange Bool 16 Data exchange Status 0 Data exchange lt The Offset must be O when o rivers selecting the Error report A col E Results Error report B E On going request 4 10 Drivers Wariat SUCCESS counter Fall Courter Build Retry counter Command one shot Command enable Reset counters You can also press F1 in this IO Drivers window to see details on Modbus Master Configuration o ooo The communication is OK PB Data Parity Error MODBUS function not supported Invalid gateway path Te mooausserertaiue 12o feae 6 seneris busy O aa 252 communication aor Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 5 5 1 2 Write DO Data 1 Using the same way in the Section 5 1 Step 4 to create the second data block and completing all the following settings in the MODBUS Master Request window and then click OK MODBUS Master Request In this example ates p a Slave Unit ikiii o Enter the Net ID of the Slave device slave Unit 2 lt a e g the Net ID is 2 MODBUS Request b MODBUS Request lt 35 gt Read Holding Registers L Select lt 5 gt Write single coil bit z4 gt Read Input Registers
31. IO Drivers i Test_01 f Mg MODBUS Master H Exception programs ge ATU COM2 9600 N 8 1 Request lt 4 gt Read Input Registers Sy Programs lt 2 Read Input Bits 1 1 16 Slave Unit 3 T Main B lt 5 gt write single coil bit 2 1 1 Address 1 5 0 Watch for debuggi BD BES Sea liaet eee Nb item 10 W Soft Scope Activation Periodic Initial values Period ms 1000 id Binding Configuration etiod on error 95 Binding Cont Ls Period 15000 3g Global defines 6 Press F1 key to view the details Timeout ms 250 j 4 Variables on the MODBUS Master settings Number of trials 1 E Types Double click it to open this window Follow the table below to add six Word 16 bit one Double integer 32 bit and one Real 32 bit variables Refer the Section 2 3 1 for declaring variables Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 8 Word_1to Word 6 WORD Used to Read Al data 16 bit DINT Used to Read Al data 32 bit REAL Used to Read Al data 32 bit Refer the Appendix A for details on data type and ranges After completing the settings the defined variables show as below Variables ALAR Ff Name Type D Y Attrib Syb Initvalue User Tag Description Long 1 DINT T A Word 1 WORD LJ Word 2 WORD LJ Word 3 WORD E Word 4 WORD LJ Word 5 WORD E z Word 6 WORD LJ Real_1 REAL E F lt s gt Drives Variables 3 Inthe IO Drivers window drag
32. I_13 Data exchange FFFF Default Pi v 110_DI_14 Data exchange FFFF Defau l SS ial a W110 DI 15 Data exchange FFFF f tault Name Value 110_status Error report Default Note The Offset value is starting from O and the Modbus address for variables is equal to the Offset value plus 1 Base address Moreover if you set the Operation as Error report the Offset value for the mapping variable Date Type DINT must set to O MODBUS Master Request Request z Description ral i The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board J AE AG ned ce z1 gt Read Coil Bits p m ff r Data block Base address 1 Nb items 16 Start from addr 1 and read 16 data Activation Periodic 50 on call C On change Misc 7 Timeout 100 a An exception occurrs if no Nb trials t j respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 23 5 1 9 Connecting the XV111 XV111A 16 DO The XV111 XV111A is a 16 channel digital output board This section provides a Win GRAF demo project demo_XV111 zip First go to Section 5 1 6 for the information of the XV Board before using It Demo description This demo added two data blocks One is used to write 16 DO data and the other is used to read the DO status 1 Mouse double click the 1st data block i e lt 15 gt Write Coil Bits to o
33. NT megg aoa dome SBI 0308_Al_3 Data exchange 3 FFFF Default Re G Variables gy lt v308_AL4 Data exchange 4 FFFF Default RVI IT ETs XV308_AI_5 Data exchange 5 FFFF Default LO NT Th XV308_AI_E Data exchange 6 FFFF Dejar Ta xv308_ Al 7 Data exchange ri FFFF Default Value V308_ status Error report 0 F Default f gt Note The Offset value is starting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address Moreover if you set the Operation as Error report the Offset value for the mapping variable Date Type DINT must set to O MODEHUS Master Request Ed Request Sere itn 1o The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board lt 2 gt Read Input Bits lt 3 gt Read Holding lt 4 gt Read Input Registers AE Leike areal r bib Data block Base address Start from addr 1 and read eight data Mb items Activation Periodic on call On change Misc Timeout An exception occurrs if no Mb trials respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 28 2 Mouse double click the 2nd data block i e lt 2 gt Read Input Bits to open the setting window Workspace 4 demo_X 308_1 al E Exception programs G C Programs a Watch for debugging toll Soft Scope L E Initial
34. RD LI Word 4 WORD a g gt lODrivers Variables a n 7 Inthe I O Drivers window drag the variables Word_1 Word_4 and Status from the Variables area to the Symbol area of the Data Block Notice This example shows Status is an Array variable When drag it to the Symbol area it will become Status 0 Status 4 please press Delete key to delete Status 1 4 IO Drivers E Mg MODBUS Master TY Name a S Open MODBUS 192 168 1 100 502 Request lt 4 gt Read Input Regis A F H 1B lt 4 gt Read Input Registers 1 1 4 Slave Unit 1 es WORD y Address 1 v7 Word_2 WORD Operation Offset Mask Storage Range Tl WORD Data exchange 0 FFFF Defaut KS WORD Data exchange 0 FFFF _ _Detauk 7 DEE ns PR _ Dataexchange FEFF Default Val Data exchange O FFFF Defaut Name Value Data exchange 0 FFFF Default Ral gt 10 Drivers Variables Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 40 8 Set the Operation of the Status 0 to Error report If reading data fails its value is an Error Code when reading data OK it will reset to O Press F1 key to view the setting descriptions for the Modbus Master In the title of Status and command variables you can find the details about this commend and Error Code 9 Select Word_1 Word_4 an
35. S setting item that includes two Modbus Master Request for using to read the DI and Al One Error report is used to check the IP connecting status so please add two DINT variables in the Variable area e g ERROR_STATUS11 ERROR_STATUS21 and double click the Error report to assign variables IO Drivers HE Mp MODBUS Master T Na e O ee E gs Open MODBUS 192 168 1 100 502 boo_3 BOOL hd E ng B lt 2 gt Read Input Bits 1 1 3 DINT_1 DINT g _ oe B lt 4 gt Read Input Registers 1 1 5 DINT 2 DINT Ea ER Open MODBUS 192 168 1 101 502 DINT_3 DINT E i lt 2 gt Read Input Bits 1 1 3 DINTA DINT H 0 boo DINT 5 DINT 1 boo_2 ERROR_STATUS1 DINT E ce z ERROR STATUSI1 Ba D E Plead Inga Regione 1 1 5 ERROR STATUS21 a 40 1 DINTI i E 2 3 DINT_2 Name Value n m 4 5 DINT_3 A 46 7 DINT_4 48 9 DINT 5 MODBUS ariable Symbol Me MODBUS Slave ERROR_STATUS21 EN eet ENE Error report DINT_5 B ERROR_STATUS1 Ay ERROR_STATUS2 O Data exchange B ERROR_STATUS11 x TERROR STATUS21 Offset o e Variables al Mask F ie U Local variables only peas paral _ Hide FB instances Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 52
36. T ET 0182_Al_ 06 Data exchange 6 FFFF Default ETA ALO 5 INT ET 018z_Al_O Data exchange ti FFFF Default EA ha Aerts ET 0182z_Al_08 Data exchange 8 FFFF Default ET70192_Al_09 Data exchange 9 JFFFF Det ee ee ET 0182_status Error report 0 F Default Name Value lt SSS Notice 1 The value of the Offset starts from O but the Modbus address of the variable is the Offset value plus 1 Base address 2 If set the Operation to Error report the Offset value of the variable Data Type DINT must set to 0 3 If Al range is 32768 32767 please declare the data type as INT for the variable MODBUS Master Request Request Description The Net ID of the Slave Unit Slave Unit ET 7000 is fixed to 1 MODBUS Request lt 2 gt Read Input Bits A lt 3 gt Read Holding Registers 1 lt 4 gt Read Input Reaisters Read DI data WO vika nimala mil bib Data block Start from the address 1 Base address 1 to read 10 items Hb items 10 Activation Read once every 50 ms Periodic 50 ms s000 If error occurs wait 5 s to fy C2 On cal on error send the next commend On change Misc Timeout 500 ms r If no responds in 500 ms means error Nb trials p Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 47 5 3 Connecting the Modbus TCP Slave device has two IP addresses The previous section lists the w
37. _0 is set to TRUE Then this Act_0 will auto reset to FALSE The Command Enable means the request is sent continuously as long as the Act_0 is TRUE So users can set the Act_0 to FALSE to stop sending command IO Drivers H g E Mp MODBUS Master Name Value Y Name Type Dim Att co as ATU COM2 9600 N 8 1 Request lt 5 gt Write single coil bit Bool_11 BOOL 2 AB lt 2 gt Read Input Bits 1 1 16 Slave Unit 2 Bool 12 BOOL E eae dias ae eaea ia M Address 1 Bool 13 BOOL oO Nb ltem 1 Bool 14 BOOL B Activation On Call Bool 15 BOOL rE Period rms 0 Bool 16 BOOL Period on eror 0 Status DINT 0 4 eb Timeout ms 250 DOO e BOOL Number of trials 1 Act 0 Pi BOOL at Description Suet T i s Symbol Operation Offset Mask Storage _ Fan Name Male Status 1 Error report 0 ros EFEF Defanit poo atetxthange 0 FFFF Defaut Act_0 Command fone shot lo FFFF Default lt Data exchange aan opier dag eo ae a Error report Set only Or going request Succes counter Fail counter Retry counter ae Command enable Reset counters Slave last error Slave last eror date stamp Slave last error time stamp Clava last rasak daka staran t Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 7 5 1 3 Read Al Data 1 Using the same way in the Section 5 1 Step 4 to create the thir
38. a f g 4 V 116_RAL_04 Data exchange 4 FFFF Default p 8 V116_RL_05 Data exchange 5 FFFF Defaut _Name VYaue e m x MODBUS Master Request 4 Request Description alave Unit The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board 5 1 11 Connecting the XV308 8 Al 8 DIO The XV308 is a 8 channel analog input and 8 channel digital input output board This section provides three Win GRAF demo projects demo_XV308_1 zip demo_XV308 _2 zip and demo_XV308_3 zip First go to Section 5 1 6 to view the XV Board instructions and then configure each Al channel by using DCON_Utility_ Pro _CE_200 exe Demo description demo_XV308_ 1 This demo added two data blocks one is used to read 8 Al data and the other is used to write 8 DI data 1 Mouse double click the 1st data block i e lt 4 gt Read Input Registers to open the setting window Workspace IO Drivers i 7 Xx demo_X 308_1 E amp M MODBUS Master F Name Type H _j Exception programs a ATU COMO 115200 N 8 1 5 gh Global variables J L Programs eS o ag f lt 4 gt Read Input Registers 1 1 8 XV306_AIL 0 INT a Main B H B lt 2 gt Read Input Bits 1 33 40 XY308_ Al 1 INT Watch for debugging gi x 308_Al_ 0 Data exchange 0 Default pi E ssid Ge xVv308_AL1 Data exchange 1 FFFF Default AYI ALA INT Ya Binding Configuration 9 308 Al_2 Data exchange 2 FFFF Default AYSU AS I
39. ad eight data Activation Periodic 50 O On call On change Read every 50 ms Misc Timeout 100 i An exception occurrs if no Nb trials 1 respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 29 Demo description demo_XV308 2 This demo added two data blocks one is used to read 8 Al data and the other is used to write 8 DO data 1 Mouse double click the 1st data block i e lt 4 gt Read Input Registers to open the setting window Workspace IO Drivers i 7 Xx C demo_X 308_2 E Mp MODBUS Master T Name Type H C Exception programs cs 3 ATU COMO 115200 N 8 1 5 fa Global variables GL Programs aa f lt 4 gt Read Input Reaisters 1 1 8 xXV308_AL0 INT a Main B B lt 15 gt Write Coil Bits 1 1 8 z xV308_Al1 INT Miep n debugging Symbol peon E E AY308_ Al 2 INT came xV 308_Al_0 Data exchange 0 FFFF Default we S T Initial values Be xv308_AL1 Data exchange 1 FFFF Default GALA INT Ya Binding Conhiguration 3308 Al 2 Data exchange 2 FFFF Default ANOS INT aha AoA eles GPI 4v308_Al_3 Data exchange 3 FFFF Default line Ee G NORAS en x 308_Al_ 4 Data exchange 4 FFFF Default AVIOO AL INT ie ee XV308_Al_5 Data exchange 5 FFFF Default 308_Al_6 Data exchange 6 FFFF Dejar i u gt xV308 Al 7 Data exchange FFFF Default _ Name Value lt AE i a Note The Offset value is s
40. ay to enable the Win GRAF PAC as a Modbus TCP Master device and lists the way to read write Modbus TCP Slave device This section will list the way to create the redundant Modbus Master Request when one IP of the Modbus TCP Slave devices is disconnected the other IP can still normally to be read written data Application Diagram Intelligent Remote Redundant Ethernet I O Expansion Unit iDCS 8830 F 8K Series I O Modules Win GRAF PAC WP 8xx8 RS 408 LAN2 Modbus TCP Slave Modbus TCP Master Follow The Steps 1 Click the Open MODBUS and then click the menu bar Tools gt Export 2 In the Export Assistant window click Export some project items XNL and Next ae Help ee oOo 9 amp We BRE GA Eao GBs File Edit View Insert Proj as d SOBRE FiO Drivers m MODBUS Master Name Value Open MODBUS 192 168 1 100 502 Mode Open MODBUS import aE TESTPIET Address 192 168 1 100 Em 0 boo_1 Port 502 Conert Program i 1 boo_2 Reconnect after error E N E 2 boo 3 Slaves diagnostics Eror report ERROR_STATUS1 Delay between requests ms 10 Ey Binding Configuration B lt 4 gt Read Input Registers i a Se enaki Se Mam 01 DINT_1 Each Modbus TCP Master can only set to ft 5 mg Export Assistant connect one Slave IP address so here we will show the way to copy and generate the second Modbus Master to connect the second Slave IP ad
41. d click Iterate property to set up the Offset value From 0 By 1 IO Drivers E Mo MODBUS Master Name Value BA Sg Open MODBUS 192 168 1 100 502 Request lt 4 gt Read Input Regist LA B lt 4 gt Read Input Registers 1 1 4 Slave Unit 1 H Address 1 _ Nb Item 4 E Activation Periodic F Period ms 1000 Period on err 15000 c5 Timeout ms 1000 Number of tri 1 Description Operation Offset Mask Storage T Range fl Error report FFFF Default Data exchange Data exchange Data exchange Results ___Dataexchange 4 gt a 10 Drivers Variables KER Cancel The setting steps of Modbus Master Request for both Modbus Master RTU ASCII Port Section 5 1 and Modbus Master TCP UDP Port are the same Now we have finished the setting to read Al data Please click the item number link to the Section 5 1 1 5 1 5 in the table below for the setting steps to read write other data 1 2 Read Input Bits Read DI data 5 Read Input Registers Read Al data Write single holding register Write one AO data 16 bit Write single coil bit Write DO data 5 Write Holding Registers Write multiple AO data 16 32 bits Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 41 5 2 1 Connecting ET 7000 Series I O Module ICP DAS ET 7000 is a series of I O module supporting Modbus TCP Slave protocol The Win GRAF PAC can enable
42. d data block and completing all the following settings in the MODBUS Master Request window and then click OK MODBUS Master Request In this example Request a Slave Unit Description Enter the Net ID of the Slave device Slave Unit 3 Sancel e g the Net ID is 3 MODBUS Request b MODBUS Request lt 2 gt Read Input Bits N Select lt 4 gt Read Input Registers lt 3 gt Read Holding i T d Base address Start from 1 by default En WMvika min nle amil bik Data block Q bass aidais Refer the Section 5 1 1 to change it Nb items fb items The number of Al signals to write Activation In this case the number is 10 Periodic jms 15000 i F Pa l i Periodic Refer the Section 5 1 1 O On call on error Periodic Section 2 1 4 On change Sending the request periodically This option can not apply 7 to the Read request Timeout on error means the next sending Misc In this case to send once per second time when an exception occurred Nb trials e g 15 seconds e Timeout Set a timeout value When time out occurred it will show the defined error code The recommended value for the Modbus RTU ASCII device is 200 to 1000 ms In this case the value is 250 ms 2 Next open the Variables window and then declare variables that are available for the program Workspace
43. dress Welcome to the Export Assistant What do you want to export lt Export a pete silos tied ion S000 A 8000 z Cancel Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 48 3 Check the Configurations and uncheck all other items and then click Next Export Assistant Select items to be exported C Programs and UDFBs Main C pOnBadIndex J pOnDivZero pShutDown J pStartup Dale bis Configurations Ba Tap MODBUS Master export referenced global variables 4 Browse a suitable path default in C Win GRAF Projects and named for the file e g Master_2 xml and then click Save button Finally click Finish to export the settings GRR OD O Projects Demoli GICPDAS template v P a fiiin Export Assistant RATI p Export is complete SNEIN p LATE FERUD eers eses eens ee eat ereeeeeeeeeteee Finish Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 49 a 5 Using the Notepad software to open the file xml that exported in the step 4 and then copy the content between the lt modbus gt and lt modbus gt DP Master 2xml PE Seles BRE RPE Ms WAO H lt types gt Al lt types gt lt Variables gt lt Vargroup name Global kind GLOBAL gt lt vargroup gt lt vargroup name Retain kind RETAIN gt lt vargroup gt lt varlables gt ai maa emndbies lt
44. eans this variable will be set to an error code when a read error occurs or reset it to O when a read request is successful Press the F1 key to see the description of the Modbus Master Configuration and move to the title Status and command variables to know related commands and error codes 5 The Real_Write_1 is a 32 bit data and required two Modbus addresses So set its Storage field as DWORD Low High IO Drivers i 7 Xx B E 1 MODBUS Master Name Value TY Name _ Type a jg ATU COM2 9600 N 8 1 Request lt 16 gt Write Holding A Bool 15 BOOL A J H I lt 2 gt Read Input Bits 1 1 16 Slave Unit 4 Bool_16 BOOL E H B lt 5 gt Write single coil bit 2 1 1 Address 1 DO O BOOL a lt 4 gt Read Input Registers 3 1 10 Nb Item 2 Long 1 DINT g H H lt 6 gt ai single holding register 3 1 1 Activation On Change EE HTA rE ral pete ats geet eee da aera Period ms 0 Real_VVrite_1 REAL Period on err 0 Status a c5 Timeout ms 250 J V ord_ Number of tri 1 Pia Word 2 WORD g Description 17 en a SATAR Symbol Operatio i Real write _1 Tarr echange j lt m gt gt 10 Drivers Variables Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 14 5 1 6 How to use the XV Board The XV board belongs to the Modbus Slave I O board Before using the I O board users must plug it into the WP 5xx8 and then enable the WP 5xx8 as a Modb
45. er On and Set Safe Value button do not choose any DO Status in the DO Alarm tab X 308 Firmwvare A102 Confi iguration ALAI Alarm DO Alarm Host WOT DI DI About DO Status Read DO Set Power On Set Safe value Do not choose any DO Status Read Power ON Value Then click the Set Power On Read Safe Value and Set Safe Value button Alarm Status a H 5 H 6 Hi _ _ L 5 L 6 7 Finally back to the Configuration tab and click the Set Module Configuration button Step5 to finish the Al AO configuration and then close the DCON_Utility_Pro CE _200 exe In addition click the Win_GRAF_WP_5238 on the desktop to run the Win GRAF driver like Step 1 Follow the similar way like the steps above to configure the Al AO of the XV310 XV310 Analog Input 2 5 V l 20 mA 07 4 mA 20 mA 10 V 5 V OA 1 V l 20 mA i 1A 0 mA 20 mA Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 19 Note 1 For easy to use recommended to use the data format Engineering E g 2 5 V will show as 25000 to 25000 and 4 mA to 20 mA will show as 4000 to 20000 2 When using these Type Code 0 1 06 07 OD 1A please check if the position of eight hardware jumpers on the XW board are correct www icodas com root product solutions datasheet hmi_ touch monitor XV310 pdf XV310 Analog Output 0 mA 20 mA
46. es window refer the Section 2 3 1 for declaring variables poo BOOL Used to Write digital output data In this case choose the On call way to write data that means Act_0 BOOL using a variable to call it Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 6 After completing the settings the defined variables show as below Y Name Type D S Attrib Syb Initvalue User Tag Description poo BOOL C Act 0 BOOL L v lt B 4 gt 10 Drivers Variables 3 Inthe IO Drivers window drag variables DO_0 Act_0 and Status that created in the Section 5 1 1 from the Variables Area to the Symbol Area in the second data block Note The Status is an array variable When you drag Status into the Symbol Area it will show Status 0 to Status 4 simply press Del key to delete Status O and Status 2 to 4 4 Set the Operation field of the Status 1 as Error report that means this variable will be set to an error code when a read error occurs or reset it to O when a read request is successful Press the F1 key to see the description of the Modbus Master Configuration and move to the title Status and command variables to know related commands and error codes 5 Set the Operation field of Act_0 as Command one shot that means the request will be sent only once when Act
47. exception occurrs if no Nb trials t respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 26 2 Mouse double click the 2nd data block i e lt 15 gt Write Coil Bits to open the setting window Workspace demo_X 116 El C Exception programs H E Programs at Main i E Watch for debugging lf Soft Scope H EN Initial values 95 Binding Configuration g Global defines 3 fat Variables Types lt 5 Write single coil bit _ lt 6 gt Write single holding lt 15 gt Write Coil Bits Data block Base address Start from addr 1 and Nb items write six data oo oe Activation Periodic on call On change Misc Timeout An exception occurrs if no f Nb trials 1 respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 27 lO Drivers Ll Ae BG Mp MODBUS Master TY Name Type D CE ATU COMO 115200 N 8 1 116 DIL 04 BOOL ad B H tB lt 2 gt Read Input Bits 1 1 5 xXv116_status DINT eE ER f lt 15 gt Write Coil Bits 1 1 6 X 116 RL_OO BOOL CE n Symbol Operation Offset Mask Storage ATG REDT BOOL x 116 RL_O2 BOOL 116_RL_O00 Data exchange 0 FFFF Default W116 RL 03 BOOL a z 116_RL_O1 Data exchange 1 FFFF Default 14 ER Lo 4 BOOL a 116_RL_02 Data exchange 2 FFFF Default AA 6 RL os BOOL z SP 116_RL_O3 Data exchange 3 FFFF Default Po
48. four data Activation Periodic 50 ms lo On call z On change Read every 50 ms Misc Timeout 100 a An exception occurrs if no Nb trials 1 respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 34 2 Mouse double click the 2nd data block i e lt 15 gt Write Coil Bits to view the setting window Workspace 10 Drivers C demo_X 310 E Mp MODBUS Master gi C Exception programs ce G ATU COMO 115200 N 8 1 G L Programs i o H A lt 4 gt Read Input Registers 1 1 4 at Main k H Mii Write Coil Bits 1 1 4 a watch for debugging E B lt 2 gt Read Input Bits 1 33 36 BE Soft Scope F a B lt 16 gt Write Holding Registers 1 33 M E kes yit Fe Symbol Operation fd Binding Configuration s Ba Global defines as 310_D0_0 Data exchange SA Variabl XV 310_D0_1 Data exchange P ait es as 310_D0_2 Data exchange V 310_D0_3 Data exchange ig Ww Mm FFFF FFFF FFFF FFFF Offset Mask Storage Default Default Default Default gt ii 7 Xx V310 A0 1 INT A XY310_ status DINT xV310_D0 0 BOOL xV310_DO 1 BOOL XV310_DO 2 BOOL xV310_DO_3 BOOL BOOL BOOL v ae ee Se gt _ _ vl XV310_DLO 310_ DIL 1 WAIN Mi 7 al Name RAIE MODBUS Master Request D Request Description Slave Unit 1 MODBUS Request The Net ID of
49. gt xV310_A0_1 Data exchange 1 FFF Default Name Value SG Variables fi Types H lt ei e EH gt _10 Drivers Variables MODBUS Master Request Request Description t 1 dd The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board lt 6 gt Write single holding register A lt 16 gt Data block Base address Note When using the XV310 to write AO data the base Nb items address must be set to 33 weap Activation Periodic On call On change Misc Timeout Nb trials lt 15 gt Write Coil Bits Write Holding Reaisters N Write AO data Start from addr 33 and write two data Write only when data changed An exception occurrs if no respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 36 5 2 Enabling the Win GRAF PAC as a Modbus TCP UDP Master Application Diagram Win GRAF PAC Modbus TCP UDP Master ET 7000 Series 1 0 Modules x j VP 25Ws F N Win GRAF PAC g Dns f Modbus TCP Slave LAN XPAC XP 8xx8 CE6 Support Max 100 Slave Devices WinPAC WP 8xx8 WP 5xx8 a ViewPAC VP 25W8 Other VP 4138 _ Modbus TCP Slave Device Support Max 32 Slave Devices Refer P1 1 to see the PAC model numbers The Setting Steps 1 Click the tool icon Open Fieldbus Configuration to open the I O Drive
50. holding H Programs d lt 2 gt Read Input Bits 1 1 16 Slave Unit 3 7 1 Main B AB lt 5 Write single coil bit 2 1 1 Address 1 Watch for debuggi UH B lt 4 gt Read Input Registers 3 1 10 Nb Item 1 W Soft Scope E A PE an eaa a aa AA ERR Activation On Change L E Initial values PE Period ms 0 9 4 Binding Configuration Period on eror 0 3g Global defines s Tps Timeout ms 250 4 Variables Press F1 key to view the details Rl eeriaer oF inalec 14 Types g on the MODBUS Master settings Description Double click it to open this window Declaring a WORD variable Refer the Appendix A for details on data type and ranges refer the Section 2 3 1 for operations Word_Write_1 WORD Used to write AO data 16 bit Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 11 After completing the settings the defined variables show as below T D F Attrib Syb Initvalue User Tag Description Word Write 1 WORD O lt gt 3 Inthe lO Drivers window drag variables Word _Write_1 and Status that created in the Section 5 1 1 from the Variables Area to the Symbol Area in the 4th data block Note The Status is an array variable When you drag Status into the Symbol Area it will show Status 0 to Status 4 simply press Del key to delete Status O to 2 and Status 4 4 Set the Operation field of the
51. information of the XV Board before using it Demo description This demo added one data block that used to write 16 DI data 1 Mouse double click lt 2 gt Read Input Bits to open the setting window Workspace 10 Drivers His E demo_X 110 E lM MODBUS Master T Name Type H Exception programs 3 B ATU COM0 115200 N 8 1 E 110_DI_ 00 BOOL S L Programs B a i lt 2 gt Read Input Bits 1 1 16 PY 110_Dl_01 BOOL at Main a 110 Dl 02 BOOL al l Operat Offset Mask St wets Watch for debugging gt LIN al OO ND Dips ation _ I askal i aa xv110_DI1_03 BOOL 2110_D1_00 Data exchange 0 FFFF Default EE e 3 a G xv110_DI_o1 Data exchange 1 FFFF Default se an ae mae 913 Binding Configuration xv110_D1_02 Data exchange 2 FFFF Default N14 0 DI Og BOOL OR ce ee a 110_DI_03 Data exchange 3 FFFF Default 11 0 DI 07 BOOL a pena S V110_DI_04 Data exchange 4 FFFF Defaut anatre Ba gi 2110_D1_05 Data exchange 5 FFFF Default KE Types AY110 DI 09 BOOL 2v110_DI_06 Data exchange 6 FFFF Default eet 110 DIL10 BOOL e 110_DI_0 Data exchange fd FFFF Default ae rs AY110 DI 11 BOOL amp 110_DI_08 Data exchange 8 FFFF Default Tae x 110 DI 12 BOOL 110_Dl_09 Data exchange FFFF Default lt _ A 110 DI 13 BOOL 110_DI_10 Data exchange FFFF Default a ea 110 Dl 14 BOOL e 110_DI_11 Data exchange FFFF Default ae ters AV 110 DI 15 BOOL amp 110_Dl_12 Data exchange FFFF Default VIO etat DINT V110_D
52. ing window set up the following items and then click OK MODBUS Master Request Description Slave Unit 1 fa In this example a Slave Unit Fill in the Net ID of the Slave device Usually is 1 Request MODBUS Request b MODBUS Request 22 gt Read Input Bits gi Select lt 4 gt Read Input Registers 3 gt Read Holding Registers fv c Base address 1 lt 4 gt Read Input Registers a AEn vika nimala amil hik B Default to start from 1 CA Data block a Nb items Base address 1 The Al numbers to read here is 4 Nb items 4 l Note If want to change the Base address Activation i A EN pai pame please use mouse to right click the Periodic 1000 ms 15000 a 7 oO i ___ MODBUS Master and then select J On cal fon error On change l MODBUS Master Addresses to oe It s not suitable for Read commend change the value e Timeout 1000 ms 10 Drivers El Mia MOUDBUS Master Nb trials b HODBUS Master addresses Eg d Activation the sending way of Modbus Request Doa pee Periodic Send request periodically In this case it Ee sends request every 1 Sec on error Coil bits means that when an error occurs the next Input registers sending time in this case 15 seconds Holding registers On call It will send the request once when a program calls it On change It will send the request
53. l V 1 02 Mar 2015 by ICP DAS 5 45 2 Double click the second Data Block lt 15 gt Write Coil Bits to open the setting window Workspace IO Drivers Ll Ae 1 demo_ET7060 E p MODBUS Master si T Name Type Bj C Exception programs 3 G Open MODBUS 192 168 1 128 502 ET7060 DI 02 BOOL E L Programs a o HAB lt 2 gt Read Input Bits 1 1 6 K ET7060_DI_03 BOOL oe GE Main L SRi lt 15 gt Write Coil Bits 1 1 6 ni ET7060_DI 04 BOOL A ia aan for debugging Symbol peee N orel katlama ET7060_DI_05 BOOL oe Fi ET7060_RL_00 Data exchange OO RE baa p eus BiT a VIOE fe ET7060_RL_01 Data exchange 1 FFFF Default E060 REO ROOL H Binding i _ ET7060_RL_02 Data exchange 2 FFFF Default ERE BLOF BOGE paga aona ceme S2 ET7060_RL_03 Data exchange 3 FFFF Default FRR Bee BABE F j G Variables ge ET 060_RL_04 Data exchange 4 FFFF Default EUGUI in US abut i oe ET7060_RL_05 Data exchange s FFFF Default EFOR PLEIE ROOL z JA i Fauci RI NS ROO v a MODBUS Master Request x Request 3 Description ra SlavefUnity 1 The Net ID of the Slave Unit MODBUS Request ET 7000 is fixed to 1 lt 5 gt Write single coil bit 6 gt Write single holding lt 15 gt Write Coil Bits Data block Base address t Nb items 6 Start from the address 1 to write 6 items Activation Periodic E ms 5000 oe call fon error On change Write data if da
54. l _01 to Bool _16 and Status and drop them to the Symbol area in the first data block Note The Status is an array variable so the Status O to Status 4 will show on the Symbol area Click the Del key to delete the Status 1 to Status 4 4 Next select Offset field from Boo 01 to Boo _16 and then click the Iterate Property button on the left side to set the Offset value From 0 By 1 refer the Section 3 1 Step8 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 4 5 Inthe Operation field set the Status O as Error report which means the return value is an Error Code if a read error occurred and the value will be reset to O if read successfully tO Drivers AS E E Mp MODBUS Master Name Value Y Name Type sl Sd ATU COM2 9600 N 8 1 Request lt 2 gt Read Input Bits A Bool 01 Read Input Bits 1 1 16 Plave Unit 1 5 Bool_02 B Cidde Y Boo_03 Operation Storage Range Li Bool 04 A Bool_01 Data exchange Default Bool 05 F Bool_02 Data exchange FFFF Default Bool _06 7 Bool_03 Data exchange FFFF Default Boer Ti g5 Bool_04 Data exchange Default Bool 08 Bool_05 Data exchange Bool 09 eq wearers Data exchange Data exchange Data exchange Data exchange Data exchange Default FFFF Default FFFF Default FFFF Default FFFF Default FFFF
55. modbusport kind master address 192 165 1 100 port 502 sdiags 1 reconnect 1 disabled 0 reqdelay 10 rtu 0 lt modbusreg name mode Read Input Bits address 0 nbitem 3 slave 1 call Periodic 1000 8000 timeout 1000 retry 1 lt modbusitem ope Data offset 0 symbol boo_i nbword 1 mask ffff RengeHic RangeLo SigHi Siglo gt lt cmodbusitem ope Data offset 1 symbol boo_2 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo fy lt modbusitem ope Data offset 2 symbol boo_3 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Status offset 0 symbol ERROR_ STATUS nbword 1 mask ffff RangeHi Rangelo SigHi SigLo gt lt modbusreg gt lt modbusreg name mode Read Input Registers a lt modbusitem ope Data offset 0 e n wore 30 770 mas ask FFF Rangetic Rangelo a Sighi Siglo gt lt modbusitem ape Bata offset 2 symbol DINT_2 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo 7 gt lt modbusitem ope Data offset 4 symbol DINT_3 nbworc mask ffff RangeHi RangeLo SigHi SigLa gt lt modbusitem ope Data offset 6 symbal DINT_4 nbworc mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 3 eymbol DINT_ 5 noword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Status offset 0 symbol ERROR STATUS2 nb
56. n the shipping CD please refer Chapter 12 Click the menu bar File gt Add Existing Project gt From Zip can restore open check the demo projects CD ROM Napdos Win GRAF demo project Demo Projet FileName Description ET 7060 demo_ET7060 zip Read 6 Dls write 6 DOs ET 7018Z demo_ET7018z zip Read 10 Als Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 43 1 Click the tool icon Open Fieldbus Configuration to open the I O Drivers window Ie ee ee we ee ee Workspace IO Drivers PS Tg E Mo MODELS Ma Y Nae Type RCeption programs 5 Open MODBUS 192 168 1 128 502 ET7060_DI 00 BOOL E Programs a o E nead Input Bits ET 7060 DI 01 BOOL Liaw iin BB lt 15 gt White Coll Bits 1 1 6 ET 060_DI_02 BOOL Watch for debugging Me MODBUS Slave ET7060_DI_03 BOOL UA Soft Scope g ET 060_DI04 BOOL Initial values g Request Slave Unit Address Nbltem Activation Peric ET7060_DI_05 BOOL Mfd Binding Configuration L lt 2 Read Input Bis 102 421 6 Petiodic 50 ET 7060 status DINT 3g Global defines lt 15 gt Write Coil Bits 1 1 6 OnChange 0 ET7060_RL_00 BOOL fa Variables ET7060_RL01 BOOL w ben E Types a gii i gt rere Notice Double click Open Modbus IP 502 to open the MODBUS Master Port window All demo projects in this chapter can enable the Win GRAF PAC as a Modbus TCP Master Please fill in the current IP address of
57. o read 8 Al data the 2nd one is used to write 4 DO data and the 3rd one is used to read only 4 DI data 1 Mouse double click the 1st data block i e lt 4 gt Read Input Registers to open the setting window Workspace iO Drivers He Ae 1 demo_X 308_ 3 E E ts RATU COMO 115200 N 8 1 T Names Type H Exception programs 2 H w 8 lt 4 gt Read Input Registers 1 1 8 308_ Al 1 INT A S L Programs B H B lt 15 gt Write Coil Bits 1 1 4 E XY308_ Al 2 INT ae Main E H B lt 2 gt Read Input Bits 1 33 40 J XY308_ Al 3 INT Watch for debugging F es a F Sieh Or HODU Symbol Operation Offset Mask Storage KV300_AL4 INT fli Soft Scope H n XV308_AL5 INT Op a wt XV 308_Al_0 Data exchange 0 FFFF Default A SAO ow E Initial values V308 AI 6 INT Ae xV 308_Al 1 Data exchange 1 FFFF Default tas tjg Binding Configuration WDS AIF INT am amp s 308_Al 2 Data exchange 2 FFFF Default atta 9g Global defines c5 AVGUG_status DINT i A SV308_Al 3 Data exchange 3 FFFF Default f Variables xV308_DO O0 BOOL OE Ties ay xV 308_Al 4 Data exchange 4 FFFF Default W08 DO 1 BOOL SV 308_A4 5 Data exchange 5 FFFF Default aiiora bs V308_Al_6 Data exchange e FFF Det NESS 2 v30 Al_7F Data exchange FFFF Default v Name Value lt liz amp Note The Offset value is starting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address MODBUS
58. o set up the range of channels as below and then click Submit gt PET 7000 Web page Windows Internet Explorer el jo e 192 168 255 1 AIE ve RARE PET 7000 Web page O fe D oh aD FEO TBO ICP DAS http www icpdas com quae er EJ Main Menu Overview HE Configuration Range 40427 Enable 00595 7 er Network oettings OSTA ASN OFA ON 2 Basic Settings 04 iv OFF ON OF T C K type 270 C 1372 C ore C lon i u T sOrammenea Set as ON to OF T C K type 270 C 1372 C ofr on 4 Ween 057 2 5V e enable It I Pair Connection LOSS 57S ICLON C More Information 05 2 5V lon 05 2 5V ON C 05 2 ov amp ON ie 0 5 2 5V E ON C 05 2 5V Set Al Data Format to ON Engineer Modbus Address Function Action means 90923 50 60 Hz rejection for Al OFF C ON 6 50 2 60 Hz defeuit 1 2 5 25000 25000 eS Al Data Format C oN odtex 1 Engineeer default 0 1 1000 as 1000 00632 recover Al Calibration Values to Factory Setting 1 Clear 258 25 8 C Submit Users can set the ET 7018Z s Al Data Format to ON Engineering for more convenient usage For example 04 1 1V 2 s comp HEX 8000h 7FFFh 05 2 5 2 5 V 2 s comp HEX 8000h 7FFFh 18 Thermocouple T HEX h 4000h 200 100 C AO jii Restore Open the Demo Project The Win GRAF demo projects in the following sections can be found o
59. pen the setting window va Win GRAF demo Z I111 File Edit View Insert Project Tools Window Help a J i Workspace jl demo_X 111 H G Exception programs S E Programs aE Main Watch for debugging BE BE Soft Scope E Initial values z 84 Binding Configuration lt 3g Global defines fa Variables n Types x 33 we 10 Drivers B iis B E Mo MODBUS Master 5 ts RATU COM0 115200 N 8 1 eee lt 15 gt Write Coil Bits 1 1 16 4 Symbol 5 4 as gt xV111_DO_O4 111_D0_00 111_D0_01 amp 111_D0_02 amp 111_D0_03 4 111_D0_05 amp 111_D0_06 V 111_DO_07 MODBUS Master Request 4 111_D0_08 111_B0_093 111_D0_10 111_D0_11 111_D0_12 amp 111_B0_13 amp 111_D0_14 e 111_D0_15 lt Request Description Slave Unit MODBUS Request _ lt 5 gt Write single coil bit lt 6 gt Write sin Data block z Base address 1 fb items Activation Periodic On call On change Misc Timeout Nb trials Operation Offset Mask Storage Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Data exchange Hi Wf AE Ge A HE eT as Type BOOL BOOL BOOL BOOL 818 BOOL BOOL BOOL Pe x 111_DO_
60. peration Offset Mask Storage a an F EN A z al perenne z ET7060_D1_00 Data exchange 0 FFFF Default A E1060 B08 BOOL Initial values ET 060 DI 05 BOOL LACIE MENN G ET7060_D1_01 Data exchange 1 FFFF Default 9 3 Binding Configuration ET 060 status DINT a ET 060_DI_02 Data exchange 2 FFFF Default 3g Global defines GE ET UbU RL OL BGE a ET 060_DI_03 Data exchange 3 FFFF Default Behar fg Variables ET7060 RL 01 BOOL g ET7060_DI_04 Data exchange 4 FFFF Defer esc KE Types ET7060 RL 02 BOOL ET 060_DI_05 Data exchange 5 FFFF Default Eri ETZ060 RL 03 BOOL ET7060_status Error report 0 FF Default eee Ma Konoe E gt lt gt Notice The value of the Offset starts from 0 but the Modbus address of the variable is the Offset value plus 1 Base address If set the Operation to Error report the Offset value of the variable Data Type DINT must set to 0 MODBUS Master Request x Request Description Severn a The Net ID of the Slave Unit MODBUS Request ET 7000 is fixed to 1 lt 1 gt Read Coil Bits a Data block Base address 1 i z Start from the address 1 Hb items 6 to read 6 items Activation gt A Periodic Onca Read once every 50 ms J u On change ae If error occurs wait 5 s to send the next commend Misc Timeout 500 _ms hb trial F 7 If no responds in 500 ms means error rials Win GRAF User Manua
61. r debugging 7 g 0 XV 107_DO_00 XV107_status DINT p a Soft Scope iz Ce Offset Mask Storage AVIO _DO_OO BOOL pa Initial values A XV107_DO_00 Data exchange 0 FFFF Default AVI07_DO_01 BOOL j t Binding Configuration xV107_DO0_01 Data exchange 1 FFFF Default AVIO _DO_02 BOOL 3g Global defines SS xV107_D0_02 Data exchange 2 FFFF Default xXv107_D0_03 BOOL 5 f Variables ge 107_DO0_03 Data exchange 3 FFFF Default XV107_DO_04 BOOL 3 E Types _ XV107_DO_04 Data exchange 4 FFFF Default AVIO _DO_05 BOOL XV107_DO_05 Data exchange 5 FFFF Default xv107_DO 06 BOOL g V107_DO_06 Data exchange 6 FFFF Default am R V107_DO_0 7 Data exchange 7 FFFF Default p r A i Name Value i m a a es e MODBUS Master Request X Request Description Slave Unit The Net ID fixed to 1 of the MODELS Request Slave device i e XV board lt 5 gt Write single coil bit Ail _ lt 6 gt Write single holding Data block Base address Start from addr 1 and Nb items write eight data Activation Periodic On call On change Misc Timeout An exception occurrs if no Nb trials f respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 22 5 1 8 Connecting the XV110 16 DI The XV110 is a 16 channel digital input board This section provides a Win GRAF demo project demo_XV110 zip First go to Section 5 1 6 for the
62. r of the Slave device If as a Modbus TCP Master select the TCP Open MODBUS If as a Modbus UDP Master choose the UDP Open MODBUS Fill in the delay time e g 10 ms can be O 10000 E 10 Drivers MODEBUS Master Name Yalue Y Ne fa Global variables GELAN variables x E dindex B F g fero v gt i Address 192 168 1 100 Mode l Value EE Port 502 2 G e Protocol TCP Open MODBUS UDP MODBUS RTU UDP Open MODBUS Serial MODBUS RTU Com port After received an answer Delay between requests wait for 10 ms and then Delay ms 10 send the next request Try to reconnect after communication error Manage diagnostic info for slaves Disabled do not open and manage this port If not need the TCP UDP Port setting check Disabled Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 38 4 Click the icon Insert Slave Data Block in the left side to create a Data Block IO Drivers E MODBUS Master Mame Value Stee Open MODBUS 192 168 1 100 502 Mode Open MODELS Address 192 168 1 100 Fort Biz Reconnect after error Slaves diagnostics Delay between requests ms 10 Disabled a Read Al Data 5 Inthe MODBUS Master Request sett
63. rs window UA Win GRAF Test_01 File Edit View Insert Project Toole Window Bl 3 gt k Ma gd Bj Ge A Workspace CITER O x o G Test_O1 go T Name Type fa Global variables Al RETAIN variables _ Main ta oOnBadindex Ta oCnDivZero _ Soft Scope Initial values Ha Binding Configuration aq Global defines fa Varables Click Insert Configuration icon in the left side of the I O Drivers window and then click MOSBUS Master then click OK to enable a Modbus Master One Modbus Master can set up multiple Ports see the next step can set as a Modbus Master RTU ASCII Port Refer Section 5 1 or a Modbus Master TCP UDP Port or can set up not to enable the setting Note Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 37 IO Drivers Name Value fa Global variables A tel RETAIN variables Add Configuration Choose a configuration E All MODBUS Cancel ga MODBUS Master i MODBUS Slave 3 Click the tool icon Insert Master Port in the left side open the setting window and select the MODBUS on Ethernet Set up the following items and then click OK Address Port Protocol Delay Fill in the IP Address of the Modbus Slave device e g 192 168 1 100 TCP port Numbe
64. ster Request Activation pene O Periodi o eques ni a 7 mr OK On call ere ATRA Write only when data Pd Cancel p Slave Unit i Misc changed i MODBUS Request Timeout ae lt 1 gt Read Coil Bits A Nb trials 1 An exception occurrs if no lt 2 gt Read Input Bits z lt 3 gt Read Holding Registers N respond for 100 ms LeAnn Nand Trek Manickav Data block Base address 33 a Start from addr 33 and read Nb items 8 C only four data in this example Activation Periodic 50 msg On call Cn hange 3 lt 2 gt Read Input Bits read 4 DI data Misc z Note EESE oe Ee When using the XV308 to read DI data Nb trials 1 the address must start from 33 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 33 5 1 12 Connecting the XV310 4 Al 2 AO 4 DI 4 DO The XV310 is a 4 ch analog input 2 ch analog output 4 ch digital input and 4 ch digital ouput board This section provides a Win GRAF demo projects demo_XV310 zip First go to Section 5 1 6 to view the XV Board instructions and then configure each Al channel by using DCON_Utility_ Pro CE 200 exe Demo Description This demo added four data blocks The 1st one is used to read 4 Al data the 2nd is used to write 4 DO data the 3rd is used to read 4 DI data and the 4th is used to write 2 AO data 1 Mouse double click the 1st data block i e lt 4 gt Read Input Registers to open the setting window
65. ta is changed Misc Timeout 500 ms Nb trials 1 If no responds in 500 ms means error Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 46 5 2 3 Connecting the ET 7018Z 10 Al The ET 7018Z is an 10 Al channels Ethernet I O module The Win GRAF demo project for this section is demo _ ET7018z zip Please refer Section 5 2 1 to set up the module channels using the Internet Browser and restore open the demo project Demo Description This demo creates one Data Block to read 10 Al data 1 Double click the first Data Block lt 4 gt Read Input Registers to open the setting window Workspace IO Drivers HRs a demo_ET7018z iB E e MODBUS Master Al T Name Type G C Exception programs ce E l Open MODBUS 192 168 255 1 502 Minute DINT A Programs B Ese 8 lt 4 gt Read Input Registers 1 1 10 g Secondi DINT aE M z A ae Main lt gt Symbol Operation N o o Offset Mask Storage PER Ue LI Watch for debugging ET 018z_Al_01 INT ET7018z2_4l1_00 Data exchange 0 FFFF Default BS Soft Eres Ca oa cmon G ET70182_Al_01 Data exchange 1 FFFF Default iene aire aa ae i fF ET 018z_Al_02 Data exchange 2 FFFF Default eM 4 Binding Configuration ET7016z_Al 04 INT eae a ET 018z_Al_03 Data exchange 3 FFFF Default ET70182 Al OS INT oo ET 0182_A _ 04 Data exchange 4 FFFF Default Tsar GJ Variables ET7018z_Al 06 INT as ET 018z_Al_05 Data exchange 5 FFFF Default a E Types ET7016z Al O IN
66. tarting from 0 and the Modbus address for variables is equal to the Offset value plus 1 Base address Moreover if you set the Operation as Error report the Offset value for the mapping variable Date Type DINT must set to O HODBUS Master Request Request Description salad The Net ID fixed to 1 of the MODBLIS Request Slave device i e XV board lt 2 Read Input Bits lt 3 gt Read Holding Registers lt 4 gt Read Input Registers JE Leike cinal amil Lik Le Data block wa Read Al data Base address Hf east Start from addr 1 and read eight data Activation Periodic on call On change Misc Timeout An exception occurrs if no Nb trials respond for 100 ms Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 30 2 Mouse double click the 2nd data block i e lt 15 gt Write Coil Bits to open the setting window Workspace 10 Drivers EAX B E demo_X 308_2 E a Mp MODBUS Master Aj Y Name Type k H C Exception programs 3 G r ATU COMO 115200 N 8 1 XY308_ status DINT c Programs E tB lt 4 gt Read Input Registers 1 1 8 3 xV308_DO 0 BOOL a Main see 8 lt 15 gt Write Coil Bits 1 1 8 3 308_ DO 1 BOOL H O Watch if i e a O aa Ta i Seh or PebugG Symbol Operation XK Offset Mask Storage Oe OEA Ieee A Soft Scope zi o Xv3086_D0 3 BOOL r 25 308_D
67. the Slave device i e XV board er Ew Ulvika Unldinn Manickae Data block z Base address t Nb items I 4 i Activation Periodic 0 On call A Timeout 100 Write DO data Start from addr 1 and write four data fon error Write only when data changed Misc An exception occurrs if no iz Nb trials 1 respond for 100 ms Value gt 3 Mouse double click the 3rd data block i e lt 2 gt Read Input Bits to view the setting window Workspace f 10 Drivers demo_X 310 E Mp MODBUS Master 0 Exception programs a e ATU COMO 115200 N 8 1 H Programs a Watch for debugging be BE Soft Scope L E Initial values Qj Binding Configuration me G 3 a OR a V 310_DI_0 9g Global defines a gt sary 0 DI i t Variables E i a Ties g 310_DI_2 310_DI_3 i H A lt 4 gt Read Input Registers 1 1 4 at Main a H B lt 15 gt write Coil Bits 1 1 4 ese 1 lt 2 gt Read Input Bits 1 33 36 BB lt 16 gt Write Holding Registers Operation Data exchange Data exchange Data exchange Data exchange W33 34 Offset Mask wm FFFF FFFF FFFF FFFF Storage Default Default Default Default i 7 X A T Name Type V 310_DO 0 BOOL 310 DO 1 BOOL 310_ DO 2 BOOL 310_ DO 3 BOOL vl V310_ DLO BOOL V310_DL1 BOOL XxV310_DIL2 BOOL
68. us Master refer the Section 5 1 Please visit the XV board Selection Guide page to get more details www icpdas com root product solutions hmi touch monitor touchpad xv board selection html All the Win GRAF demo projects listed in the following table can be found on the CD ROM Refer the Chapter 12 click the Win GARF menu bar File gt Add Existing Project gt From Zip to restore the demo project and to view the details CD ROM Napdos Win GRAF demo project demo filename eseription XV116 demo_XV116 zip Read 5 Dl Write 6 DO XV308 1 demo_XV308_1 zip 1 Read 8 Al Read 8 DI XV308 2 demo_XV308_2 zip 2 Read 8Al Write 8 DO XV308 3 demo_XV308_3 zip 3 Read 8AIl Write 4 DO Read 4 DI XV310 demo_XV310 zip Read 4Al Write 4 DO Read 4 DI Write 4 AO Common setting 1 Mouse click the Open Fieldbus Configuration tool button to open the I O Drivers window Ve Win GRAF demo X 107 File Edit View Insert Project Tools Window Help aa lathe AEs Bes Workspace Sj 10 Drivers i demo _XV107 fe Mo MODBUS Master Y Name Type H Exception programs a SRAT COMO 115200 N 8 1 10 7 DLOO BOOL 3 0 Programs k lt 2 Read Input Bits 1 1 8 xv107_DI01 BOOL a Main a 3 B lt 15 gt Write Coil Bits 1 1 8 AZ DLO ROO a Soft Scope Ee e E Initial values Request Slave Unit Ai Ea 5 Binding Configuration lt 2 gt Read Input Bits 1 1 O MODBUS on Ethernet 2 i
69. values Ajd Binding Configuration 9g Global defines at Main fat Variables Types E Mg MODBUS Master Name Type ga ATU COMO 115200 N 8 1 xYV308_ AL INT n B E B lt 4 gt Read Input Registers 1 1 8 xv306_status DINT CE DR lt 2 gt Read Input Bits 1 33 40 a XY308 DIO BOOL Symbol Operation Offset Mask Storage yore Seis g 2v 308_DI_0 Data exchange 0 FFFF Default ac i a V306 DIS BOOL z xv 308_DI_1 Data exchange 1 FFFF Default TRE i xXV308_DI 4 BOOL za amp 308_DI_2 Data exchange 2 FFFF Default 6 Y308 DIL 5 BOOL V 308_DI_3 Data exchange 3 FFFF Default XV308 DIL6 BOOL g x 308_DI_4 Data exchange 4 FFFF Default 308 DI BOOL F xv 303_DI_5 Data exchange 5 FFFF Default am 308_DI_6 Data exchange 6 FFFF Default Peon xv308_DI_ Data exchange 7 FFFF Defaut Hame akie lt gt Notw When using the XV308 to read DI data the address must start from 33 MODBUS Master Request Request Description Slave Unit 1 The Net ID fixed to 1 of the MODBUS Request Slave device i e XV board lt 1 gt Read Coil Bits A lt 2 gt Read Input Bits 3 gt Read Holding Registers N A Nase Trek Nanickave Data block f Base address 33 Start from addr 33 and Nb items 8 re
70. variables Word_1 to Word_ 6 Long 1 Real_1 and Status that created in the Section 5 1 1 from the Variables Area to the Symbol Area in the third data block Note The Status is an array variable When you drag Status into the Symbol Area it will show Status 0 to Status 4 simply press Del key to delete Status O to 1 and Status 3 to 4 4 Set the Operation field of the Status 2 as Error report that means this variable will be set to an error code when a read error occurs or reset it to O when a read request is successful Press the F1 key to see the description of the Modbus Master Configuration and move to the title Status and command variables to know related commands and error codes 5 Both the Long 1 and Real 1 are 32 bit variables and require two Modbus addresses So set their Storage column as DWORD Low High IO Drivers i i xX E Mp MODBUS Master Name Value Dim 2 S ar ATU COM2 9600 N 8 1 Request lt 4 gt Read Input Regis B B lt 2 Read Input Bits 1 1 16 Slave Unit 3 H A lt 5 gt Write single coil bit 2 1 Address 1 gt 4 gt Read Input Registers 3 Nb Item 10 z Activation Periodic Fe Period ms 1000 A Period on err 15000 c5 Timeout ms 250 Number of tri 1 Description Symbol Offset Mask Storage
71. y word 1 mask ffff RangeHi Rangelo SigHi SigLo gt lt modbusreq gt lt modbusport gt lt fieldbus gt Copy lt fieldbus gt 6 Paste the copied content above the lt modbus gt and change the address to the second IP address of the Modbus Slave device e g 192 168 1 101 then save and close the file DP Master 2 0ml PE E ES PELI RRE EAO RA SAH HAN Ctr N Ai BARS Eta 0 CtHO master address 192 168 1 100 port 502 sdiags 1 reconnect 1 disabled 0 reqdelay 10 rtu 0 gt ATERRO ORJ 2 mode Read Input Bits address 0 nbitem 3 slave 1 call Periodic 1000 8000 timeout 1000 retry 1 gt SFRS A N pe Data offset 0 symbol boo_1 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt pe Data offset 1 symbol boo_2 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt SURE FIEDASSHC pe Data offset 2 symbol boo_3 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt FIED Ctd P pe Status offset 0 symbol ERROR_STATUS1 nbword 1 mask ffff RangeHi RangeLo SigHi SigLo gt ERE mode Read Input Registers address 0 nbitem 5 slayve 1 call Periodic 1000 8000 timeout 1000 retry 1 gt lt modbusitem ee offset 0 symbol DINT_1 nbword 32770 mask ffff RangeHi RangeLo SigHi SigLo gt lt modbusitem ope Data offset 2 symbol DINT_2 nbword 32770 mask ffff RangeHi
72. your ET 7000 and set Port to 502 and Protocol to TCP Open Modbus MODBUS Master Port sesssssssssesssesesssesesssssesesssssesssesesessees Dmm Address 192 168 1 128 a Port 502 Protocol E UDP MODBUS RTU UDP Open MODBUS Serial MODBUS RTU Enter the current IP address of your ET 7000 Com port Delay between requests Delay rms 5 Try to reconnect after communication error Manage diagnostic info for slaves Disabled do not open and manage this port Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 5 44 5 2 2 Connecting the ET 7060 6 DI 6 Relay The ET 7060 is a 6 DI and 6 Relay channels Ethernet I O module The Win GRAF demo project for this section is demo _ET7060 zip Please refer Section 5 2 1 to set up the module channels using the Internet Browser and restore open the demo project Demo Description This demo creates two Data Blocks one is used to read 6 DI data the other is used to write 6 DO data 1 Double click the first Data Block lt 2 gt Read Input Bits to open the setting ener lO Drivers a demo_E T7060 fe E To MODBUS Master Name H Exception programs ce Bid pari MODBUS 192 168 1 128 502 ET7060_DI_00 BOOL HL Programs B Esme f lt 2 gt Read Input Bits 1 t 6 W ET7060_DI_ 01 BOOL a Main i 3 A lt 15 gt Write Coil Bits 1 1 6 p ET7060_DI_02 BOOL Symbol O
Download Pdf Manuals
Related Search
Related Contents
MSDS Sample.indd - The Green Chemical Store Système Home Cinema avec lecteur Blu-ray Disc™/DVD Tripp Lite MTP/MPO Fan-Out Cable, MTP/MPO to 8xLC, 40GbE, 40GBASE-SR4, OM3 Plenum-Rated - Aqua, 3M (10-ft.) Racelogic Upgrader Software User Guide Installation Guide - Red Lion Controls "取扱説明書" Philips SD cards FM64SD55B 取扱説明書 - 村田製作所 Whirlpool WBC 3546 A+NFCW Fridge Freezer Operating User Manual for DR400 PC-RISOGRAPH USB Interface 4.0 Copyright © All rights reserved.
Failed to retrieve file