Home
Win-GRAF-User-Manual-english V1.01
Contents
1. Input Bits i Input Registers 3 Mouse drags the Boolean variables i e LED1 LED2 data type BOOL one by one and drop them to the Symbol area and then set the Offset to O and to 1 IO Drivers Ege Server Slave number 1 A T Name a it Input Registers 1 2000 Read Vale Request Input Bits a 1 ts 1 200 Address B Nb item 2000 I RETAIN variables Description Read _Boolean F4 in 7 z P Rang same Value H Default Da ay LEZA __ Defaut 77 A n 4 ii gt ae FAC Time Wariables LOI 10 Drivers You have completed the settings for the Modbus Slave Finally follow the way below to re compile the program and download it to the Win GRAF PAC Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 5 11 Click Project gt Build All Projects from the menu bar to compile this program again refer the Section 2 3 4 If a message informs you No error detected that means this process is successful On Line Change is disabled A MODBUS 5 4H PAC Year Warming 32 bit word orderning not supported By runtime 7 4 and older CT Segment 55 byte s gt This version information can be ignored _Callstack Breakpoints Relocating code Code CRAC 323797fc File CRC ebsd0c16 Size 3672 gt renee Digital sampling trace Prompt HMI 12 Mouse right click the project name i e Demo01
2. option Description For Modbus Master to Read data Options Data types Enter a simple note Input bits BOOL Input Bits puekeeigg oO NON K Registers REAL etc SENG eines For Modbus Master to Write data O Cail Bits O Holding Registers Data types Recommend to set Coil bits BOOL Data block a Base address to 1 Base address and set the value of Nb items is greater Data read by the master Holding BYTE INT DINT Registers REAL etc Refer the Appendix A to see more data type Mb items than 200 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 2 6 As the screenshot above it s recommended to set the Base address to 1 and the Nb items refers to how much variable data can be provided by one data block If the data address requested from the Modbus Master e g the SCADA software is greater than this value in this example the value is 2000 the Modbus Slave i e Win GRAF PAC will not respond 7 Mouse drags all the needed variables e g PAC_xxx data type DINT one by one from the Variables area and then drop it to the Symbol field IO Drivers Ll es g El Mg MODBUS Slave T Name Dim Lo El TT Serer Slave number 1 Request Input Registers PAC Month CINT J H B Input Registers 1 2000 Read Va Address PAL Da DINT oO Descript Head Value rast Four CT 7 PAC Minute DINT
3. Note Using the MBSLAVERTU function block means the first Mobus Slave setting will be enabled Using the MBSLAVERTUEX function block means to enable the Modbus Slave setting depends on the Server ID Inst _ MAS AWFRTL R2 JI MBSLAVERTUEX i Chd 3600 A 5 1 PORT T S Press the F1 on this function block to show Se aaa up the related Help Inst_MBSLAYERTU R2 MBSLAVERTUEX COM2 S600 N51 Now you have finished the settings for the MBSLAVERTUEX function block and then re compile the program and download it to the Win GRAF PAC Refer the Section 2 3 4 Section 2 3 5 Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 10
4. i Variables all aL Inst BLINK aL Inst MBSLAYERTU Variables all s Local variables only Hide FB instances 4 Double click the left side of the SLV and then enter 1 the value set in the Section 3 1 Step 3 then click to finish the setting Inst_MBSLAVERTU i Variables all ae E Inet BLINK aL Inst MBSLAYERTU Ey LED E IFM Variables all w P eee ree Rn eee ee Inst_MBSLAVERTU IM MBSLAVERTU Fa Now you have completed the setting of the MBSLAVERTU function block then re compile the program and download it to the Win GRAF PAC Refer the Section 2 3 4 Section 2 3 5 Note Users can enable multiple Modbus RTU Slave ports for each PAC recommend not over 16 Ports the way is to add multiple MBSLAVERTU function blocks and set the different Port value Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 8 SCADA HMI Win GRAF PAC ingiSor gt COM2 RS 232 lt ty N 8 1 InduSoft _ gt Slave number WP 5xx8 WP 8xx8 Modbus RTU Master Modbus RTU Slave Refer the P1 1 to view all PAC models Add the MBSLAVERTUEX function block If you have added multiple Server settings recommend to set one in the IO Drivers window the MBSLAVERTUEX function block must be used l Drivers Mame Value Slave number 1 Slave number 1 i el nput Registers 1 UUU
5. and select the Communication Parameters to set the PAC IP e g 192 168 71 19 502 and then click the menu bar Project gt On Line or A to establish a connection and download this project to the Win GRAF PAC Refer the Section 2 3 5 File Edit View Insert Project Tools Window Jala 4asXx 2 Worksnare Edit View Insert fyon Tools Window Help e TE SRS ES Build All Projects F7 space Clean Al Projects EC Download All Projects ve ception pro Dee petting Bj Programs ile PAC TI SCADA HMI Win GRAF PAC Disi IP 192 168 71 19 lt amp E Port 502 ndasa lt E Slave number 1 WP 5xx8 WP 8xx8 Modbus TCP Master Modbus TCP Slave Refer the P1 1 to view all PAC models After completing all the steps the HMI SCADA software can access to all the Win GRAF variables listed above via Modbus TCP protocol Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 6 3 2 To Enable the Win GRAF PAC as a Modbus RTU Slave Before doing this you must complete all the content that described in Section 3 1 to open the Modbus Slave data The way to enable the Win GRAF PAC as the Modbus RTU Slave is to add the MBSLAVERTU or the MBSLAVERTUEX function block in the program To begin follow these steps Add the MBSLAVERTU function block 1 Inthe LD1 window mouse click the place where you want to add this function b
6. Read Value Server IL Sy H H B Input Bits 1 2000 Read Boolean gE Request Address Nb Item Description z Input Registers 2000 Read Value Input Bits 2p0 Read Boolean liga EE iE PAC Time Wariables LEC 10 Drivers 1 Follow the step1 to 4 described above to add the MBSLAVERTUEX function block If you want to change the usage for existing function block mouse double click the MBSLAVERTU and change it to the MBSLAVERTUEX and then click the OK button Inst_MBSLAVERTU R2 IN MBSLAVERTU G COM2 S600 N84 T LOADSTRING Get a string from a table h T LOBYTE Low part of a word T LOG Logarithm base 10 LOGFILECSY Generate log file in CS format T LOGL Logarithm base 10 LHEAL T LOGMESSAGE send a LOG message T LOWORD Low part of a double word ese MAREDWORG FPack words to double word Function AKEWORD Rack bytes to word F HAX Maximum MBMASTERRTU MODBUS Master ATU T MESHIFT Multibyte shiftrotate T MBSLAVEIDENT Set MODBUS Slave Device Identification EE MB SLAVE WIDE Aa MESLAVERTUES MODBUS Slave ATU eri Function Block MBMASTERTCP MODBUS Master TCP hail Nb Inputs ae Ok Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 9 2 The MBSLAVERTUEX has a SrvID setting Double click the left side of the SrvID and enter a needed Server ID using a string format e g Svr1
7. Symbol Offset Mask Storage PAC S cond DINT v ERI pac vear i FFF Default JE So as PAL Month U FFFF Default ns Value PAC Day 0 FFFF Default p B PAC Hour 0 FFFF Default Pia FAC Minute 0 FFFF Default Lc 7 PAC Second 0 FFFF Dejart A 4 a lt m gt 4 p PAC Time Wariables LDI 10 Drivers 8 Mouse double click the Offset field and fill in a value then press Enter key to finish the setting Note 1 The Offset value starts at O and the Modbus address of variable is equal to this value plus 1 Base address 2 If using a 32 bits or more than 32 bits data type e g DINT refer the Appendix A it requires two Modbus addresses as the table below the Offset values are O 2 4 6 etc Spmbol Mask Storage PAC Year 0 FFFF Default PAC_Month 2 FFFF Default PAC Day 4 FFFF Default PAC Hour b FFFF Default PAC Minute U fe 6t FFFF Default PAC Second 0 FFFF Default PAC WeekDay 0 FFFF Default Tips Mouse click the Offset field and press the keyboard Ctrl A to select all items and then click the Iterate Property button at the left side to open the settings window F Symbol Storage q PAC Year Default S PAC Month Default g4 PAC Day Default PAC Hour Default PAC Minute Default C Second Default PAC weekDay DO FFF O Defaut OOOO Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 3 Keep the Name setting enter O
8. into From field and enter 2 into By field then click OK If setting the Name to it will show OO 22 44 66 88 1010 1212 in this example To modify it depends on the required settings and then check the value in the Results area Mame From Results A Mask Storage FAC Year FFFF Default PAC Month FFFF Default PAC Day FFFF Default PAC Hour FFFF Default PAC Minute FFFF Default PAC Second FFFF Default Ca PAC WeekDay FFFF Default lt gt F amp C Time Wariables LE 10 Drivers 9 Click Storage to select entire columns and then press Enter key to display a drop down menu Then select DWORD Low High and press Enter key to complete the setting If using a 16 bits or below it s no need to set the Storage item Spmbol Offset Mask Storage y d Range Low FEFE Default PAC Year 0 PAC Month z FFFF Default PAC Day 4 FFFF Default PAC Hour E FFFF Default PAC Minute g FFFF Default PAC Second 10 FFFF PAC WeekDay 12 _ o itt DWORD Low High lt STRINGIS z FAC Time wariables LOI 10 Drivers STRING 10 To expand this Data Block and you can see the Modbus addresses of all variables It equals to the Offset value plus 1 Base address IO Drivers EE Input Registers 1 2000 Read Value a 0 1 PAC Year Request Input Registers 1 By 2 3 PAC Month
9. Address B By 4 5 PAC Day Nb Item 2000 i 7 6 7 PAC Hour Description Read Value E m 8 35 PAC Minute F j m 10 11 PAC Second gS Symbol Offset Mask Storage Range Lo a PAC Year T FFFF DWORD Low High PAC_Month 2 FFFF DWORD Low High PAL Day 4 FFFF DWORD Low High PAL Hour G FFFF DWORD Low High PAC_Minute 0 FFFF DWORD Low High PAC Second 10 FFFF DWORD Low High PAC WeekDay 12 FFFF DWORD Low High lt m gt Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 4 10 Then we need to add the second Data Block for the Modbus Master to read the Boolean data This configure way is similar to the step 4 to 8 1 Click the Server item and click the Insert Slave Data Block button at the left side to open the settings window 2 In the MODBUS Slave Request window enter a simple note and select the Input bits option then set Base address to 1 and set Nb items to 2000 IO Drivers E H E hN Registers 1 2000 Read Value im MODBUS Slave Request Ed F Request F Description Read Boolean Enter a simple note For the Modbus Master to Read data Data read or Forced by the master Option Data Type BOOL Coil Bits Input Registers BYTE INT DWORD O Holding Registers a REAL LINT etc Data block Refer Appendix A to see more data type Bare adea Nb items z000 Data read by the maste
10. Chapter 3 Modbus Slave Allow the SCADA HMI Software to Access Win GRAF Variables In Chapter2 we have described how to get set the PAC system time i e the PAC_Time program and create a blinking function i e the LD1 program in the Demo01 project The following sections describe how to allow the SCADA HMI software e g InduSoft to access Win GRAF variables that defined in the Demo01 project The Win GRAF Workbench provides two ways to open the PAC data one way is to enable the Win GRAF PAC as a Modbus TCP Slave and the second way is to enable the Win GRAF PAC as a Modbus RTU Slave you must first complete all the Modbus Slave settings in Section 3 1 and then refer the Section 3 2 To begin follow these steps 3 1 To Enable the Win GRAF PAC as a Modbus TCP Slave 1 Click the Open Fieldbus Configuration tool button to open the IO Drivers window Win GRAF Demoli File Edit View Ineert Project Tools Window Help m BE STS ee ee ee oe es ee aka ff Bog Oe A Workspace 10 Drivers 5 Demoli T Name Type fa Global variables PAC Year DINT PAC Month OINT PAC Day DINT Ma iiasal MlkIT U Soft Scope 2 a Initial values Mame Aj Binding Contig g Global defines Variables 4 gt PAC Time Variables LD Build Cwn GRAF Projects4 D emo Ho eror detected cn Build Cross references A Runtime Call stack 4 Breakpoints d Digital sampling trac
11. e Frompt Hbl OffLine 192 168 255 1 502 Fa 0 0 2 Click the Insert Configuration button on the left side of the IO Drivers window and then select the MOSBUS Slave and click OK to enable a Modbus TCP Slave IO Drivers Name Value Add Configuration Choose a configuration E all z H MODBUS Cancel F MODBUS Master F amp C Time Variables L I IO Drivers Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 1 3 Click the Insert Master Port button on the left side to set the Slave number In this case the value is 1 and click the OK button IO Drivers MODBUS Slave Mame Value MODBUS Slave Protocol a fs lz zf Slave number Server D 4 PAC Time Wariables LD1 10 Drivers 4 Click the Insert Slave Data Block button on the left side to open the MODBUS Slave Request window IO Drivers fg Gl Mg MODBUS Slave SE Server Slave number 1 Slave number Server ID i Tips F 1 Press the F1 key to open the Help on this subject g 2 If you add two or more Server settings type a Server ID for easier use a string e g SVR1 Ee J Request Address Nb Item Description 4 gt PAC Time Variables LD1 10 Drivers 5 Enter a simple note in the Description Ealan 11RA erg at ptr field and then click the Input Registers Request
12. lock and then click the Insert FB button on the left side of the window LD1 JE 5 i Inst_BLINK LED Fi NE RUM BLINK a Jul LED Sol 10 Output Sol 1 Output SoC 12 Outputs lt uili 4 gt PAC Time vase Lor Drivers 2 Double click on this function block and select the name MBSLAVERTU then click OK Fa T LNL Natural logarithm LAEAL T LOADCSTRING Get a string fram a table T LOBYTE Low part of a word LOG Logarithm base 10 LOGFILECSY Generate log file in CSW format LOGL Logarithm base 10 LAEALJ T LOGMESSAGE send a LOG message T LOWORD Low part of a double word T MAKEDWORD Pack words to double word E LF MAKEWDAD Pack bytes to word Tips HAX H aximum ii 3 EF MEMASTERATU MODEUS Master ATU Press MBSL key to quickly MBMASTEARTCP MODBLUS Master TCP find out the function name MBSHIFT Multibyte shift ratate mae Let Rall Ue ub Mb Inputs Cancel Win GRAF User Manual V 1 02 Mar 2015 by ICP DAS 3 7 3 Inthe MBSLAVERTU function block mouse double click the left side of the PORT and enter a string COM2 9600 N 8 1 it means using the Win GRAF PAC s COM2 to communication with the Modbus Master and then click to complete the settings Inst_MBSLAVERTU Tips Press the F1 key on this function block to show up the related Help
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 (3.99 MB/PDF) Powermate PMC601200 Parts list Samsung SMART CAMERA ST1000 Наръчник за потребителя Powerbuilt 940962 Use and Care Manual Copyright © All rights reserved.
Failed to retrieve file