Home
NAPOPC_CE6 DA Server
Contents
1. Ver 1 00 Date Oct 29 2010 Page 52 NAPOPC_CE6 DA Server User s Manual Step 4 Select the COM Security tab page My Computer Properties Step 5 Click on the Edit Limits of Access Permissions button to set Access Permission Permissions for ANONYMOUS LOGON Local Access Remote Access Ver 1 00 Date Oct 29 2010 Page 53 NAPOPC_CE6 DA Server User s Manual Access Permission Security Limits Group or user names n ANONYMOUS LOGON Everyone Add Remove Permissions for Everyone Allow Deny Local Access Remote Access Step 6 Click on the Edit Default of Access Permissions button to set Access Permission Default Security Group or user names Add Remove Permissions for Everyone Allow Deny Local Access Remote Access Cancel Step 7 Click on the Edit Limits of Launch and Activation Permissions button to set Ver 1 00 Date Oct 29 2010 Page 54 NAPOPC_CE6 DA Server User s Manual Launch Permission Security Limits Group or user names t Administrators ZIBE T Administrators Everyone Remote Launch Local Activation Remote Activation Step 8 Click on the Edit Default of Launch and Activation Permissions button to set Launch Permission Default Security Group or user names Administrators ZIBE T Administrators ff INTERACTIVE Add Remove
2. 61 5KB 7KB 7KB 11KB 6KB Application Extension Application Extension Application Extension Application Extension Application Extension Fig 1 1 1 a module _7K ini 23 5KB INI File 6 11 2010 3 14 PM sq module 87K ini 18 6KB INI File 5 11 2010 3 14 PM a module _8K ini 12 1KB INI File 6 11 2010 3 14 PM a module ET ini 4 48KB INI File 6 11 2010 3 14 PM la module FRnet ini 633 bytes INI File 6 11 2010 3 14 PM MENSPOPC_CE6 bat 312 bytes Batch File 6 11 2010 3 19 PM NAPOPC_CE6 tdb 12 5KB TDB File 8 3 2010 5 11 PM 8 NAPOPC_CE6Boot exe 28 5KB Application 5 27 2010 12 27 PM ef NAPOPCSvr_CE6 exe 608KB Application 8 12 2010 6 28 PM e OPCComn_ps dll 17 5KB Application Extension 6 14 2010 11 44 AM 6 14 2010 11 44 AM 5 27 2010 12 27 PM 5 27 2010 12 27 PM 5 27 2010 12 27 PM 5 27 2010 12 27 PM gt Quicker dll 93KB Application Extension 5 27 2010 12 27 PM Plregsvr32 exe 5 50KB Application 7 21 2009 8 30 AM B Rule txt 0 bytes Text Document 7 8 2010 8 19 PM s StOleProxy dll 575KB Application Extension 6 14 2010 11 44 AM gt uartce dll 15 5KB Application Extension 7 16 2009 2 15 AM a UntitledNSPOPC_CE6 tdb 12 5KB TDB File 8 3 2010 5 08 PM s XPacSDK_CE dll 52KB Application Extension 5 26 2010 9 01 PM After that you execute the main program NAPOPCSvr_CE6 exe which would call UARTCE DLL DCON CE DLL MBTool DLL XPacSDK DLL pac i8017HW DLL pac_i8024W DLL pac_i8084W DLL pac_i8172W DLL
3. Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set input register value 123 at address 1 MBSetReg 1 123 1 VB NET Quicker Modbus MBSetReg 1 123 1 VC NET Quicker Modbus MBSetReg 1 123 1 Ver 1 00 Date Oct 29 2010 Page 96 NAPOPC_CE6 DA Server User s Manual MBGetReg The function can get a register value from a specific modbus address Syntax VC unsigned char MBGetReg unsigned short iMBAddress short iStatus unsigned char iAttr VB NET VC NET byte MBGetReg ushort iMBAddress out short iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to get from The range of modbus address is from 1001 to 20999 iStatus out The register value of specific modbus address iAttr in Assign which kind of register you want get 1 means input register which will be requested by modbus function number 4 0 means output register which will be requested by modbus function number 3 6 16 Return Values 0 indicates success WCA_MBADDR_OVER means the iMBAddress over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get input register value from address 1 short iSat
4. Device Name can not be the same as any other module Step 5 Click on the OK button to add this new module Ver 1 00 Date Oct 29 2010 NAPOPC_CE6 DA Server User s Manual 1 2 3 4 Adding a New FRnet Device Step 1 Click on the Add New Device menu item or the I8 icon to add a new module Add Edit View Servic New Group Ctrl G New Tag Ctr T Search Modules Generate Tags Multi Tags Fig 1 2 3 4 1 Step 2 The Select Device window pops up Step 3 Click on the FRnet radio button Select Device FRnet module Setting FR i Receiver Address f Sender Address fo Simulate 1 0 Fig 1 2 3 4 2 Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Slot The XP 8000 CE6 has 3 or 7 slots to plug in This slot field indicates the slot number that the I O module used The valid range is from 1 to 7 Port The Port indicates the port number 0 or 1 of l 8172 Every FRnet I O modules have to use l 8172 as FRnet communication module Please refer to the l 8172 manual for more information FR User can click on the Combo Box to select a FRnet module ID Ver 1 00 Date Oct 29 2010 Page 18 NAPOPC_CE6 DA Server User s Manual Receiver Address FRnet communication needs correct hardware configuratio
5. choi Analog Input 1 0 0012207 cho2 Analog Input 2 D 00274 cho3 Analog Input 3 D 00152 cho4 Analog Input 4 D 00274 chos Analog Input 5 0 0109863 cho6 Analog Input 6 0 0012207 cho Analog Input Ei 0 00244141 Fig 1 2 2 2 Step 3 Select the 8064 module on the Device Window to monitor its own Digital Output tags File Add Edit View Help Fig 1 2 2 3 1 2 8 Adding a New Device NAPOPC_CE6 provides three kinds of device DCON Device FRnet Device and Modbus Device to be added The DCON Device includes I 8K 87K Embedded Modules Remote I O Modules and Internal Device The Internal Device could be the intermediary container between several user application programs or the intermediary device designing Rule Script The FRnet Device supports ICP DAS FRnet modules The Modbus Device supports Modbus RTU Modbus ASCII and Modbus TCP protocol NAPOPC CE6 provides multi thread communication via COM port and Ethernet The maximum number of Modbus TCP master communication thread is limited to 32 by default 1 2 3 1 Adding a New I 8K I 87K Embedded Module Step 1 Click on the Add New Device menu item or the I amp icon to add a new module Ver 1 00 Date Oct 29 2010 Page 12 NAPOPC_CE6 DA Server User s Manual Add Edit View Servi New Device Ctrl D New Group Ctrl G New Tag Ctrl T Search M
6. Step 8 Run XPAC Utility to save and reboot Step 9 Execute OPC client for testing Ver 1 00 Date Oct 29 2010 Page 68 NAPOPC_CE6 DA Server User s Manual File OPC View Help c lat oc ET Tag Qual Flac Select OPC Server Use OPC 1 02 Loterfaces Ver 1 00 Date Oct 29 2010 Page 69 NAPOPC_CE6 DA Server User s Manual 4 The Application of NAPOPC CE6 User can develop an incredible application combining with OPC client Modbus RTU TCP client NAPOPC_ST and NAPOPC_XPE If using Rule Script inside the NAPOPC_CE6 user can not only save lots of time developing system but also create a more stable and safer system The five sections below describe the timing and method to apply in different kind of situation 4 1 NAPOPC_CE6 with OPC Client NAPOPC_CE6 is designed as OPC based architecture therefore it supports OPC client naturally Many WinCE based OPC clients in the world can apply with it Please refer to its user manual for detail information The following sections show you how InduSoft Web Studio Version 6 0 connects to Quicker InduSoft Web Studio is a powerful integrated collection of automation tools that includes all the building blocks needed to develop human machine interfaces HMIs supervisory control and data acquisition SCADA systems and embedded instrumentation and control applications Web Studio runs in native Windows NT 2000 XP and CE Net 5 0 environments and conforms to industr
7. Launch and Activation Permissions button to set Launch Permission Default Security Group or user names t Administrators ZIBE T Administrators Everyone ff INTERACTIVE Add Remove Allow Permissions for Everyone Deny anch Remote Launch Local Activation emote Activation Step 9 Right click on the NAPOPC XPE DA Server of DCOM Config button and select Properties Ver 1 00 Date Oct 29 2010 Page 64 NAPOPC_CE6 DA Server User s Manual Component Services File Action View Window Help e ml m x amp 2 m t amp ag Console Root Component Services Computers My ComputerDEOM Config B Computers 2 DCOM Config B B My Computer y 2 COM Applications and Suppor Uploa WBEM Provider Su Aspnet Sn DCOM Config B AccStore Class S c amp S BS AcroPDF MMC MobSync MPriborDB MSDAINITL NAP Agent E Adobe Acrobat D Applicati Service EH ArchiverService 3 9 Blocked Drivers amp amp e COM Event Sys E ComEvents Com NetMeeting Network OpcEnum ComEvents Coms Provisioni CustReg Class E Defrag FAT engir Fh m 9 59 Step 10 Select the Location tab page and check Run application on the following computer And enter the Server IP here RAPOPC_XPE DA Server Properties rix General Security Endpoints Identity The following settings allow DCOM to locat
8. Permissions for Everyone Allow Deny a nch Remote Launch Local Activation emote Activation Step 9 Right click on the NAPOPC DA Server of DCOM Config button and select Properties Ver 1 00 Date Oct 29 2010 Page 55 NAPOPC_CE6 DA Server User s Manual Component Services File Action View Window Help e gt m x amp 2 m H n a Console Root Component Services ComputersMy ComputerDEOM Config B Computers Sd DCOM Config B B My Computer B Gj COM Applications and Suppor Uploa WBEM Provider Su Aspnet Sn ci DCOM Config i B AccStore Class S c amp S BS AcroPDF MMC MobSync MPriborDB MSDAINITL NAP Agent E Adobe Acrobat D Applicati Service EH ArchiverService 3 9 Blocked Drivers amp amp e E COM Event Sys EH ComEvents Com NetMeeting Network OpcEnum ComEvents Comst Provisioni CustReg Class E Defrag FAT engir Fh m 59 Step 10 Select the Location tab page and check Run application on the following computer And enter the Server IP here EXZEZITETCLTTUIENNNE sx General Security Endpoints Identity The following settings allow DCOM to locate the correct computer for this application If vou make more than one selection then DCOM uses the first applicable one Client applications may overide your selections Run application on the computer where the dat
9. button to find other executables installed on the computer Note Only EXE files are added to the exceptions list For in process OPC Servers and Clients DLLs and OCXs you will need to add the EXE applications that call them to the list instead Add a Program To allow communications with a program by adding it to the Exceptions list select the program or click Browse to search for one that is not listed Programs E gt Alarm Logger Configurator e Alarm Server Corfigurator 81 Alamiworx32 Carousel BB vataworsz ath DBOPCServerConfigurator f pipcoM m FreeCell EE GenDOS3 to GPw16 Ej GenDOS4 to GFW16 B GenStatistics Viewer Path C Program Files ICONICS GENESIS 22 Bin Step 3 Add TCP port 135 as it is needed to initiate DCOM communications and allow for incoming echo requests In the Exceptions tab of the Windows Firewall click on Add Port Windows Firewall g m General Exceptions Advanced Windows Firewall is blockirg incoming network connections except for the programs and services selected below Adding exceptions allows some programs to work better but might increase your security risk Programs and Services Name O File and Printer Sharing Gen amp gent exe GenReaistrarS erver exe Graphworsd2 LASEngine exe License Monitor Microsoft Managemert Console OPC DataSpy OPC Simulator Remote Assistance T1Rermnte Nesktan Add Program v Display a not
10. 1 00 Date Oct 29 2010 Page 15 NAPOPC_CE6 DA Server User s Manual Checksum This checksum field must match the hardware setting A mismatch will always cause a communication failure with this module This field is disabled for the 8000 sub devices and it will use the 8000 main device s checksum COM Port Specifies the COM port to be used Please verfiy which COM port number that the RS 485 network is using Wrong settings will always cause communication failure This field is disabled for the 8000 sub devices It will use the 8000 main device s COM port setting Baud Rate Specifies the baud rate to be used Verify the module s current baud rate A wrong setting will always cause communication error for this module This field is disabled for the 8000 sub devices It will use the 8000 main device s baud rate Simulate I O The Simulate I O checkbox switches to a simulator of reading I O Since the simulator does not open the TCP IP or COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware This field is disabled and not used for the 8000 main device Pending Time Minimum interval time between two access To activate this function NAPOPC_CE6 can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC CE6 will automatically spread time resource to o
11. Input Coil 100001 101000 Input Register 300001 301000 Output Register 400001 401000 Description Specifies the description text for this tag This can be blank Type Shows the command to be used for this tag Different modules support different commands Channel Specifies the channel number to be used for this tag The Digital Input and Digital Output tags do not use this channel setting because all channels are read with one communication Simulation The valid signal is SINE RAMP and RANDOM This field is validated when the module uses simulation I O Please refer to the Adding A New Device section OK Click on the OK button to add the new tag setting Cancel Click on the Cancel button to avoid any changes Scaling Enable Check this check box to enable the Settings button Settings Click on this button to set the scaling feature For more information please refer to the section 1 2 5 4 Scaling Settings Ver 1 00 Date Oct 29 2010 Page 28 NAPOPC_CE6 DA Server User s Manual 1 2 5 2 Adding a New Tag For Internal Device Step 1 Click on the Add New Tag menu item or the icon to add a new tag Step 2 The Tag Properties window pops up Step 3 Choice the Settings page Because the tag belongs to the internal type device the Internal Device radio button is active Tag Properties Settings Read amp Write Name fagi Modbus address s Output Register y Description De
12. New Tag Ctrl T Search Modules Multi Tags Fig 1 2 5 1 1 Step 2 Generate Tags function will generate tags for the device you choose Step 3 Double click the tag to check the property Step 4 Choice the Settings page Because the tag belongs to the module type device the I O Module radio button is active Settings Read amp Write Description Device Type Internal Device 1 0 Module Type analog Input v Channel o Controller Location Data Bool Output Register Scaling Enable Settings Simulation sine v Fig 1 2 5 1 2 Ver 1 00 Date Oct 29 2010 Page 27 NAPOPC_CE6 DA Server User s Manual Name Any Tag Name may be used but avoid names with spaces or punctuation such as The clients will use the Device Name and Tags to access its value Hence the Tag Name cannot be a duplicate of another tag in the same group Modbus address Specifies an unique modbus address for this tag in order to communicate with modbus client The default address is already an unique one After that you also need to choose the address type There are four address types you can choose They are Input Coil Output Coil Input Register and Output Register which depends on your tag property It is important to give an appropriate modbus address type and address value Address Type Range Output Coil 000001 001000
13. and Quicker DLL by itself to start NAPOPC CE6 If the files under System_Disk Tools NAPOPC_CE6 loss or crash please copy the files under xp 8000 ce6 tools in the CD to System Disk Tools NAPOPC CES6 by yourself Ver 1 00 Date Oct 29 2010 Page 5 NAPOPC_CE6 DA Server User s Manual 1 2 Function Overview 1 2 1 Search Modules The Search Modules function lets you configure NAPOPC_CE6 automatically It searches the RS 485 network and embedded modules to find modules and then generates tags automatically This version of NAPOPC_CE6 not only generates Al AO DI DO Latched DI and Counter tags but also maps each tag to a unique modbus address Step 1 Click on the Add Search Modules menu item or the Pl icon to search for modules Add Edit View Servic New Device Ctrl D New Group Ctrl G New Tag Ctrl T Generate Tags Multi Tags Fig 1 2 1 1 Step 2 The Search Modules window pops up Search Modules COM fi ET 7000 Clear Modules Local Search Baud Rate Searching 521600 7460800 230400 v 115200 157600 38400 19200 9600 4800 2400 1200 Address 1 to 255 Checksum Start fo V Disabled End s5 o Enabled Status Timeout mSec 500 Ver 1 00 Date Oct 29 2010 Page 6 NAPOPC_CE6 DA Server User s Manual Step 3 If you want to search the I 8K I O modules plugged in the XP 8000 CE6 you have to check th
14. CEServer exe Ver 1 00 Date Oct 29 2010 Page 74 NAPOPC_CE6 DA Server User s Manual Bs EXC Wow Go rens e 3 xx 8 aaka laddress Compact Flash Indusoft Name Size Type Modified Bin Folder Drv Folder O TEST Folder a CEApp INI 109 bytes INI File 1 27 2005 2 16 20 PM Spa CEServer exe 218KB Application 11 12 2004 4 34 48 PM a CEServer INI 103 bytes INI File 1 27 2005 2 46 48 PM FaRecovery exe 11 0KB Application 11 18 2004 6 17 30 PM amp lregview exe 11 5KB Application 11 25 2002 6 43 54 PM h Step 13 Click Project gt Execution Environment then select Network IP to press the IP of XP 8000 CE6 Execution Environment e Application Import CE License Ten O Local Status Network IP 10 0 0 80 Platform Q Serial Port Ml iy O Microsoft ActiveSync EC Step 14 Click Connect then select Application gt Send to Target Execution Environment e Application Pa Local GOPC OPCINDUSO 1 Testi Target Compact Flash IndusoftiTest SE I Send To Target Only newer files Target Application was started Step 15 Execute your application by clicking Start After that you will see your runtime HMI Ver 1 00 Date Oct 29 2010 Page 75 NAPOPC_CE6 DA Server User s Manual Remote Agent 4 3 Connection status No
15. ECE e gt m X Eae m Al 8 Console Root e Component Services p wA x g 4 Computers My Computer 4 object s Event Viey 9top MS DTC sad DCOM Config peupsd urina z ications ransacti rocesses Services Refresh all components View gt New window from Here Properties Opens the properties dialog box for the current selection Step 2 Select the Default Properties tab page Step 3 Use the following settings Field Name Set to Enable Distributed COM on this computer Checked Default Authentication Level Connect Default Impersonation Level Anonymous My Computer Properties 2 x IV Enable Distributed COM on this computer Enable COM Intemet Services on this computer Default Distributed COM Communication Properties COM Security Default Properties Default Protocols MSDTC General Options The Authentication Level specifies security at the packet level Default Authentication Level The impersonation level specifies whether applications can determine who is calling them and whether the application can do operations using the client s identity Default z ersonation Level Security for reference tracking can be provided if authentication is used and that the default impersonation level is not anonymous Provide additional security for reference tracking
16. Server User s Manual The timeout error code is 15 In most cases it indicates no module has responded to the current command Search After setting the above options click this button to search The window will be closed automatically when completed Stop During the search users can click the button to stop The window will stay on the screen after the search is cancelled Exit Users can click the button to close the window Step 6 After the search the discovered modules will be listed on the Device Window left side Users can also see the tags on the Tag Window right side generated by the Search Modules function automatically r 1 Device Window Tag Window ine or se LIU Bit Input Bit Input Bit Input Bit Input 3 Bit Input 4 Bit Input 5 Bit Input 6 Bit Input 7 Bit Input 8 7017_6 Bit Input 9 amp Als chio Bit Input 10 chii Bit Input LE chi2 Bit Input 12 chi3 Bit Input 13 chi4 Bit Input 14 chis Bit Input 15 The Search Modules function generates Digital Input Digital Output Bit Input or Bit Output tags The Digital Input and Digital Output tags use one communication to read the status of all channels while the Bit Input and Bit Output tags use one communication to read only one channel status The Digital Input and Digital Output tags have better performance than the Bit Input and Bit Output tags Us
17. Verify the module s current baud rate A wrong setting will always cause communication error for this controller Parity Specifies the parity scheme to be used It is one of the following values Vale Description Odd Odd S O Data Bits Specifies the number of bits in the bytes transmitted and received Stop Bits Specifies the number of stop bits to be used It is one of the following values D 1 j fstopbt BJ2 O 2 2stopbits Z G0 O 1 2 1 5 stop bits Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware Pending Time Minimum interval time between two access To activate this function NAPOPC_CE6 can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC CE6 will automatically spread time resource to other modules which are connected with each other OK Click on the OK button to add the new controller setting Cancel Click on the Cancel button to avoid any changes Ver 1 00 Date Oct 29 2010 Page 21 NAPOPC_CE6 DA Server User s Manual Step 5 Click on the OK button to add this new device 1 2 3 6 Adding a New Modbus ASCII Contr
18. eterne nennen ener 30 L254 Scaling Set ngs ouo ei eret erre eO TA S ROT FOE eie Por htt bep cree DURER EASA 32 1 2 6 Adding Multi Tags for Modbus Device esses 33 1 2 7 Read Write the Tags iiit rere t eR e RUE ana De eai iae ei aN E Eee 34 1 2 8 Editing A Device Group Tag properties eese eene nennen eene netten 35 1 2 9 Deleting A DeviCe GroupsT ag eiie ta rer iR er RHET SHE RR Dette eee prebere reas 36 12 10 Generating TAGS iiu e RO ee IER RUBIA ERE EOD E E gerd sndabeessasbueoassaabesdens tees 38 L2 Services Setups iere reae e ERR RIO E Oe Ere PERS 38 L2312 Rule Script Editor idee eei pecie deer be eerte ERE eode Debe Ee be tidy 39 L243 Files s east re estet a EU gun bee ELE ERR RARE RE EkL YR Ree sound e rESERET NER Fee EE ER T 40 L2d4 Abo dix uisa ee d YER oun Ee SER ERES EP PARE SE FEL UR Ree Cen Ye AERE e IR C Eee EE TRe dase SERRE LEURS 42 1 2 15 Minimize NAPOPC CE0 pnra eese eie ense einen ense enne tns enne ense en nete tn seite teens ene ae eE ak AE 42 2 QUICK START ie aseena sosse ene ni ee ek nonsens Re eeose eSI age co eS eb EHe Deep cau adeb o Tapas eps tese Peas SS EEan 43 3 REMOTE ACCESSING AVAILABLE SOON e eeeeee eene seen enean tasto tastes sustenta sensns estu senes 44 3 1 SYSTEM REQUIREMENT erster e d ee Ite elis rette e En teure repe te tee eleg 45 3 2 CONFIGURING D COM reete Poe erg ie ontsancbuces ae Ee E e E Ne eA E abet 46 3 2 1 Configuring On t
19. iStatus unsigned char iAttr VB NET VC NET byte MBGetReg_DWord ushort iMBAddress out uint iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to get from The range of modbus address is from 1001 to 20999 iStatus out The register value of specific modbus address iAttr in Assign which kind of register you want get 1 means input register which will be requested by modbus function number 4 0 means output register which will be requested by modbus function number 3 6 16 Return Values 0 indicates success WCA_MBADDR_OVER means the iMBAddress over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get input register value from address 1 unsigned long iSataus MBGetReg_DWord 1 amp iSatus 1 VB NET Dim m_MBGetRegVal As UInt32 Quicker Modbus MBGetReg_DWord 1 m_MBGetRegVal 1 VC NET uint m_MBGetRegVal Quicker Modbus MBGeReg_DWord 1 out m MBGetRegVal 1 Ver 1 00 Date Oct 29 2010 Page 101 NAPOPC_CE6 DA Server User s Manual 4 4 1 4 UserShare Function These functions allow users to add their own variables into share memory block for sharing the values with different application program The data using these functions can not be accesse
20. m a ai e EB a B ee t mE ws C Bu um LJ amp Er Bo mmc IL Tis quday Commarea iE 7 m I a i J amp T 172 Step 5 OPC Attributes window pops up Descriptor Flea cede Flats frist Percent Deachand Slatua Fenat Server Mace Ver 1 00 Date Oct 29 2010 Page 72 NAPOPC_CE6 DA Server User s Manual Step 6 Click on the Server Identifier Write NAPOPC Svr Description Server Identifier Disable ICPDAS NAPOPC Svr Read Update Rate ms Percent Deadband Status 100 Remote Server Name Browse The configuration table for OPC has the following entries e Description this field is used for documentation only The OPC Client module ignores it e Server Identifier this field should contain the name of the server you want to connect If the server is installed in the computer its name can be selected through the list box e Disable this field should contain a tag or a constant If its value is different of zero the communication with the OPC server is disabled e Update Rate this field indicates how often the server will update this group in milliseconds If it is zero indicates the server should use the fastest practical rate e Percent Deadband this field indicates the percent change in an item value that will cause a notification by the server It s only valid for analog items e Tag Name these fields should contain the tags linked to the server items
21. success WCA_ATT_ ERROR means the iAttibute is neither 0 nor 1 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Get the digital I O status Get the digital input status from modbus address 1 unsigned char iRecvIn GetDIO 1 amp iRecvIn 1 Get the digital output status from modbus address 2 unsigned char iRecvOut GetDIO 2 amp iRecvOut 0 VB NET Dim m_GetDIOVal As Byte Quicker QuickerIO GetDIO 7 m GetDIOVal 0 VC NET byte m GetDIOVal Quicker QuickerIO GetDIO 7 out m GetDIO Val 0 Ver 1 00 Date Oct 29 2010 Page 82 NAPOPC_CE6 DA Server User s Manual GetAIO Short This function can get a single analog I O value from a specific modbus address Syntax VC unsigned char GetAIO Short unsigned short iMBAddr short iRecv unsigned char iAttribute VB NET VC NET byte GetAIO_Short ushort IMBAddr out short fRecv byte iAttribute Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iRecv out The analog value of specific tag iAttribute in Assign which kind of analog value you want get Return Values 0 indicates success WCA ATT ERROR means the iAttibute is neither O nor 1 Remarks Requirements Runs on Versions Defined in Include Link to Example VC Get the analog I O value Get the analog input value from modbus addres
22. the performance of the client program Msg Delay Specifies message delay value for this controller The default value is 0 ms A smaller msg delay value may have a higher system loading but it will have a faster data exchange speed Word Swap The Word Swap checkbox switches the interpretation of 4 Byte values Sometimes we need to make the checkbox TRUE in order to achieve the purpose of Lo Hi Hi Lo communication COM Port Specifies the COM port to be used Please verfiy which COM port number that the RS 485 network is using Wrong settings will always cause communication failure Baud Rate Specifies the baud rate to be used Verify the module s current baud rate A wrong setting will always cause communication error for this controller Parity Specifies the parity scheme to be used It is one of the following values Vale Descrpton Odd Odda 1 1 O Data Bits Specifies the number of bits in the bytes transmitted and received Stop Bits Specifies the number of stop bits to be used It is one of the following values D 1 j fstopbt MA J J J j 2 2stopbits J JJ O 1 2 Ver 1 00 Date Oct 29 2010 Page 23 NAPOPC_CE6 DA Server User s Manual Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM port it is an easy
23. to running a simulator Since the simulator does not open the COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware Pending Time Minimum interval time between two access To activate this function NAPOPC CE6 can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC CE6 will automatically spread time resource to other modules which are connected with each other OK Click on the OK button to add the new controller setting Cancel Click on the Cancel button to avoid any changes 1 2 4 Adding a New Group Step 1 Click on the Add New Group menu item or the J icon to add a new group Step 2 The Group window pops up Cancel Fig 1 2 4 1 Name A Group Name may have any name but avoid names with spaces or punctuation such as The Group Name must not be used twice A group can be defined as a subdirectory containing one or more tags A device may have many subgroups of tags All tags belong to their module when they are scanned to perform I O Ver 1 00 Date Oct 29 2010 Page 26 NAPOPC CE6 DA Server User s Manual 1 2 5 Adding a New Tag 1 2 5 1 Adding New Tags For I 7K 8K 87K ZigBee FRnet Module Step 1 Click on the Add Generate Tags menu item to add new tags Add Edit View Servic New Device Ctrl D New Group Ctrl G
24. variable address in the controller Besides you have to choice the location type After you choice the location number there are four location types you can choice They are Input Coil Output Coil Input Register and Output Register When you monitor controller device see 1 2 2 Monitoring Device the Channel Location field will show a value according to the location and location type as belows Location Type Range Output Coil 000001 065536 Input Coil 100001 165536 Input Register 300001 365536 Output Register 400001 465536 Data Specifies the data type of this tag which s location type is Input Register or Output Register NAPOPC CE6 supports five kinds of data type which are Short Long Float Word and DWord Data Type Definition Range Short 16 bit signed integer 32768 32767 Long 32 bit signed integer 2147483648 2147483647 Float Floating point variable 1 7E 308 1 7E 308 Word 16 bit unsigned integer 0 65535 DWord 32 bit unsigned integer 0 4294967295 The data type of Input Coil or Output Coil is Bool Simulation The valid signal is SINE RAMP and RANDOM This field is validated when the module uses simulation I O Please refer to the Adding A New Device section OK Click on the OK button to add the new tag setting Cancel Click on the Cancel button to avoid any changes Ve
25. way to work with the server to configure tags or to connect clients without requiring any hardware Pending Time Minimum interval time between two access To activate this function NAPOPC_CE6 can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC CE6 will automatically spread time resource to other modules which are connected with each other OK Click on the OK button to add the new controller setting Cancel Click on the Cancel button to avoid any changes Step 5 Click on the OK button to add this new device 1 2 3 7 Adding a New Modbus TCP Controller Step 1 Click on the Add New Device menu item or the I8 icon to add a new module Add Edit View Servic New Group Ctrl G New Tag Ctr T Search Modules Generate Tags Multi Tags Fig 1 2 3 7 1 Step 2 The Select Device window pops up Step 3 Click on the Modbus radio button Step 4 Click on the Modbus TCP radio button Ver 1 00 Date Oct 29 2010 Page 24 NAPOPC_CE6 DA Server User s Manual Select Device DCON FRnet Modbus Device Name Device4 Controller Setting C Modbus TU O IsaGRar Address po 7 Modbus ASCII General Modbus Device Timeout po IP Address 192 168 255 1 Msg Delay p Port pe Word Swap COM Port Setting COM Port F Parity None Y Baud Rate 9600 Data B
26. we just set up the OPC Client to collect the process information from the Process Management Layer If you just want to construct the Local Accessing architecture you do not need to read this chapter If you want to construct the Remote Accessing architecture you have to know how to set up the DCOM between OPC Client and OPC Server Business Management Layer HMI Quality FIN COPC Client gt OPC Client COPC Client gt Process Management Layer iw T scana OPC Client OPC Client On damin sm aa TEN OPC Server OPC Server 1 0 1 E RE SE RENE Equipment Distributed I O DCS amp PLC Figure 3 0 1 Local access and Remote access architecture Ver 1 00 Date Oct 29 2010 Page 44 NAPOPC_CE6 DA Server User s Manual 3 1 System Requirement To access a remote OPC server over a network it is required to enable the DCOM mechanism on both stations where the client and server are resided It is not possible to launch a secure process on a Windows 95 computer from a client computer All processes in Windows 95 run in the security context of the currently logged on user therefore DCOM on Windows 95 does not support remote activation A server application on a Windows 95 computer will have to be launched manually or by some other mechanism to be accessed by a client application on another computer Consequently the DefaultLaunchPermissions and LaunchPermissions registry values have no affect on Windows
27. will be multiplied with the Deadband to generate an exception limit An exception is determined as follows Exception if absolute value of last cached value current value gt PercentDeadband EU High EU Low OK Click the OK button to save these settings Cancel Click the Cancel button to avoid any changes 1 2 6 Adding Multi Tags for Modbus Device This function only work when the device s protocol is Modbus Step 1 Click on the Add Multi Tags menu item Add Edit View Servic New Device Ctrl D New Group Ctri G New Tag Ctrl T Search Modules Generate Tags Fig 1 2 6 1 Step 2 The Add Multi Tags Dialog dialog box pops up Step 3 Choose correct Prototype Data Type and key in Modbus address Add Multi Tags Dialog Coil Output O Register Input C Register Output Short O Long O Float Word DWord Modbus Address Separation From b To i fi Cancel Fig 1 2 6 2 Prototype There are four kinds of prototype for modbus tag Coil Input Coil Output Register Input and Register Output Ver 1 00 Date Oct 29 2010 Page 33 NAPOPC_CE6 DA Server User s Manual Data Type Bool 8 bits True or False Short 16 bits 32768 32767 Long 32 bits 2147483648 2147483647 Float 32 bits float numbers Word 16 bits 0 65535 DWORD 32 bits 0 4294967295 Modbus Address From mod
28. 95 Platform Does the platform support the DCOM Windows 95 No access Windows 98 Yes Windows 98 supports the DCOM mechanism It newest DCOMS6 is also available at Microsoft s web site Windows NT 4 0 Yes NT 4 0 Service Pack 3 or newer one Windows 2000 Yes Windows 2000 supports the DCOM mechanism Windows XP Yes Windows XP supports the DCOM mechanism Ver 1 00 Date Oct 29 2010 Page 45 Users need to download and install the DCOM95 EXE and DCM95CFG EXE from Microsofts web site to enable the remote recommended to upgrade to the newest version of DCOM98 The Windows NT 4 0 supports the DCOM mechanism It is recommended to upgrade to the newest Service Pack for Windows NAPOPC_CE6 DA Server User s Manual 3 2 Configuring DCOM Before making changes register the server application in the registry of both the client and server computers This may involve either running the server applications setup program or running the server application then shutting it down on both computers The server application does not need to reside on the client computer If the server uses custom interfaces the marshaling code must be installed on the client and server computers Automation servers that support vtbl binding must install their type libraries on the client and server computers Automation servers that do not support vtbl binding do not need to install their type libraries on the cl
29. Copy Ctrl C pate cuv Inge eremana scing Delete Del Analog Output m Analog Output Analog Output Analog Output n3 nu Fig 1 2 8 1 To edit an existing Tag just select the Tag and right click mouse button to select Properties option File Add Edit View Services Rule Help DSe KF Tg 8052_1 8057 2 f 87024 3 E f 87040 4 7 amp DIs E amp DICounter d LatchLowDIs 2 amp LatchHighDIs E 2 H Device30 E amp Group 2 Sc Fig 1 2 8 2 1 2 9 Deleting A Device Group Tag To delete an existing Device or Group just select the Device or Group and then select the Delete option Ver 1 00 Date Oct 29 2010 Page 36 NAPOPC_CE6 DA Server User s Manual Ele Add NEIN view Help Ctri X Copy Ctrl C cv LJ ChanneliLoca Scaing Ctrl X Ctrl C J e cy Lie Serora sang v t D Analog Output 0 Analog Output 1 Analog Output 2 Analog Output 3 Fig 1 2 9 1 To delete an existing Tag just select the Tag and right click mouse button to select Delete option File Add Edit View Services Rule Help eet PP KF Te 8052_1 ed 8057_2 H H 97024 3 cH 97040_4 ogy DIs g DICounter b LatchLowDIs LatchHighDIs 2 1 Device30 amp Group DI Counter DI Counter DI Counter chi2 DI Counter Fig 1 2 9 2 Ver 1 00 Date Oct 29 2010 P
30. ET long m_GetAIOVal Quicker QuickerIO GetAIO_Long 7 out m_GetAIOVal 0 Ver 1 00 Date Oct 29 2010 Page 84 NAPOPC_CE6 DA Server User s Manual GetAIO Float This function can get a single analog I O value from a specific modbus address Syntax VC unsigned char GetAIO Float unsigned short iMB Addr float iRecv unsigned char iAttribute VB NET VC NET byte GetAIO_Float ushort iMBAddr out float fRecv byte iAttribute Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iRecv out The analog value of specific tag iAttribute in Assign which kind of analog value you want get Return Values 0 indicates success WCA ATT ERROR means the iAttibute is neither O nor 1 Remarks Requirements Runson Versions Definedin Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get the analog I O value Get the analog input value from modbus address 1 float fRecvIn GetAIO_Float 1 amp fRecvIn 1 Get the analog output value from modbus address 2 float fRecvOut GetAIO Float 2 amp fRecvOut 0 VB NET Dim m GetAIOVal As Single Quicker QuickerIO GetAIO Float 7 m GetAIO Val 0 VC NET float m GetAIOVal Quicker QuickerIO GetAIO_Float 7 out m GetAIOVal 0 Ver 1 00 Date Oct 29 2010 Page 85 NAPOPC_CE6 DA Server User s Manual GetAlO_Word This function c
31. Firewall blucks pugianis Selecltiuris uri Uie Excepliuris tali will be igrored Q Off not recommended Avoid using this setting Turning off Windows Firewall may make this computer more vulnerable to viruses and intruders What else should know about Windows Firewall Step 2 Select the Exceptions tab and add all OPC Clients and Servers to the exception list Also add Microsoft Management Console used by the DCOM configuration utility in the next section and the OPC utility OPCEnum exe found in the Windows System32 directory Windows Firewall General Exceptions advanced Windows Firewall is blocking incoming network connections except for the programs and services selected below Adding exceptions allows some programs to work better but might increase your security risk Programs and Services Name O File and Printer Sharing GenAgent exe M GenRegistrarServer exe Graph orX32 LASEngine exe License Monitor Microsoft Management Console OPC DataSpy OPC Simulator Remote Assistance l1BRemnte Nesktan ii Add Program Add Part Edit Delete Display a notification when Windows Firewall blocks a program wv What are the risks of allowing exceptions In the Add a Program dialog there is a listing of most applications on the machine Ver 1 00 Date Oct 29 2010 Page 49 NAPOPC_CE6 DA Server User s Manual but note that not all of them show up on this list Use the Browse
32. I O module used The valid range is from 1 to 7 Range It is for l 8017 and l 8024 module settings Please refer to module manual to choose correct range Simulate I O The Simulate I O checkbox switches to a simulator of reading I O Since the simulator does not open the TCP IP or COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware Pending Time Minimum interval time between two access To activate this function NAPOPC_CE6 can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC CE6 will automatically spread time resource to other modules which are connected with each other Step 5 Click on the OK button to add this new module 1 2 3 2 Adding a New Remote I O Module Step 1 Click on the Add New Device menu item or the I icon to add a new module Add Edit View Servic New Device Ctrl D New Group Ctrl G New Tag Ctr T Search Modules Generate Tags Multi Tags Fig 1 2 3 2 1 Step 2 The Select Device window pops up Step 3 Click on the DCON radio button Step 4 Click the Remote I O Modules radio button Ver 1 00 Date Oct 29 2010 Page 14 NAPOPC_CE6 DA Server User s Manual Select Device ocon FRnet Modbus Device Name Devices I 8K 87K Embedded Modules Module Setting Range Poe Ir Slo
33. NAPOPC_CE6 DA Server User s Manual NAPOPC_CE6 DA Server User s Manual Version 1 00 Supports 7000 8000 87000 series modules and Modbus controllers OPC the OPC Logo and OPC Foundation are trademarks of the OPC Foundation www opcfoundation org Microsoft Microsoft NETTM VisualStudio NET and Microsoft Windows are trademarks of the Microsoft Corporation www microsoft com Ver 1 00 Date Oct 29 2010 Page 1 NAPOPC_CE6 DA Server User s Manual Warranty All products manufactured by ICP DAS Inc are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS Inc assumes no liability for damages consequent to the use of this product ICP DAS Inc reserves the right to change this manual at any time without notice The information furnished by ICP DAS Inc is believed to be accurate and reliable However no responsibility is assumed by ICP DAS Inc for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2003 2008 by ICP DAS Inc LTD All rights reserved worldwide Trademark The names used for identification only maybe registered trademarks of their respective companies License The user can use modify and backup this software on a single machine The user may not reproduce transfer or distribute this software or any copy in whole or in part Ver 1 00 D
34. PSTR LPCTSTR m_USAValStr UserSetReg_Str 1 SetString VB NET Dim Rtn As Byte Dim UserSetRegStrVal As String Rtn Quicker UserShare UserSetReg_Str 1 UserSetRegStrVal ToCharArray VC NET byte Rtn string UserSetRegStrVal Rtn Quicker UserShare UserSetReg_Str 1 UserSetRegStrVal ToCharArray Ver 1 00 Date Oct 29 2010 Page 104 NAPOPC_CE6 DA Server User s Manual UserGetReg_Str The function can get a string variable from share memory block Syntax VC unsigned char UserGetReg_Str unsigned short iUserAddress char iStatus VB NET VC NET byte UserGetReg_Str ushort iUserAddress byte cGetStr Parameters iUserAddress in The address which you want to get from The range of address is from 1 to 1024 iStatus out The pointer to a long variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 1024 Remarks Requirements Runs on Versions Defined in Include Link to Example VC Get string from modbus address 1 char iStatus 256 UserGetReg_Str 1 iStatus VB NET Dim UserGetStr 256 As Byte Dim Rtn As Byte Rtn Quicker UserShare UserGetReg_Str 1 UserGetStr VC NET byte Rtn byte UserGetStr new byte 256 Rtn Quicker UserShare UserGetReg_Str 1 UserGetStr Ver 1 00 Date Oct 29 2010 Page 105 NAPOPC_CE6 DA Server User s Manual UserSetReg_Float
35. Parity None v Baud Rate 600 v Data Bits 8 Stop Bits 4 Simulate 1 0 Pending Time b ms Fig 1 2 3 5 2 Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module ISaGRAF Connect ISaGRAF controller General Modbus Device Connect general modbus device Address Specifies a Address for this controller The default value is 1 and the valid range is between 1 to 255 Timeout Specifies timeout Response time value for this controller A smaller timeout value may cause communication failure and a larger timeout value may reduce the performance of the client program Msg Delay Specifies message delay value for this controller The default value is 0 ms A smaller msg delay value may have a higher system loading but it will have a faster data exchange speed Ver 1 00 Date Oct 29 2010 Page 20 NAPOPC_CE6 DA Server User s Manual Word Swap The Word Swap checkbox switches the interpretation of 4 Byte values Sometimes we need to make the checkbox TRUE in order to achieve the purpose of Lo Hi Hi Lo communication COM Port Specifies the COM port to be used Please verfiy which COM port number that the RS 485 network is using Wrong settings will always cause communication failure Baud Rate Specifies the baud rate to be used
36. Rule Script Hint DO Oxxxxx DI Lxxxxx Al Sxxxxx AO 4xxxxx Save IF 100001 2 0 000000 and 400001 gt 3 000000 THEN 000001 1 000000 a ae i Which means the variable 000001 will do ON when variable 100001 is 0 and variable 400001 is 3 For more advanced application user can use the variable in the Internal device to be a temporary buffer to chain each rule Ver 1 00 Date Oct 29 2010 Page 113 NAPOPC_CE6 DA Server User s Manual Appendix A Error list and description Code Description I O Unit Min Max Code Define Description 0 WCA OK OK 102 WCA Stop ScanKernel has been stopped 103 WCA SLOTNO OVER Slot number must be 1 8 104 WCA ATT ERROR Attribute number error It should be 1 or 0 105 WCA COMNO OVER COM port No must be 2 or 3 106 WCA SLAVENO OVER Slave number must be 1 256 107 WCA NOT MASTER Not the main AP which calls ScanKernel 108 WCA MBADDR OVER Modbus DIO address must be 449 2048 AIO address must be 225 2048 109 WCA MBATTR ERROR Modbus attribute must be 1 or 0 110 WCA USERADDR OVER User defined address must be 1 8192 111 WCA USERRATTR ERROR User defined register value must be 32768 to 32767 Ver 1 00 Date Oct 29 2010 Page 114
37. SERADDR_OVER means the iUserAddress over the range The legal range is from number to number 19999 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get coil value from address 1 unsigned char iStatus UserGetCoil 1 amp iSatus VB NET Dim m_UserGetCoilVal As Byte Quicker UserShare UserGetCoil 1 m_UserGetCoil Val VC NET byte m_UserGetCoilVal Quicker UserShare UserGetCoil 1 out m_UserGetCoil Val Ver 1 00 Date Oct 29 2010 Page 103 NAPOPC_CE6 DA Server User s Manual UserSetReg_Str The function can set a string variable into share memory block Syntax VC unsigned char UserSetReg Str unsiened short iUserAddress char iStatus VB NET VC NET byte UserSetReg_Str ushort iUserAddress char cSetStr Parameters iUserAddress in The address which you want to set into The range of address is from 1 to 1024 iStatus out char variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 1024 Remarks Requirements Runson Versions Definedin Include Linkto XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Set string KKK into address 1 char SetString CString m_USAValStr m USAValStr _T KKK SetString L
38. The function can set a float variable into share memory block Syntax VC unsigned char UserSetReg_Float unsigned short iUserAddress float iStatus VB NET VC NET byte UserSetReg_Float ushort iUserAddress out float iStatus Parameters iUserAddress in The address which you want to set into The range of address is from 1 to 19999 iStatus out float variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 19999 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Set register value 2 5 into address 1 UserSetReg_Float 1 2 5 VB NET Dim Rtn As Byte Dim UserSetRegFloatVal As Single Rtn Quicker UserShare UserSetReg_Float 1 UserSetRegFloatVal VC NET byte Rtn float RegFloat Rtn Quicker UserShare UserSetReg_Float 1 out RegFloat Ver 1 00 Date Oct 29 2010 Page 106 NAPOPC_CE6 DA Server User s Manual UserGetReg_Float The function can get a float variable from share memory block Syntax VC unsigned char UserGetReg_Float unsigned short iUserAddress float iStatus VB NET VC NET byte UserGetReg_Float ushort iUserAddress out float iStatus Parameters iUserAddress in The address which you want to get from The range of address is from 1 to 19999 iStatus out The pointer to a float variable Return Values 0 indicates su
39. UserSetRegShortVal As Integer Rtn Quicker UserShare UserSetReg_Short 1 UserSetRegShortVal VC NET byte Rtn int RegShort Rtn Quicker UserShare UserSetReg_Short 1 out RegShort Ver 1 00 Date Oct 29 2010 Page 108 NAPOPC_CE6 DA Server User s Manual UserGetReg_ Short The function can get a short variable from share memory block Syntax VC unsigned char UserGetReg_Short unsigned short iUserAddress short iStatus VB NET VC NET byte UserGetReg_Float ushort iUserAddress out short iStatus Parameters iUserAddress in The address which you want to get from The range of address is from 1 to 19999 iStatus out The pointer to a short variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 19999 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Get register value from address 1 short iStatus UserGetReg_Short 1 amp iSatus VB NET Dim Rtn As Byte Dim m_UserGetRegShortVal As Integer Rtn Quicker UserShare UserGetReg_Short 1 m_UserGetRegShortVal VC NET byte Rtn short m_UserGetRegShortVal Rtn Quicker UserShare UserGetReg_Short 1 out m_UserGetRegShortVal Ver 1 00 Date Oct 29 2010 Page 109 NAPOPC_CE6 DA Server User s Manual UserSetReg_Long The function can set a long v
40. VC Developer Step 1 Install XPacSDK_CE msi You can find it at CD root ICPDAS XP 8000 CE6 SDK PlatformSDK in the companion CD CF Card root SDK PlatformSDK in the companion compact flash ftp ftp icodas com pub cd xp 8000 ce6 sdk platformsdk Step 2 Start Microsoft Visual Studio 2005 2008 Step 3 Create a new VC project with choosing Smart Device option and follow the wizard to finish creating project procedure Step 4 include WinConAgent h Step 5 Refer to the following functions to design your own program Step 6 Build your project with release mode Ver 1 00 Date Oct 29 2010 Page 77 NAPOPC_CE6 DA Server User s Manual Note Quicker dll and VC application program must be copied to the same folder in the XP 8000 CE6 unsigned char StartQuicker unsigned char iMode unsigned char StopQuicker void unsigned char GetVersion unsigned char GetDIO unsigned short iMB Addr unsigned char iRecv unsigned char iAttribute unsigned char GetAIO Short unsigned short iMBAddr short iRecv unsigned char iAttribute unsigned char GetAIO Long unsigned short i MB Addr flong iRecv unsigned char iAttribute unsigned char GetAIO Float unsigned short i MBAddr float iRecv unsigned char iAttribute unsigned char GetAIO_Word unsigned short iMBAddr unsigned short iRecv unsigned char iAttribute unsigned char GetAIO DWord unsigned short iMB Addr unsigned long iRecv unsigned char iAttribute unsigned ch
41. _Long 1 123 1 Ver 1 00 Date Oct 29 2010 Page 98 NAPOPC_CE6 DA Server User s Manual MBGetReg_Long The function can get a register value from a specific modbus address Syntax VC unsigned char MBGetReg_Long unsigned short iMBAddress long iStatus unsigned char iAttr VB NET VC NET byte MBGetReg_Long ushort iMBAddress out int iStatus byte iAttr iMBAddress in The modbus address which you want to get from The range of modbus address is from 1001 to 20999 iStatus out The register value of specific modbus address iAttr in Assign which kind of register you want get 1 means input register which will be requested by modbus function number 4 0 means output register which will be requested by modbus function number 3 6 16 Return Values 0 indicates success WCA MBADDR OVER means the iMBAddress over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Get input register value from address 1 long iSataus MBGetReg Long 1 amp iSatus 1 VB NET Dim m_MBGetRegVal As Integer Quicker Modbus MBGetReg_Long 1 m_MBGetRegVal 1 VC NET int m_MBGetRegVal Quicker Modbus MBGeReg_Long 1 out m_MBGetRegVal 1 Ver 1 00 Date Oct 29 2010 Page 99 NAPOPC_CE6 DA Server User s Manual MBSetReg_DW
42. a NAPOPC CES6 The description of rule base of NAPOPC CE6 is like IF THEN The left upper corner in the Rule Script Editor has four conditions behind IF in which the variables are showed as modbus address and combined with AND OR each other The right upper corner in the Rule Script Editor has four outputs behind THEN in which the variables are showed as modbus address and combined with AND each other The relation between timer value and other variables is AND If the variable behind IF is Oxxxxx or 1xxxxx the Status would be 0 or 1 The value 0 means OFF and the value 1 means ON If the variable is 3XXXXX or Axxxxx the Status would depend on the data type of variable Ver 1 00 Date Oct 29 2010 Page 39 NAPOPC_CE6 DA Server User s Manual Rule Script Editor THEN Variable Assign Output Logic AND OR udge Status Logic AND OR 000002 w NM Jano IK Jano x Jooooos w fo ao wf R o wo v 000005 NN Jano 000006 IF THEN 000002 0 000000 and 000003 0 000000 Timer 300 JO IF THEN O00002 0 000000 and 000003 0 000000 and 000005 0 0000007 2 Fig 1 2 12 1 Add Press this button to the Rule list after editing each rule Delete Check the rules in the Rule list and then press this button to delete Edit Clic
43. a is located Run application on this computer v Run application on the following computer 192 168 1 81 Browse Cancel Apply Step 11 Select the Identity tab page and check The interactive user Ver 1 00 Date Oct 29 2010 Page 56 NAPOPC_CE6 DA Server User s Manual NAPOPC XPE DA Server Properties 2 xl General Location Security Endpoints Identity Which user account do you want to use to run this application The interactive user C The launching user C This user User Password Contin password C The system account services only Cancel Apply Step 12 Restart PC 3 2 3 Configuring On the Client Site XPAC Configuring the Firewall Step1 By default the windows firewall is set to On This setting is recommended by Microsoft and by OPC to give your machine the highest possible protection For trouble shooting you may wish to temporarily turn off the firewall to prove or disprove that the firewall configuration is the source of any communication failure Note It may be appropriate to permanently turn off the firewall if the machine is sufficiently protected behind a corporate firewall When turned off the individual firewall settings outlined here need not be performed to allow OPC communication Ver 1 00 Date Oct 29 2010 Page 57 NAPOPC_CE6 DA Server User s Manual Windows Firewall General Exceptions Advanced Windows Firewall is helpi
44. age 37 NAPOPC_CE6 DA Server User s Manual 1 2 10 Generating Tags This function lets you easily test the NAPOPC CE6 in the simulation mode It is only valid if the selected device of module type has no sub Module Group and Tag Step 1 Select a device of module type you want to generate tags Step 2 Click on the Add Generate Tags menu item File ESPE Edit view Help tela New Device Ctrl D New Group Ctri G New Tag Ctrl T Search Modules Coli Tags Fig 1 2 10 1 Tags are generated depending on the Module ID Possible tags are Analog Input Analog Output Digital Input Digital Output Latched DI and Counter 1 2 11 Services Setup This function lets you define which services you want to active for exchanging data with the other programs NAPOPC CE6 provides RPC Server Modbus RTU Modbus ASCII Modbus TCP and Active ScanKernel four services to be choosed In them the RPC Server is a mechanism which allows NAPOPC ST NAPOPC XPE DA Server use NAPOPC CE6 via Remote Procedure Call If you wanna create a RPC device at NAPOPC ST NAPOPC XPE site please check this at NAPOPC_CE6 site Modbus RTU Modbus ASCII and Modbus TCP services would active immediately by checking The Active ScanKernel service should check at all situation except to be the intermediary program between user application programs Ste
45. an get a single analog I O value from a specific modbus address Syntax VC unsigned char GetAIO_Word unsigned short iMBAddr unsigned short iRecv unsigned char iAttribute VB NET VC NET byte GetAIO_Word ushort iMBAddr out ushort fRecv byte iAttribute Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iRecv out The analog value of specific tag iAttribute in Assign which kind of analog value you want get Return Values 0 indicates success WCA ATT ERROR means the iAttibute is neither O nor 1 Remarks Requirements Runson Versions Definedin Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get the analog I O value Get the analog input value from modbus address 1 unsigned short usRecvIn GetAIO_Word 1 amp fRecvIn 1 Get the analog output value from modbus address 2 unsigned short usRecvOut GetAIO_Word 2 amp usRecvOut 0 VB NET Dim m GetAIOVal As Ulnt16 Quicker QuickerIO GetAIO Word 7 m GetAIO Val 0 VC NET ushort m_GetAIOVal Quicker QuickerIO GetAIO_Word 7 out m GetAIOVal 0 Ver 1 00 Date Oct 29 2010 Page 86 NAPOPC_CE6 DA Server User s Manual GetAlO_DWord This function can get a single analog I O value from a specific modbus address Syntax VC unsigned char GetAIO_DWord unsigned short iMBAddr unsigned long iRecv unsigned ch
46. ar SetDO unsigned short i MB Addr unsigned char iSend unsigned char SetAO Short unsigned short iMB Addr short iSend unsigned char SetAO Long unsigned short IMBAddr long iSend unsigned char SetAO Float unsigned short iMB Addr float iSend unsigned char SetAO Word unsigned short iMBAddr unsigned short iSend unsigned char SetAO DWord unsigned short iMB Addr unsigned long iSend unsigned char MBSetCoil unsigned short i MB Address unsigned char iStatus unsigned char iAttr unsigned char MBGetCoil unsigned short iMB Address unsigned char iStatus unsigned char iAttr unsigned char MBSetReg unsigned short iMB Address short iStatus unsigned char iAttr unsigned char MBGetReg unsigned short iMB Address short iStatus unsigned char iAttr unsigned char MBSetReg Long unsigned short iMB Address long iStatus unsigned char iAttr unsigned char MBGetReg Long unsigned short IMB Address long iStatus unsigned char iAttr unsigned char MBSetReg DWord unsigned short iMB Address unsigned long iStatus unsigned char iAttr unsigned char MBGetReg DWord unsigned short iMBAddress unsigned long iStatus unsigned char iAttr unsigned char UserSetCoil unsigned short iUserAddress unsigned char iStatus unsigned char UserGetCoil unsigned short iUserAddress unsigned char iStatus unsigned char UserSetReg Str unsigned short iUserAddress char iStatus unsigned char UserGetReg Str unsigned short iUserAddress cha
47. ar iAttribute VB NET VC NET byte GetAIO_DWord ushort iMBAddr out ulong fRecv byte iAttribute Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO The range is from 1 to 1000 iRecv out The analog value of specific tag iAttribute in Assign which kind of analog value you want get Return Values 0 indicates success WCA ATT ERROR means the iAttibute is neither O nor 1 Remarks Requirements Runson Versions Definedin Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get the analog I O value Get the analog input value from modbus address 1 unsigned long ulRecvIn GetAIO_DWord 1 amp ulRecvIn 1 Get the analog output value from modbus address 2 unsigned long ulRecvOut GetAIO DWord 2 amp ulRecvOut 0 VB NET Dim m GetAIOVal As UInt64 Quicker QuickerIO GetAIO DWord 7 m GetAIOVal 0 VC NET ulong m GetAIOVal Quicker QuickerIO GetAIO DWord 7 out m GetAIOVal 0 Ver 1 00 Date Oct 29 2010 Page 87 NAPOPC_CE6 DA Server User s Manual SetDO This function can set a single digital output status to a specific modbus address Syntax VC unsigned char SetDO unsigned short iMBAddr unsigned char iSend VB NET VC NET byte SetDO ushort IMBAddr byte iSend Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iSend in The digital status of
48. ariable into share memory block Syntax VC unsigned char UserSetReg_Long unsigned short iUserAddress long iStatus VB NET VC NET byte UserSetReg_Long ushort 1iUserAddress out long iStatus Parameters iUserAddress in The address which you want to set into The range of address is from 1 to 19999 iStatus out long variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 19999 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Set register value 112233 into address 1 UserSetReg_Long 1 112233 VB NET Dim Rtn As Byte Dim UserSetRegLongVal As Integer Rtn Quicker UserShare UserSetReg_Long 1 UserSetRegLong Val VC NET byte Rtn int RegLong Rtn Quicker UserShare UserSetReg_Long 1 out RegLong Ver 1 00 Date Oct 29 2010 Page 110 NAPOPC_CE6 DA Server User s Manual UserGetReg Long The function can get a long variable from share memory block Syntax VC unsigned char UserGetReg_Long unsigned short iUserAddress long iStatus VB NET VC NET byte UserGetReg_Long ushort iUserAddress out long iStatus Parameters iUserAddress in The address which you want to get from The range of address is from 1 to 19999 iStatus out The pointer to a long variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAd
49. ate Oct 29 2010 Page 2 NAPOPC_CE6 DA Server User s Manual Table of Contents 1 NAPOPC CE6 DA SERVER cscscssscssccscesssscescssencseessescesssssnessssncssesnessessssossessnsssesncssesssssossessnessesers 4 1 1 INSTALL NAPOPC CE6 DA SERVER ove r E a E A ENT E E A y en 5 1 2 SBBUNCTION OVERVIEW a a R ER CU EAEI 6 1 2 1 Seareh Modules resice vnsaccoiedcataveoviccdudeosstdvenncondeceeiad count candedesch ER eae SEa N E a yaio 6 1 2 2 Monitoring DEVICES 35 esee rtr E O E A A E E a dee RESA 11 1 2 3 Adding NEW Device aide ete egeret EU D Re Ute E ERES e Ft Eee re Degree ag 12 1 2 3 1 Adding a New I 8K I 87K Embedded Module essere 12 1 2 3 2 Adding a New Remote I O Module 14 1 2 3 3 Adding a New Internal Device 16 1 2 3 4 Adding a New FRnet Device 18 1 2 3 5 Adding a New Modbus RTU Controller wld 1 2 3 6 Adding a New Modbus ASCII Controller 522 1 2 3 7 Adding a New Modbus TCP Controller eese ener enne enne 24 1 2 4 Adding a New Group es auhe en enin nno prr tU E qe ep nier io eo 26 E25 Adding G NOW T g 3 e eee rope rU E ree eg re HR een 27 1 25 1 Adding New Tags For I 7K 8K 87K ZigBee FRnet Module eene 27 1 5 2 Addinga New Tag For Internal Device meneame ee tet 29 1 25 3 Adding a New Tag For Modbus Device essere ener
50. aus MBGetReg 1 amp iSatus 1 VB NET Dim m_MBGetRegVal As short Quicker Modbus MBGetReg 1 m_MBGetRegVal 1 VC NET short m_MBGetRegVal Quicker Modbus MBGeReg 1 out m MBGetRegVal 1 Ver 1 00 Date Oct 29 2010 Page 97 NAPOPC_CE6 DA Server User s Manual MBSetReg_Long The function can set a register value into NAPOPC CE6 Syntax VC unsigned char MBSetReg_Long unsigned short iMBAddress long iStatus unsigned char iAttr VB NET VC NET byte MBSetReg ushort iMBAddress int iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to set into The range of modbus address is from 1001 to 20999 iStatus in The register value of specific modbus address iAttr in Assign which kind of register you want set 1 means input register which will be requested by modbus function number 4 0 means output register which will be requested by modbus function number 3 6 16 Return Values 0 indicates success WCA_MBADDR_OVER means the iMBAddress over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set input register value 123 at address 1 MBSetReg Long 1 123 1 VB NET Quicker Modbus MBSetReg_Long 1 123 1 VC NET Quicker Modbus MBSetReg
51. bus address number of start tag 1 65535 To modbus address number of end tag 1 65535 Separation Separation numbers between each tag 1 100 OK Click on the OK button to add the new tag setting Cancel Click on the Cancel button to avoid any changes 1 2 7 Read Write the Tags First you have to use the Monitor function to see values of tags by checking the View Monitor menu item Select a tag and right click the mouse button Then select the Properties option Choose the Read amp Write page to read write the tag Step 1 Click the View Monitor menu item to enable monitor Step 2 Select a tag and right click the mouse button Then select the Properties option Step 3 Choose the Read amp Write page You can see the Tag name and Access right at the first If the access right is Read only the write function is disable Settings Read amp write Read Value Value Quality Timestamp Tag Tag2 Access right ead amp Write Write Value Timestamp Quality Value Fig 1 2 7 1 Ver 1 00 Date Oct 29 2010 Page 34 NAPOPC_CE6 DA Server User s Manual Read Value Value You can press the Read button to read the tag value as you saw on the Tag Window Read Value Quality Three kinds of qualities Good Bad and Uncertain would be shown If the communication status is good the quality shows Good If the communicat
52. ccess WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 19999 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Get register value from address 1 float iStatus UserGetReg_Float 1 amp iSatus VB NET Dim Rtn As Byte Dim m_UserGetRegFloatVal As Single Rtn Quicker UserShare UserGetReg_Float 1 m_UserGetRegFloatVal VC NET byte Rtn float m_UserGetRegFloatVal Rtn Quicker UserShare UserGetReg_Float 1 out m_UserGetRegFloatVal Ver 1 00 Date Oct 29 2010 Page 107 NAPOPC_CE6 DA Server User s Manual UserSetReg_Short The function can set a short variable into share memory block Syntax VC unsigned char UserSetReg_Short unsigned short iUserAddress short iStatus VB NET VC NET byte UserSetReg_short ushort 1UserAddress out int iStatus Parameters iUserAddress in The address which you want to set into The range of address is from 1 to 19999 iStatus out short variable Return Values 0 indicates success WCA USERADDR OVER means the iUserAddress over the range The legal range is from number 1 to number 19999 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Set register value 222 into address 1 UserSetReg Short 1 222 VB NET Dim Rtn As Byte Dim
53. d by modbus client and OPC client UerSetCoil The function can set an unsigned char variable into share memory block Syntax VC unsigned char UserSetCoil unsigned short iUserAddress unsigned char iStatus VB NET VC NET byte UserSetCoil ushort iUserAddress byte iStatus Parameters iUserAddress in The address which you want to set into The range of address is from 1 to 19999 iStatus in unsigned char variable Return Values 0 indicates success WCA_USERADDR_OVER means the iUserAddress over the range The legal range is from number 1 to number 19999 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set coil value into address 1 UserSetCoil 1 1 VB NET Quicker UserShare UserSetCoil 1 1 VC NET Quicker UserShare UserSetCoil 1 1 Ver 1 00 Date Oct 29 2010 Page 102 NAPOPC_CE6 DA Server User s Manual UserGetCoil The function can get an unsigned char variable from share memory block Syntax VC unsigned char UserGetCoil unsigned short iUserAddress unsigned char iStatus VB NET VC NET byte UserGetCoil ushort iUserAddress out byte iStatus Parameters iUserAddress in The address which you want to get from The range of address is from 1 to 19999 iStatus out The pointer to an unsigned char variable Return Values 0 indicates success WCA_U
54. d protected Wilson Guest Computer administrator Guest account is off Password protected Configuring DCOM Step 1 Run the dcomcnfg exe program to launch component services Right clieck My Computer and choose Properties Ver 1 00 Date Oct 29 2010 Page 60 NAPOPC_CE6 DA Server User s Manual Component Services E lol xi o File Action View Window Help 2181 fm X rS Event Vier Stop MS DTC OM DCOM Config Distributed Running Services 1 lications Transacti Processes Refresh all components View b New Window from Here C Console Root My Computer 4object s e Component Services as zem m m m m Opens the properties dialog box for the current selection Step 2 Select the Default Properties tab page Step 3 Use the following settings Field Name Set to Enable Distributed COM on this computer Checked Default Authentication Level Connect Default Impersonation Level Anonymous Default Protocols MSDTC COMSecurty General Options Default Properties v Enable Distributed COM on this computer Enable COM Internet Services on this computer r Default Distributed COM Communication Properties The Authentication Level specifies security at the packet level Default Authentication Level The impersonation level sp
55. dress over the range The legal range is from number 1 to number 19999 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Get register value from address 1 long iStatus UserGetReg_Long 1 amp iSatus VB NET Dim Rtn As Byte Dim m UserGetRegLongVal As Integer Rtn Quicker UserShare UserGetReg_Long 1 m UserGetRegLongVal VC NET byte Rtn int m_UserGetRegLong Val Rtn Quicker UserShare UserGetReg_Long 1 out m_UserGetRegLongVal 4 4 2 Quicker API for VB NET VC NET Developer Step 1 Create a smart device project Step 2 Add Reference gt QuickerNet dll Step 3 Refer to the function prototype of QuickerNet dll by Object Browser Step 4 Ver 1 00 Date Oct 29 2010 Page 111 NAPOPC_CE6 DA Server User s Manual Call the functions in the QuickerNet dll Please refer to the Quicker VB NET Demo Quicker_VC NET_ Demo Step 5 Build your project and copy it and relative library into XP 8000 CE6 Note Quicker dll QuickerNet dll and VB NET VC NET application program must be copied to the same folder in the XP 8000 CE6 4 5 NAPOPC CE6 with Rule Script NAPOPC CE6 provides Rule Script Editor to user for editing the rules This function is based on the instinctive design style to develop rule list The program designers can easily implement their logic via IF THEN syntax into rule list to achieve the purpose of chain reaction contro
56. e Local Search field COM 1 is for searching I 87K I O modules plugged in the XP 8000 CE6 Search Modules Ed Cmm ET 7000 A Clear Modules 22 ion 230400 v 115200 57600 38400 19200 9600 48900 2400 1200 Address 1 to 255 4 Checksum Start fp Disabled End oss Enabled Timeout mSec 500 Fig 1 2 1 3 Step 4 If you want to search the I 7K I 87K remote I O modules via RS 232 you have to choice COM 2 and uncheck the Local Search Search Modules Baud Rate Searching _ 921600 460800 230400 115200 57600 38400 19200 9600 48900 2400 1200 Address 1 to 255 4 Checksum Start jo Disabled ERA ps Enabled Timeout mSec 500 Fig 1 2 1 4 Ver 1 00 Date Oct 29 2010 Page 7 NAPOPC_CE6 DA Server User s Manual Step 5 If you want to search the I 7K I 87K remote I O modules via RS 485 and ET 7000 modules via Ethernet you have to choice COM 3 and ET 7000 and uncheck the Local COM Search Search Modules Baud Rate Searching _ 921600 7 460800 7 230400 V 115200 57600 38400 19200 9600 4800 72400 1200 Select All Clear All Address 1 to 255 Checksum start fo V Disabled End s5 V Enabled Status 500 Fig 1 2 1 5 Timeout mSec Specifies which COM port number to search The default value is 0 and
57. e tem these fields should contain the name of the server s items Step 7 In the first cell of the Tag Name column type the tag name created in database Step 8 In the first cell of the item you have to write it the same as the NAPOPC CES6 configuration Please refer to the demo at CD Compact Flash NAPOPC_CE6 Demo InduSoft Full Ver 1 00 Date Oct 29 2010 Page 73 NAPOPC_CE6 DA Server User s Manual ere OPCCLOOL OPC eee Tag Name Rem Sean 4 1 18064 ChO0 064 1 00s Ch600 p 2 18664 CrO1 064 1 DOc Ch0 Away 3 18064 Ch02 064 1 005 Ch02 Always 4 19664 Ct03 064 1 0 s Ch03 Ader 5 18064_Choe 064 1 DOs Ch04 Aware 6 18064 Cho5 064 1 00s Ch05 ANS 7 19064 Cho 064 1 00s Ch06 Aware 8 19064_Cho7 8064_1 00s Cn07 Awars 9 19051 Ch00 051 2 0 s Ch00 Awars Step 9 Repeat the step between 7 and 8 to add more tags Step 10 Creating a Text String for the Input Output Dynamic Click the Text icon on the Object Editing toolbar Position the crosshairs in the MAIN SCR Press the key three times to display in the gray square Step 11 Click the Text Input Output property icon on the Object Editing toolbar Text I O appears in the drop down menu of the Object Properties window In the Tag Expression field type the tag name you want to link Step 12 After you finish the configuration Execute the InduSoft Remote Agent by clicking Compact Flash Indusoft
58. e the correct computer for this application If you make more than one selection then DCOM uses the first applicable one Client applications may overide your selections Run application on the computer where the data is located Run application on this computer IV Run application on the following computer 1921 58 1 81 Browse Cancel Apply Step 11 Select the Identity tab page and check The interactive user Ver 1 00 Date Oct 29 2010 Page 65 NAPOPC_CE6 DA Server User s Manual NAPOPC_XPE DA Server Properties 2 xl General Location Security Endpoints Identity Which user account do you want to use to run this application The interactive user The launching user This user User Browse Password Confirm password The system account services only Cancel Apply Step 12 Restart XPC Shut Down Windows Copyright 1985 2008 Microsoft Corporation y What do you want the computer to do Loa off Administrator Log off Administrator Shut down Restart Stand b CREME 3 2 4 Configuring On the Client Site XP 8000 CE6 System Requirement OS version XP 8000 CE6 OS 1 3 1 0 or later Program NAPOPC CE6 DCOMOCnfg exe NTLMUser exe Configuring DCOM Ver 1 00 Date Oct 29 2010 Page 66 NAPOPC_CE6 DA Server User s Manual Step 1 Run the dcomcnfg exe program and choose Default DCOM Config
59. ease refer to the above Baud Rate Searching section Clear All Sets all the Baud Rate fields to be unchecked nothing to search Please refer to the above Baud Rate Searching section Address Start Specifies the starting address The default value is O and the valid range is from 0 to 255 It won t search for an address below these settings Address End Specifies the ending address The default value is 255 and the valid range is from O to 255 It won t search for an address greater than these settings Checksum Disabled If this field is checked modules are searched with no checksum If both the Disabled and Enabled fields were unchecked the search would be undefined Checksum Enabled If this field is checked it searches modules with checksum If both the Disabled and Enabled fields were unchecked again the search would be undefined Timeout Specifies the timeout value of communication to each module The default value is 200 equal to 0 2 Seconds measured in millisecond s 0 001 Second s After a module has been found this timeout value will also be recorded for further use Users can reduce this value to shorten the search time Be careful A shorter search time may cause communication failure Status It shows the searching status includes progress in Address in A Baud Rate in B Checksum in S and Error Code in EC Ver 1 00 Date Oct 29 2010 Page 9 NAPOPC_CE6 DA
60. ecifies whether applications can determine who is calling them and whether the application can do operations using the client s identity Security for reference tracking can be provided if authentication is used and that the default impersonation level is not anonymous Provide additional secunty for reference tracking Ver 1 00 Date Oct 29 2010 Page 61 NAPOPC_CE6 DA Server User s Manual Step 4 Select the COM Security tab page My Computer Properties Local Access Remote Access Ver 1 00 Date Oct 29 2010 Page 62 NAPOPC_CE6 DA Server User s Manual Access Permission Security Limits Group or user names n ANONYMOUS LOGON Everyone Add Remove Permissions for Everyone Allow Deny Local Access Remote Access Step 6 Click on the Edit Default of Access Permissions button to set Access Permission PR Default Security Group or user names Add Remove Permissions for Everyone Allow Deny Local Access Remote Access Cancel Step 7 Click on the Edit Limits of Launch and Activation Permissions button to set Ver 1 00 Date Oct 29 2010 Page 63 NAPOPC_CE6 DA Server User s Manual Launch Permission Security Limits Group or user names t Administrators ZIBE T Administrators Everyone Remote Launch Local Activation Remote Activation Step 8 Click on the Edit Default of
61. en Ctr O Save As 1 Gystem Disks NTesti tdb 2 ggg tdb 3 System Diskstest tdb Exit Ver 1 00 Date Oct 29 2010 Page 41 NAPOPC_CE6 DA Server User s Manual Save as Save NAPOPC CE6 project as a new one i Add Edit View Services New Ctrl N Open Ctr O Save Ctrl S 1 System_Disk Test1 tdb 2 ggg tdb 3 System_Diskitest tdb Exit 1 2 14 About Click on the Help About NAPOPC_CE6 menu item to see the About NAPOPC_CE6 window It shows the version number Step 1 Click on the Help About NAPOPC CE6 menu item Step 2 The About NAPOPC CE6 window pops up About NAPOPC CE6 m MAPOPC CE6 Supports 7K 8K 87K series modules and modbus controllers Version 1 00 Update Apr 15 2010 Copyright 2010 All Rights Reserved Fig 1 2 14 1 1 2 15 Minimize NAPOPC CE6 If you want to minimize NAPOPC_CEE6 please click El on the top right corner NAPOPC CE6 elelsl2 s IS Fig 1 2 15 1 After clicking the question mark NAPOPC CE6 will minimize itself at the status bar It will be restored by double clicking it E P 11 59 AM Ua E Fig 1 2 15 2 Ver 1 00 Date Oct 29 2010 Page 42 NAPOPC_CE6 DA Server User s Manual 2 Quick Start Please follow these steps 1 Wiring Modules or Controllers Wiring modules in the RS 485 network Wiring controllers to XP 8000 CE6 Refer to xp 8000 ce6 user manual verx x x pdf 2 Configuring Modules or Controller
62. enses tetto tn sins tn atentos etas eta sensns estu sea 114 Ver 1 00 Date Oct 29 2010 Page 3 NAPOPC_CE6 DA Server User s Manual 1 NAPOPC CE6 DA Server What is NAPOPC CE6 DA Server NAPOPC CE6 DA Server is an integrated omnibus software package which combines OPC Modbus TCP Modbus RTU services and Scankernel together The particular design Rule Script lets user can quickly establish a DCS control system with logic control multi communication services For UI design NAPOPC CE6 uses an explorer style user interface to display a hierarchical tree of modules and groups with their associated tags A group can be defined as a subdirectory containing one or more tags A module may have many subgroups of tags All tags belong to their module when they are scanned to perform I O The OPC stands for OLE for Process Control and the DA stands for Data Access For software use NAPOPC CE6 creates a set up procedure requiring at most three steps for different kinds of users This kind of procedure simplifies the designing process for the programmer and ensures the stability and efficiency of control system NAPOPC CE6 not only can map the physical I O to a specific Modbus address automatically but also allows users to define their own variables into it Therefore users can develop their own application program with eVC VB NET and VC NET programming language via Modbus RTU and Modbus TCP protocol to share their spec
63. ent Console OPC DataSpy OPC Simulator Remote Assistance Mil Display a notification when windows Firewall blocks a program What are the risks of allowing exceptions Ver 1 00 Date Oct 29 2010 Page 58 NAPOPC_CE6 DA Server User s Manual In the Add a Program dialog there is a listing of most applications on the machine but note that not all of them show up on this list Use the Browse button to find other executables installed on the computer Note Only EXE files are added to the exceptions list For in process OPC Servers and Clients DLLs and OCXs you will need to add the EXE applications that call them to the list instead Add a Program To allow communications with a program by adding it to the Exceptions list select the program or click Browse to search for one that is not listed Programs z Alarm Logger Configurator e Alarm Server Corfigurator 81 Alamiworx32 Carousel BB Vataworxsz d DBOPCServerConfigurator f bipcouM m FreeCell GenD053 to GFW16 EdGenDOs4 to GFW16 E GenStatistics Viewer g Path C Program Files ICONICS GENESIS 32 Bin Step 3 Add TCP port 135 as it is needed to initiate DCOM communications and allow for incoming echo requests In the Exceptions tab of the Windows Firewall click on Add Port Windows Firewall General Exceptions Advanced Windows Firewall is blockirg incoming network connections except for the programs and services se
64. ess 1 SetAO_Float 1 5 5 VB NET Quicker QuickerIO SetAO_Float 1 5 5 VC NET Quicker QuickerIO SetAO Float 1 5 5 Ver 1 00 Date Oct 29 2010 Page 91 NAPOPC_CE6 DA Server User s Manual SetAO Word This function can set a single analog output value to a specific modbus address Syntax VC unsigned char SetAO_Word unsigned short iMB Addr unsigned short iSend VB NET VC NET byte SetAO_Word ushort iMBAddr out ushort iSend Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iSend out The analog value of specific tag Return Values 0 indicates success Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set the analog output value as 222 to modbus address 1 SetAO_Word 1 222 VB NET Quicker QuickerIO SetAO Word 1 222 VC NET Quicker QuickerIO SetAO_Word 1 222 Ver 1 00 Date Oct 29 2010 Page 92 NAPOPC_CE6 DA Server User s Manual SetAO_DWord This function can set a single analog output value to a specific modbus address Syntax VC unsigned char SetAO DWord unsigned short iMBAddr unsigned long iSend VB NET VC NET byte SetAO_DWord ushort iMBAddr out ulong iSend Parameters iMBAddr in The modbus address of specific tag in the NAPOPC_CE The range is from 1 to 1000 iSend
65. eturn Values The return value means the version value Ex 209 means v2 09 Remarks Requirements Runson Versions Definedin Include Linkto XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get the NAPOPC_CE6 version unsigned char iQversion iQversion GetVersion VB NET Dim iQversion As Byte iQversion Quicker S ystem GetVerison VC NET byte iQversion 0 iQversion Quicker System GetVersion Ver 1 00 Date Oct 29 2010 Page 81 NAPOPC_CE6 DA Server User s Manual 4 4 1 2 QuickerlO Function This group provides 12 functions for users to Get Set data which s modbus address is mapping from 1 to 1000 in NAPOPCSvr_CE6 The data which s modbus address is mapping from 1 to 1000 can be accessed by OPC client and modbus master via NAPOPC_CE6 GetDIO This function can get a single digital I O status from a specific modbus address Syntax VC unsigned char GetDIO unsigned short iMBAddr unsigned char iRecv unsigned char iAttribute VB NET VC NET byte GetDIO ushort iMB Addr out byte iRecv byte iAttribute Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO The range is from 1 to 1000 iRecv out The digital status of specific tag 1 means ON 0 means OFF iAttribute in Assign which kind of digital status you want get 1 means digital input 0 means digital output Return Values 0 indicates
66. he NAPOPC_CE6 with mode 1 if StartQuicker 1 0 AfxMessageBox _T Start NAPOPC_CE6 successfully else AfxMessageBox _T NAPOPC_CE6 has been started VB NET Quicker System StartQuicker 1 VC NET Quicker S ystem StartQuicker 1 Ver 1 00 Date Oct 29 2010 Page 79 NAPOPC_CE6 DA Server User s Manual StopQuicker This function stops the NAPOPC_CE6 Syntax VC unsigned char StopQuicker void VB NET VC NET byte Quicker System StopQuicker Parameters Return Values 0 indicates success WCA_Stop means NAPOPC CE6 has been stopped WCA NOT MASTER means not the main AP which calls NAPOPC CE6 Please refer to the Appendix 2 1 Remarks NAPOPC_CE6 only can be stopped by the AP which launched it Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Stop the NAPOPC_CE6 if StopQuicker 0 AfxMessageBox T Stop NAPOPC_CE6 successfully else if StopQuicker WCA_Stop AfxMessageBox _T NAPOPC_CE6 has been stopped else AfxMessageBox T Can not terminate the NAPOPC_CE6 VB NET Quicker S ystem StopQuicker VC NET Quicker S ystem StopQuicker Ver 1 00 Date Oct 29 2010 Page 80 NAPOPC_CE6 DA Server User s Manual GetVersion This function gets the NAPOPC_CE6 version Syntax VC unsigned char GetVersion void VB NET VC NET byte Quicker System GetVersion Parameters R
67. he Server Site XP 8000 CE cesses 47 3 2 2 Configuring On the Client Site PC inicie tti eee ole eee eye dettes 48 3 2 3 Configuring On the Client Site XPAC iie etes ie beer tester tere Poetas 57 3 2 4 Configuring On the Client Site XP 8000 CE6 cessssssseeeeeseeeeeneeeene eee 66 4 THE APPLICATION OF NAPOPC_CE6 eeeeeeeeeeee esses enses enata tuse tasse tasas tastes tosta sse ta sensns estu sena 70 4 1 NAPOPC CE6 WITH OPC CEIENT pedit er eR e RE Fr P ROREM P TRES EUER 70 4 2 NAPOPC CE6 WITH MODBUS RTU TCP CLIENT essent 76 4 2 1 Supported Modbus Commands eese eene nnne nennen remettre nennen 76 4 3 NAPOPC CE6 WITH NAPOPC ST NAPOPC XPE eerte nennen nente innen en nrnt nne TI 4 4 NAPOPC CE6 WITH USER APPLICATION ieseeseeeeeeee eene nennen enne nrenne enint enne 77 4 4 1 Quicker API for VC Developer irronneen a nennen trennen rennen ene 77 4 4 1 1 System EUtcBot a ett ste e ALES A rto deett utebe peto A EL bons 4 4 1 2 QuickerIO Function 4 4 1 3 Modbus Function eee 4 4 1 4 UserShare Function 4 4 2 Quicker API for VB NET VC NET Developer eese eene eene IlI 4 5 NAPOPC CE6 WITH RULE SCRIPT n or eene petet RO VV SAREN ENE EEE 112 4 5 1 Rule Script Syntax 3 2 eA E a a E Eaa HP Ee cues epe EY e este Debe IR e EE S RET chee 112 APPENDIX A ERROR LIST AND DESCRIPTION eere
68. ient computer After changing the registry run the client application on the client computer The DCOM looks at the server application registry entries on the client computer and determines the name of the server computer It will then connects to the server computer use the server computer registry to determine the location of the server application and start the server application on that computer You can change the registry with the DCOMOnfg exe tool the OLE Viewer tool or manually For more information on using OLE Viewer or manual changes please refer to the Q158582 HOWTO Configure a Non DCOM Server and Client to Use DCOM article on Microsofts web site For more information on using DCOMOnfg exe to configure the DCOM please refer to Inside Distributed COM written by Guy Eddon and Henry Eddon in 1998 for Microsoft Press This section shows you how to configure the DCOM status with DCOMOnfg exe graphic driven utility can be found in the Windows NT system32 folder or in the Windows95 98 system folder on the client and server computer The following table shows three combinations of DCOM settings related to XP 8000 CE6 You can see XP 8000 CE6 can be client site and server site with itself but XP 8000 CE6 only can be server site against XPAC and PC The limitation is due to DCOM security We only choose Windows XP for example to set up DCOM because there are too many kinds of OS on PC You can use other Microsoft desktop
69. ific data with Modbus client Moreover users can operate the NAPOPC_CE6 and NAPOPC_ST NAPOPC_XPE in coordination to create a fantastic solution integrating SCADA software with on line data ICPDAS ICP DAS ICP DAS Fig 1 1 Ver 1 00 Date Oct 29 2010 Page 4 NAPOPC_CE6 DA Server User s Manual The main program of NAPOPC CE6 is NAPOPCSvr_CE6 exe It automatically calls the UARTCE DLL DCON CE DLL MBTool DLL XPacSDK DLL pac i8017HW DLL pac i8024W DLL pac i8084W DLL pac i8172W DLL and Quicker DLL functions on demand 1 1 Install NAPOPC CE6 DA Server You have to execute NAPOPC CE6Boot exe in the System Disk Tools NAPOPC_CE6 of XP 8000 CE6 when you use NAPOPC CE6 first time after that NAPOPC CE6Boot exe will register NAPOPC CE6 automatically Moreover if you want to execute the NAPOPCSvr CE6 exe automatically while XP 8000 CE6 boots up please refer to the Auto Execution function at 2 4 XPAC Ultility of xp 8000 ce6 user manual vx x x pdf and add path of NAPOPC CE6Boot exe into Auto Execution NOTE After above steps please use Reboot function to save registry in XP 8000 CE6 exactlly address System _Disk Tools NAPOPC_CE6 Name Date Modified 5 27 2010 5 43 PM 5 26 2010 9 01 PM Size Type 30 5KB Application Extension 370KB Application Extension gt OPCProxy dll gt pac_i8017HW dll gt pac_i8024W alll s pac iB084w dll s pac_i8172W dll
70. ification when Windows Firewall blacks a program What are the risks of allowing exceptions Ver 1 00 Date Oct 29 2010 Page 50 NAPOPC_CE6 DA Server User s Manual In the Add a Port dialog fill out the fields as follows Name DCOM Port number 135 Choose the TCP radio button Add a Port Use these settings to open a port through Windows Firewall To find the port number and protocol consult the documentation for the program or service you want to use Name DCOM Port number 1 5 ICP O upP What are the risks of cpening a port Change scope 1 Creating the Account Step 1 Create a account which must be the same with the account of server site tex Qo Back 62 Home 2 User accounts 2 User account types 2 Switching users Pick a task Change an account Create a new account Change the way usei Assign a name and an account type to a new account or pick an account to change Administrator Sun Computer administrator 9 Computer administrator Password protected Password protected Wilson Guest Computer administrator Guest account is off Password protected Configuring DCOM Step 1 Run the dcomcnfg exe program to launch component services Right clieck My Computer and choose Properties Ver 1 00 Date Oct 29 2010 Page 51 NAPOPC_CE6 DA Server User s Manual Component Services E ini xi o File Action View Window Help
71. ing the Digital Input and Digital Output tags to access modules is highly recommended Ver 1 00 Date Oct 29 2010 Page 10 NAPOPC_CE6 DA Server User s Manual File Add Edit View Help ele e Ia Bit Input Bit Input 1 Bit Input 2 Bit Input E m Input 4 5 5 7 8 9 Bit pak 10 Bit Input 11 Bit Input 12 Bit Input 13 Bit Input 14 Bit Input 15 1 2 2 Monitoring Devices Use the Monitor function to see values of tags by checking the View Monitor menu item Uncheck the item to stop monitoring Step 1 Click the View Monitor menu item to enable monitor File Add Edit BYES Help wolels A Monitor 7 v Status Bar Name Scal choo Bit Input E i 8051 2 Choi Bit Input i EDIS cho2 Bit Input 2 eB 8056_3 cho3 Bit Input 3 b DOs cho4 Bit Input 4 H 9024_4 chos Bit Input 5 ih AOs cho6 Bit Input 6 c 8017_5 cho Bit Input 7 eh Als chos Bit Input 8 7017 6 choo Bit Input 9 amp Als chio Bit Input 10 Chii Bit Input 11 chi2 Bit Input 12 chi3 Bit Input 13 chi4 Bit Input 14 chis Bit Input 15 Fig 1 2 2 1 Step 2 Select the Als group in the Device Window left side to monitor its own Analog Input tags Ver 1 00 Date Oct 29 2010 Page 11 NAPOPC_CE6 DA Server User s Manual xj el amp e si2 e E Name Type Channelfloca Scaling Value choo Analog Input D 00274
72. ion status has something wrong the shows Bad And the other situation is Uncertain Read Value Timestamp It shows the time when you read the tag Tag name It is the same with the Name at the Settings page You can modify it at the Settings page Access right There are two kinds of aceess rights Read Only and Read amp Write The access right depends on what kind of tag property it is Please refer to the 1 6 Adding A New Tag Write Value Timestamp It shows the time that the tag is written Write Value Quality Three kinds of qualities Good Bad and Uncertain would be shown If the communication status is good the quality shows Good If the communication status has something wrong the shows Bad And the other situation is Uncertain Write Value Value You can press the Write button to write the value you key in to the tag If the tag data type is Boolean the write value O means OFF and the write value not 0 means ON 1 2 8 Editing A Device Group Tag properties To edit an existing Device or Group just select the Device or Group and then select the Properties option Ver 1 00 Date Oct 29 2010 Page 35 NAPOPC_CE6 DA Server User s Manual Ctr X Copy Ctrl C pate cv e craneo Delete Del HW s017 5 is Als a k 7017 6 amp Als E 1 8437 File Add B view Help Cut Ctr X
73. its 5 Stop Bits Simulate 1 0 Pending Time p ms Fig 1 2 3 7 2 Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module ISaGRAF Connect ISaGRAF controller General Modbus Device Connect general modbus device IP Address The uniqe IP address of your Modbus TCP controller Port You have to set up the value with 502 for communicating with ICP DAS Modbus TCP controller Address Specifies a Address for this controller The default value is 1 and the valid range is between 1 to 255 Timeout Specifies timeout Response time value for this controller A smaller timeout value may cause communication failure and a larger timeout value may reduce the performance of the client program Ver 1 00 Date Oct 29 2010 Page 25 NAPOPC_CE6 DA Server User s Manual Msg Delay Specifies message delay value for this controller The default value is 0 ms A smaller msg delay value may have a higher system loading but it will have a faster data exchange speed Word Swap The Word Swap checkbox switches the interpretation of 4 Byte values Sometimes we need to make the checkbox TRUE in order to achieve the purpose of Lo Hi Hi Lo communication Simulate I O The Simulate I O checkbox switches from reading I O from the module
74. k the rule in the Rule list to edit and after that press this button to update Save Save the Rule list to be Rule txt after finishing editing Cancel Leave this editor Active Rule Script It would be active immediately after checking this option If you wish to act the Rule script after rebooting NAPOPC_CE6 you should save file with File Save 1 2 13 File This function lets you save and load the configurations of NAPOPC CE6 For taking the correct configuration file of NAPOPC CE6 tdb after rebooting the XP 8000 CE6 you not only use File Save to save in the NAPOPC CE6 but also need to Reboot in the XPAC Utility Moreover NAPOPC_CE6 will automatically load the last configuration file with every launch Ver 1 00 Date Oct 29 2010 Page 40 NAPOPC_CE6 DA Server User s Manual 3C Add Edit View Services New Ctrl N Open ctr O Save Ctrl S Save As 1 Gystem Disk XTesti tdb 2 ggg tdb 3 System Diskstest tdb Exit New Clean current project and create a new project File Add Edit View Services Open Cctr O Save Ctrl S Save As 1 Gystem Disk XTesti tdb 2 ggg tdb 3 System Diskstest tdb Exit Open Load old NAPOPC CE6 project 361 Add Edit View Services New Ctr N Save Ctrl S Save As 1 System_Disk Test1 tdb 2 ggg tdb 3 System Diskstest tdb Exit Save Save current NAPOPC CE6 project 4 Add Edit View Services New Ctrl N Op
75. l The Rule Script is suitable within the non critical situation Using this function can not only avoid typing error but also save developing time 4 5 1 Rule Script Syntax Rule script syntax is very instinctive as well In the IF area the relation between timer and other variables is AND The triggered frequency of the rule is decided by the timer of each rule If the rule has timer and the THEN area has Oxxxxx variable the Oxxxxx variable will frequently ON OFF switch like blinking function Ex 1 IF THEN 000001 0 0 Timer 300 Rule Script Editor IF THEN Timer 200 ms Variable Assign Output Logic AND Variable Judge Status Logic AND OR Jooooo1 v o ano MTS b wo Miei None o ano v None i None None buc fo F Active Rule Script Hint DO Oxxxxx DI ixxxxx Al 3xxxxx AO 4xxxxx IF THEN 000001 0 000000 Timer 300 Cancel Which means the variable 000001 will do ON OFF switch every 300ms Ver 1 00 Date Oct 29 2010 Page 112 NAPOPC_CE6 DA Server User s Manual Ex 2 IF 100001 0 000000 and 400001 3 000000 THEN O00001 1 000000 Rule Script Editor THEN F Timer 560 ms Variable Assign Output Logic AND Variable Judge Status Logic AND OR omoi v fi Jano p me e ea a gt we wif wih e vw oe v p wo vw None v gt v fo None vi fo Active
76. lected below Adding exceptions allows some programs to work better but might increase your security risk Programs and Services Name O File and Printer Sharing Gen amp gent exe GenRegistrarServer exe Graphwort32 LASEngine exe License Monitor Microsoft Managemert Console OPC DataSpy OPC Simulator Remote Assistance Remate Diesktan Add Program Add Po v Display a notification when Windows Firewall blocks a program What are the risks of allowing exceptions Ver 1 00 Date Oct 29 2010 Page 59 NAPOPC_CE6 DA Server User s Manual In the Add a Port dialog fill out the fields as follows Name DCOM Port number 135 Choose the TCP radio button Add a Port Use these settings to open a port through Windows Firewall To find the port number and protocol consult the documentation for the program or service you want to use Name DCOM Port number 1 5 ICP O upP What are the risks of cpening a port Change scope 1 Creating the Account Step 1 Create a account which must be the same with the account of server site II D Qo Back o 62 Home nt 2 User accounts 2 User account types 2 Switching users Pick a task Change an account Create a new account Change the way usei Assign a name and an account type to a new account or pick an account to change Administrator Sun Computer administrator 5 Computer administrator Password protected Passwor
77. ng to protect your PC Windows Firewall elps protect your computer by preventing unauthorized users from gaining access to your computer through the Internet or a network Q oa This setting blocks all outside sources from connectng to this comptter with the exception of those selected on the Exceptions tab C Don t allow exceptions Select this when you connect to public networks in less secure locations such as airports Y ou will not be notified when Windows Firewall blucks priuuranis Selections uri Uie Excepliuris lab will be igrored Q Off not recommended Avoid asing this setting Turing off Windows Firewall may make this comptter more vulnerable to viruses and intruders What else should know about Windows Firewall Step 2 Select the Exceptions tab and add all OPC Clients and Servers to the exception list Also add Microsoft Management Console used by the DCOM configuration utility in the next section and the OPC utility OPCEnum exe found in the Windows System32 directory Windows Firewall General Exceptions Advanced Windows Firewall is blocking incoming network connections except for the programs and services selected below amp dding exceptions allows some programs to work better but might increase your security risk Programs and Services Name O File and Printer Sharing Gendgent exe M GenRegistrarServer exe GraphworX32 LASEngine exe License Monitor Microsoft Managem
78. ns for the sender address SA and receiver address RA on the host controller and the remote module in the network Please refer to the FRnet manual for more information Sender Address FRnet communication needs correct hardware configurations for the sender address SA and receiver address RA on the host controller and the remote module in the network Please refer to the FRnet manual for more information Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware 1 2 3 5 Adding a New Modbus RTU Controller Step 1 Click on the Add New Device menu item or the I amp icon to add a new module Add Edit View Servic New Group Ctrl G New Tag Ctr T Search Modules Generate Tags Multi Tags n Fig 1 2 3 5 1 Step 2 The Select Device window pops up Step 3 Click on the Modbus radio button Step 4 Click on the Modbus RTU radio button Ver 1 00 Date Oct 29 2010 Page 19 NAPOPC_CE6 DA Server User s Manual Select Device DCON FRnet Modbus Device Name Device4 Controller Setting IsaGRAF Address ji Modbus ASCII e General Modbus Device Timeout poo CyWdbus Tcp P Address i25 Msg Delay O Port P02 Word Swap COM Port Setting COM Port 2 v
79. o gain access to network resources Enter the user name password and domain provided by your network administrator User Name rest Password 4 Domain Step 7 Run XPAC Utility to save and reboot 3 2 2 Configuring On the Client Site PC Configuring the Firewall Step1 By default the windows firewall is set to On This setting is recommended by Microsoft and by OPC to give your machine the highest possible protection For trouble shooting you may wish to temporarily turn off the firewall to prove or disprove that the firewall configuration is the source of any communication failure Ver 1 00 Date Oct 29 2010 Page 48 NAPOPC_CE6 DA Server User s Manual Note It may be appropriate to permanently turn off the firewall if the machine is sufficiently protected behind a corporate firewall When turned off the individual firewall settings outlined here need not be performed to allow OPC communication Windows Firewall mcum General Exceptions Advanced Windows Firewall xelps protect your computer by preventing unauthorized users from gaining access to your computer through the Internet or a network This setting blocks all outside sources from connectng to this computer with the exception of those selected on the Exceptions tab C Don t allow exceptions Select this when you connect to public networks in less secure locations such as airports Y ou will not be notified when Windows
80. odbus address Syntax VC unsigned char SetAO_Long unsigned short iMBAddr long iSend VB NET VC NET byte SetAO_Long ushort iMBAddr out long iSend Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iSend out The analog value of specific tag Return Values 0 indicates success Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set the analog output value as 2323 to modbus address 1 SetAO Long 1 2323 VB NET Quicker QuickerIO SetAO Long 1 2323 VC NET Quicker QuickerIO SetAO_Long 1 2323 Ver 1 00 Date Oct 29 2010 Page 90 NAPOPC_CE6 DA Server User s Manual SetAO Float This function can set a single analog output value to a specific modbus address Syntax VC unsigned char SetAO_Float unsigned short iMBAddr float iSend VB NET VC NET byte SetAO_Float ushort IMBAddr out float iSend Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iSend out The analog value of specific tag Return Values 0 indicates success Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set the analog output value as 5 5 to modbus addr
81. odules Generate Tags Multi Tags Fig 1 2 3 1 1 Step 2 The Select Device window pops up Step 3 Click on the DCON radio button Step 4 Click the I 8K I 87K Embedded Modules radio button Select Device bcoN FRnet Modbus Device Name Devices Module Setting Module so v Range we v Slot D 0 7 for 8K 87K Modules Timeout 900 mSec Remote I O Modules Module Setting Module 7 Timeout mSec J500 Address F 0 255 Checksum Disable Slot 0 7 For 8K 87K Modules COM Port Setting COM Port z Parity None Baud Rate oc00 Data Bits 7 Stop Bits F Internal Device Simulate 1 0 Pending Time fo ms Fig 1 2 3 1 2 Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Module User can click on the ComboBox to select a Module ID Ver 1 00 Date Oct 29 2010 Page 13 NAPOPC_CE6 DA Server User s Manual Timeout Specifies timeout Response time value for this module A smaller timeout value may cause communication failure and a greater timeout value may reduce the performance of the client program Slot The XP 8000 CE6 has 3 or 7 slots to plug in This slot field indicates the slot number that the
82. oller Step 1 Click on the Add New Device menu item or the I8 icon to add a new module Add Edit View Servic New Group Ctrl G New Tag Ctr T Search Modules Generate Tags Multi Tags Fig 1 2 3 6 1 Step 2 The Select Device window pops up Step 3 Click on the Modbus radio button Step 4 Click on the Modbus ASCII radio button Select Device bCON FRnet Modbus Device Name Device4 Controller Setting C Modbus RTU O IsaGRAF Address ft General Modbus Device Tineout po Modbus TCP IP Address 2 Msg Delay fo Port 502 Word Swap COM Port Setting COM Port 2 Y Parity None Baud Rate 9600 Data Bits k x Stop Bits 1 Simulate 1 0 Pending Time p ms Fig 1 2 3 6 2 Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Ver 1 00 Date Oct 29 2010 Page 22 NAPOPC_CE6 DA Server User s Manual ISaGRAF Connect ISaGRAF controller General Modbus Device Connect general modbus device Address Specifies a Address for this controller The default value is 1 and the valid range is between 1 to 255 Timeout Specifies timeout Response time value for this controller A smaller timeout value may cause communication failure and a larger timeout value may reduce
83. operation system on our PC Client Site Server Site PC NAPOPC ST Server XP 8000 CE6 NAPOPC CE6 Server XPAC NAPOPC XPE Server XP 8000 CE6 NAPOPC CE6 Server XP 8000 CE6 NAPOPC_CE6 Server XP 8000 CE6 NAPOPC CE6 Server Ver 1 00 Date Oct 29 2010 Page 46 NAPOPC_CE6 DA Server User s Manual 3 2 1 Configuring On the Server Site XP 8000 CE6 System Requirement OS version XP 8000 CE6 OS 1 3 1 0 or later Program NAPOPC_CE6 DCOMOnfg exe NTLMUser exe Configuring DCOM Step 1 Run the dcomcnfg exe program and choose Default Default Security Authentication y Impersonation ANONYMOUS v Enable DCOM Secure references Step 2 Select the Access button to add an account Add Permissions Step 3 Select the Launch button to add an account as above Step 4 Execute NTLMUser exe Ver 1 00 Date Oct 29 2010 Page 47 NAPOPC_CE6 DA Server User s Manual User Account Manager 1 NTLM user amp Step 5 Fill out User name Password and Confirm pwd and press Add user The User name must be the account we set at Step 2 User Account Manager NTLM user Username Test T on SE READ ko Adduser jJ Remove user Step 6 Select Control Panel Owner Properties Network ID and fill out the User name Password we set up before Owner Properties f Identification Notes Network ID Windows CE uses this information t
84. ord The function can set a register value into NAPOPC CE6 Syntax VC unsigned char MBSetReg_DWord unsigned short iMBAddress unsigned long iStatus unsigned char iAttr VB NET VC NET byte MBSetReg ushort iMBAddress uint iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to set into The range of modbus address is from 1001 to 20999 iStatus in The register value of specific modbus address iAttr in Assign which kind of register you want set 1 means input register which will be requested by modbus function number 4 0 means output register which will be requested by modbus function number 3 6 16 Return Values 0 indicates success WCA_MBADDR_OVER means the iMBAddress over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set input register value 123 at address 1 MBSetReg_DWord 1 123 1 VB NET Quicker Modbus MBSetReg_DWord 1 123 1 VC NET Quicker Modbus MBSetReg_DWord 1 123 1 Ver 1 00 Date Oct 29 2010 Page 100 NAPOPC_CE6 DA Server User s Manual MBGetReg_DWord The function can get a register value from a specific modbus address Syntax VC unsigned char MBGetReg_DWord unsigned short iMBAddress unsigned long
85. out The analog value of specific tag Return Values 0 indicates success Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set the analog output value as 2323 to modbus address 1 SetAO_DWord 1 2323 VB NET Quicker QuickerIO SetAO_DWord 1 2323 VC NET Quicker QuickerIO SetAO_DWord 1 2323 Ver 1 00 Date Oct 29 2010 Page 93 NAPOPC_CE6 DA Server User s Manual 4 4 1 3 Modbus Function This group provides 8 functions to user to add their own variables into NAPOPC_CE6 for sharing the values to modbus client via modbus service of NAPOPC CEO If user create internal device and create internal tag this data can not only be accessed by modbus client but also OPC client via NAPOPC CE6 MBSetCoil The function can set a coil value into NAPOPC CE6 Syntax VC unsigned char MBSetCoil unsigned short iMBAddress unsigned char iStatus unsigned char iAttr VB NET VC NET byte MBSetCoil ushort IMBAddress byte iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to set into The range of modbus address is from 1001 to 20999 iStatus in The coil status of specific modbus address 1 means ON 0 means OFF iAttr in Assign which kind of coil you want set 1 means input coil which will be requested by modbus function number 2 0 means output coil which will be
86. p 1 Click on the Services Setup menu item Services Setup L RPC Server sos Modbus TCP Fi Active ScanKernel Port number pz Slave number fi v C slave Mma v CO Slave2 ModbusRTU s ModbusRTU COM portis c Erste COM port coms v Baudrate 2600 v Baudrate 9600 v Parity None v Parity None v Data Bits e RTU y Data Bits e RTU v Stop Bits fi v Stop Bits fi Y Fig 1 2 11 1 Step 2 Choose the services you want Ver 1 00 Date Oct 29 2010 Page 38 NAPOPC_CE6 DA Server User s Manual RPC Server Port You have to set up the value with 505 for communicating with NAPOPC_ST or NAPOPC_XPE COM Port Specifies the COM port to be used Please verfiy which COM port number that the RS 485 network is using Wrong settings will always cause communication failure Baudrate Specifies the baud rate to be used Verify the module s current baud rate A wrong setting will always cause communication error for this controller Parity Specifies the parity scheme to be used It is one of the following values No parity 00 No parity Even Odd Data Bits Specifies the number of bits in the bytes transmitted and received Stop Bits Specifies the number of stop bits to be used It is one of the following values D 1 stop bit 2 stop bits 1 5 stop bits 1 2 12 Rule Script Editor This function lets you design your rule base for making your XP 8000 CE6 to be a DCS vi
87. pe device the Controller radio button is active Tag Properties Settings Read amp Write Name fragt Modbus address es output Register w Description Device Type Internal Device I O Module Type Analog Input Channel fi 8 Controller Location fi output Register v Data Short Scaling I Enable Settings Simulation n o Mw Fig 1 2 5 3 1 Name Any Tag Name may be used but avoid names with spaces or punctuation such as The clients will use the Device Name and Tags to access its value Hence the Tag Name cannot be a duplicate of another tag in the same group Modbus address Specifies an unique modbus address for this tag in order to communicate with modbus client The default address is already an unique one After that you also need to choose the address type There are four address types you can choose They are Input Coil Output Coil Input Register and Output Register which depends on your tag property It is important to give an appropriate modbus address type and address value Ver 1 00 Date Oct 29 2010 Page 30 NAPOPC_CE6 DA Server User s Manual Address Type Range Output Coil 000001 001000 Input Coil 100001 101000 Input Register 300001 301000 Output Register 400001 401000 Description Specifies the description text for this tag This can be blank Location Specifies the tag address It must be the same with the the
88. r 1 00 Date Oct 29 2010 Page 31 NAPOPC_CE6 DA Server User s Manual Scaling Enable Check this check box to enable the Settings button Settings Click on this button to set the scaling feature For more information please refer to the section 1 2 5 4 Scaling Settings 1 2 5 4 Scaling Settings In general the Scaling feature is only useful for the floating point data type Tag Process Settings Scaling Raw Units n fi Scales to PN fo Max 1000 Max fio Conversion Linear Q Square Root Deadband o Yo Fig 1 2 5 4 1 Raw Data Min The original Minimum value MinRaw Max The original Maximum value MaxRaw Scales to Units The unit of the scaled value Just for reference only Min The scaled Minimum value MinScale Max The scaled Maximum value MaxScale Conversion Linear Scaled Value Original Value MinRaw MaxRaw MinRaw MaxScale MinScale MinScale Square Root Scaled Value sqrt Original Value MinRaw MaxScale MinScale sqrt MaxRaw MinRaw MinScale Ver 1 00 Date Oct 29 2010 Page 32 NAPOPC_CE6 DA Server User s Manual Deadband In general keep 0 in this field Deadband will only apply to items in the group that have a dwEUType of Analog available If the dwEUType is Analog then the EU Low and EU High values for the item can be used to calculate the range for the item This range
89. r iStatus unsigned char UserSetReg Float unsigned short iUserAddress float iStatus unsigned char UserGetReg_Float unsigned short iUserAddress float iStatus unsigned char UserSetReg Short unsigned short iUserAddress short iStatus unsigned char UserGetReg_Short unsigned short iUserAddress short iStatus unsigned char UserSetReg Long unsigned short iUserAddress long iStatus unsigned char UserGetReg Long unsigned short iUserAddress long iStatus Ver 1 00 Date Oct 29 2010 Page 78 NAPOPC_CE6 DA Server User s Manual 4 4 1 1 System Function This group provides three functions for users to start and stop the NAPOPCSvr_CE6 exe and get NAPOPC_CE6 version before using QuickerIO Function and Modbus Function StartQuicker This function launches the NAPOPC_CE6 with different mode Syntax VC unsigned char StartQuicker unsigned char iMode VB NET VC NET byte Quicker System StartQuicker byte iMode Parameters iMode in The decimal number of kernel mode It is always 1 now It will provide another mode in the future Return Values O indicates success If the NAPOPC_CE6 has been run the function will return mode number Please refer to the Appendix 2 1 Remarks You have to call this function to launch the NAPOPC_CE6 before using the QuickerIO and Modbus functions Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Start up t
90. requested by modbus function number 1 5 15 Return Values 0 indicates success WCA MBADDR OVER means the iMB Address over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements Runson Versions Definedin Include Linkto XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example Set input coil status ON at address 1 VC MBSetCoil 1 1 1 VB NET Quicker Modbus MBSetCoil 1 1 1 VC NET Quicker Modbus MBSetCoil 1 1 1 Ver 1 00 Date Oct 29 2010 Page 94 NAPOPC_CE6 DA Server User s Manual MBGetCoil The function can get a coil value from a specific modbus address Syntax VC unsigned char MBGetCoil unsigned short iMB Address unsigned char iStatus unsigned char iAttr VB NET VC NET byte MBGetCoil ushort iMBAddress out byte iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to get from The range of modbus address is from 1001 to 20999 iStatus out The coil status of specific modbus address 1 means ON 0 means OFF iAttr in Assign which kind of coil you want get 1 means input coil which will be requested by modbus function number 2 0 means output coil which will be requested by modbus function number 1 5 15 Return Values 0 indicates success WCA_MBADDR_OVER means the iMBAddress over the range The legal range is from number 1001
91. s Using the DCON Utility to set modules Refer to xp 8000 ce6 user manual verx x x pdf 3 Running NAPOPC CE6 Launch NAPOPC CE6 by means of executing the NAPOPCSvr CE6 exe or NAPCOP_CE6Boot exe 4 Searching Modules Refer to the 1 2 1 Searching Modules section to search modules 5 Adding a new controller Refer to the 1 2 3 Adding A New Device section to add a new modbus RTU or modbus TCP controller 6 Saving Configuration Refer to the 1 2 13 File Save section to save the configuration 7 Closing NAPOPC_CE6 Close NAPOPC CE6 by clicking the File Exit menu item Ver 1 00 Date Oct 29 2010 Page 43 NAPOPC_CE6 DA Server User s Manual 3 Remote Accessing Available Soon OPC Client has two ways to access the OPC Server One is called Local Accessing and the other is called Remote Accessing If the OPC Client and the OPC Server are at the same computer we said this kind of architecture is Local Accessing In other words if the OPC Client should access OPC Server through a network we said this kind of architecture is Remote Accessing The following figure shows the integrated architecture including Local Accessing and Remote Accessing At the real Process Industry the two ways are often used at the same time At the Process Management Layer we often use Local Accessing architecture to monitor and control manufacturing processes At the Business Management Layer
92. s 1 short sRecvIn GetAIO_Short 1 amp sRecvIn 1 Get the analog output value from modbus address 2 short sRecvOut GetAIO_Short 2 amp sRecvOut 0 VB NET Dim m GetAIOVal As short Quicker QuickerIO GetAIO Short 7 m GetAIOVal 0 VC NET short m GetAIOVal Quicker QuickerIO GetAIO Short 7 0ut m GetAIOVal 0 Ver 1 00 Date Oct 29 2010 Page 83 NAPOPC_CE6 DA Server User s Manual GetAIO Long This function can get a single analog I O value from a specific modbus address Syntax VC unsigned char GetAIO_Long unsigned short iMBAddr long iRecv unsigned char iAttribute VB NET VC NET byte GetAIO_Long ushort iMBAddr out long fRecv byte iAttribute Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iRecv out The analog value of specific tag iAttribute in Assign which kind of analog value you want get Return Values 0 indicates success WCA ATT ERROR means the iAttibute is neither 0 nor 1 Remarks Requirements XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgent h Example VC Get the analog I O value Get the analog input value from modbus address 1 long IRecvIn GetAIO_Long 1 amp fRecvIn 1 Get the analog output value from modbus address 2 long IRecvOut GetAIO_Long 2 amp fRecvOut 0 VB NET Dim m GetAIOVal As long Quicker QuickerIO GetAIO Long 7 m GetAIOVal 0 VC N
93. specific tag 1 means ON 0 means OFF Return Values 0 indicates success Remarks Requirements Runs on Versions Defined in Include Link to 1 3 1 0 and later Quicker lib WinConAgent h Example VC Set the digital output ON to modbus address 1 SetDO 1 1 VB NET Dim m_SetDOVal As Byte Quicker QuickerIO SetDO 1 m_SetDOVal VC NET byte m_SetDOVal Quicker QuickerIO SetDO 1 m_SetDOVal Ver 1 00 Date Oct 29 2010 Page 88 NAPOPC_CE6 DA Server User s Manual SetAO_ Short This function can set a single analog output value to a specific modbus address Syntax VC unsigned char SetAO_Short unsigned short iMBAddr short iSend VB NET VC NET byte SetAO Short ushort iMBAddr out short iSend Parameters iMBAddr in The modbus address of specific tag in the NAPOPC CEO6 The range is from 1 to 1000 iSend out The analog value of specific tag Return Values 0 indicates success Remarks Requirements Runs on Versions Defined in Include Link to XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Set the analog output value as 42 to modbus address 1 SetAO Short 1 42 VB NET Quicker QuickerIO SetAO Short 1 42 VC NET Quicker QuickerIO SetAO_Short 1 42 Ver 1 00 Date Oct 29 2010 Page 89 NAPOPC_CE6 DA Server User s Manual SetAO_Long This function can set a single analog output value to a specific m
94. t O 7 For 8K 87K Modules Timeout po mSec Remote 1 0 Modules Module Setting Module Timeout mSec poo Address o 0 255 Checksum Disable Slot 0 7 For 8K 87K Modules COM Port Setting COM Port 2 Parity BaudRate 600 v paasmts 7 Stop Bits Internal Device _ Simulate 1 0 Pending Time o ms Fig 1 2 3 2 2 Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Module User can click on the ComboBox to select a Module ID Address Specifies a Module Address for this module The default value is 0 and the valid range is between 0 to 255 This field is disabled for the 8000 sub devices It will use the 8000 main device s address Slot The 8000 main device has 4 or 8 slots for the 8000 sub device to plug in This slot field indicates the slot number that the 8000 sub device is using The valid range is from 0 to 7 This field is disabled for 8000 main device and 7000 series modules Timeout Specifies timeout Response time value for this module A smaller timeout value may cause communication failure and a greater timeout value may reduce the performance of the client program This field is disabled for the 8000 sub devices and it will use the 8000 main device s timeout value Ver
95. t connected to remote client Log n was started Device connection via Setup Network TCP IP Local IP 10 0 0 80 Exit File Security Tools A ETES ICPDAS By cross FS Ext WinCon 1 B064 1 B051 1 5056 1 8024 1 8017H Demo Program EUH trend CUN necro NT Monitor If the third party software which supports Modbus RTU TCP client wants to connect to NAPOPC CE6 just remember to check the services Modbus RTU and Modbus TCP Please refer to the user manual of the third party made for setting And for NAPOPC CE6 please refer to the section 1 2 11 Services Setup 4 2 1 Supported Modbus Commands The Modbus protocol establishes the format for the master s query by placing into the device or broadcast address a function code defining the requested action any data to be sent and an error checking field The slave s response message is also constructed using the Modbus protocol It contains fields confirming the action Ver 1 00 Date Oct 29 2010 Page 76 NAPOPC_CE6 DA Server User s Manual taken any data to be returned and an error checking field If an error occurred in receipt of the message or if the slave is unable to perform the requested action the slave will construct an error message and send it as its response Code Description I O Unit Min Max Code Description 1 0 Unit Min Max 01 0x01 Read Coil Status In Bit 1 2000 0x7D0 02 0x02 Read Discrete Inputs Stat
96. the valid range is from 0 to 255 Please verify the COM port number that the RS 485 network is connected to Modules COM 1 COM 2 COM 3 COM 4 COM 5 Local I 87K Yes Remote I 7K I 87K via RS 232 Yes Remote I 7K I 87K via RS 485 Yes RS 232 485 Remote I 7K I 87K via Remote I 7K I 87K via RS 232 Yes ET 7000 If this field is checked NAPOPC can search not only the modules communicating via COM port but also ET 7000 modules via Ethernet automatically Clear Modules Modules can be added many times If this field is checked it removes all modules from the list window before searching Checking this box prevents adding a duplicate module The default setting is not checked Ver 1 00 Date Oct 29 2010 Page 8 NAPOPC_CE6 DA Server User s Manual Local Search If this field is checked it searches the I 8K modules plugged in the XP 8000 CE6 first Baud Rate Searching Specifies which Baud Rate will be looking for The default setting is 9600 Naturally if multiple baud rates are checked the search will be longer NAPOPC CE6 has to close and then reopen the COM ports to communicate with modules when searching for multiple baud rates This also reduces communication performance Thus using the same baud rate and COM port number for every module is highly recommended Select All Sets all the Baud Rate fields to be checked Pl
97. ther modules which are connected with each other OK Click on the OK button to add the new module setting Cancel Click on the Cancel button to avoid any changes Step 5 Click on the OK button to add this new module 1 2 3 3 Adding a New Internal Device Step 1 Click on the Add New Device menu item or the I amp icon to add a new module Ver 1 00 Date Oct 29 2010 Page 16 NAPOPC_CE6 DA Server User s Manual Add Edit View Servi New Device Ctrl D New Group Ctrl G New Tag Ctrl T Search Modules Generate Tags Multi Tags Fig 1 2 3 3 1 Step 2 The Select Device window pops up Step 3 Click on the DCON radio button Step 4 Click on the Internal Device radio button e DCON O FRnet Modbus r 8kj87k Embedded Modules Module Setting Slot 0 7 For 8K 87K Modules Timeout 500 mSec Remote 1 0 Modules Module Setting Module roi v Timeout mSec 500 Slot fp 0 7 For 8KJ87K Modules COM Port Setting COM Port F E Parity ione Baud Rate esoo Y Data Bits Lv Stop Bits FIIIT TII IET _ Simulate 1 0 Pending Time o ms Fig 1 2 3 3 2 Device Name Device Name Devices Module 8013 Y Range Ih one Address F 0 255 Checksum Disable Iz Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The
98. to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements Runson Versions Definedin Include Linkto XP 8000 CE6 1 3 1 0 and later Quicker lib WinConAgenth Example VC Get input coil status from address 1 unsigned char iStatus MBGetCoil 1 amp iSatus 1 VB NET Dim m_MBGetCoilVal As Byte Quicker Modbus MBGetCoil 1 m_MBGetCoilVal 1 VC NET byte m_MBGetCoilVal Quicker Modbus MBGetCoil 1 out m_MBGetCoilVal 1 Ver 1 00 Date Oct 29 2010 Page 95 NAPOPC_CE6 DA Server User s Manual MBSetReg The function can set a register value into NAPOPC CE6 Syntax VC unsigned char MBSetReg unsigned short iMBAddress short iStatus unsigned char iAttr VB NET VC NET byte MBSetReg ushort iMBAddress short iStatus byte iAttr Parameters iMBAddress in The modbus address which you want to set into The range of modbus address is from 1001 to 20999 iStatus in The register value of specific modbus address iAttr in Assign which kind of register you want set 1 means input register which will be requested by modbus function number 4 0 means output register which will be requested by modbus function number 3 6 16 Return Values 0 indicates success WCA_MBADDR_OVER means the iMBAddress over the range The legal range is from number 1001 to number 20999 WCA MBATTR ERROR means the iAttr is neither 1 nor 0 Remarks Requirements
99. uration Utility Default Security Authentication m Impersonation anonymous v Enable DCOM Secure references Launch Cancel Step 2 Select the Access button to add an account which is identical to the account on the server site Add Permissions Step 3 Select the Launch button to add an account which is identical to the account on the server site as above Step 4 Select Class button of DCOM Configuration Utility to setup Class Activation Uncheck Run Locally and check Run remotelly Enter IP address of server site Class Activation Ron Locally UR v Roo remotely Seeve 192 168 1 112 Cancel Step 5 Execute NTLMUser exe Ver 1 00 Date Oct 29 2010 Page 67 NAPOPC_CE6 DA Server User s Manual User Account Manager 4 NTLM user Step 6 Fill out User name Password and Confirm pwd which is identical to the account on the server site User Account Manager NTLM user ane aaa S C u Remove ueer_ Step 7 Select Control Panel gt Owner Properties gt Network ID and fill out the User name Password which is identical to the account on the server site Owner Properties Identification Notes Windows CE uses this information to gain access to network resources Enter the user name password and domain provided by your network administrator User Name rest Password won Domain
100. us In Bit 1 2000 0x7D0 03 0x03 Read Holding Registers Registers In Word 1 125 0x7D 04 0x04 Read Input Registers Registers In Word 1 125 0x7D 05 0x05 Write Single Coil Coil Out Bit 1 1 06 0x06 Write Single Register Register Out Word 1 1 15 0x0F Write Multiple Coils Coils Out Bit Bit 1 800 16 0x10 Write Multiple registers Registers Out Word Word 1 100 4 3 NAPOPC_CE6 with NAPOPC_ST NAPOPC_XPE You can construct a complete control system from top to bottom via NAPOPC_CE6 combining with NAPOPC_ST NAPOPC_XPE and SCADA software Please refer to the 1 2 11 Services Setup to set up NAPOPC_CE6 services depending on which communication way that NAPOPC_ST NAPOPC_XPE used NAPOPC CE6 provides three ways Modbus TCP Modbus RTU and RPC Server to communicate with NAPOPC_ST NAPOPC_XPE At NAPOPC_ST NAPOPC_XPE site please refer to the Adding A New Modbus TCP Controller Adding A New Modbus RTU Controller and Adding A New RPC Controller in the NAPOPC ST NAPOPC XPE user manual 4 4 NAPOPC CE6 with User Application Users can develop their own application program with VC VB NET or VC NET and share data with NAPOPC_CE6 via Quicker API User can use the Modbus RTU TCP services or just use the share memory inside NAPOPC_CE6 to exchange data between different programs We do not focus on the programming skill of VC VB NET VC NET We just focus on the Quicker API below 4 4 1 Quicker API for
101. vice Type Internal Device I O Module Type Analog Input Channel fi Location Output Register Data Bool Scaling Enable Simulation sine v Fig 1 2 5 2 1 Name Any Tag Name may be used but avoid names with spaces or punctuation such as The clients will use the Device Name and Tags to access its value Hence the Tag Name cannot be a duplicate of another tag in the same group Modbus address Specifies an unique modbus address for this tag in order to communicate with modbus client The default address is already an unique one After that you also need to choose the address type There are four address types you can choose They are Input Coil Output Coil Input Register and Output Register which depends on your tag property It is important to give an appropriate modbus address type and address value Address Type Range Output Coil 001001 020999 Input Coil 101001 120999 Input Register 301001 320999 Output Register 401001 420999 Ver 1 00 Date Oct 29 2010 Page 29 NAPOPC_CE6 DA Server User s Manual Description Specifies the description text for this tag This can be blank 1 2 5 3 Adding a New Tag For Modbus Device Step 1 Click on the Add New Tag menu item or the icon to add a new tag Step 2 The Tag Properties window pops up Step 3 Choice the Settings page Because the tag belongs to the controller ty
102. y standards such as Microsoft DNA OPC DDE ODBC XML SOAP and ActiveX For more information please visit http www indusoft com Step 1 Before using the InduSoft OPC Client module you need to configure the NAPOPC CE6 on the XP 8000 CE6 first De Adi Edt ww Seven Bee Heo reji eslello sae z oH m g amp oo BONUM gt ti esr 2 00 Bom i 10 amp ot 00 Out 2 n ei ioo 3 00 Mma m amp 00 MOnt 4 3 IPLE SOs er Cut W amp io Bom B Ot 6 i5 si 20175 00 tes 1 Bar o monet 2 58 200 mons 4 E Sar most 10 1 5 Sor 3 monet m Boz Ot 12 21 San Moss 5 2 Sou Mons 34 2 Smis tO tout 15 M Vae 005 has 16 Tagi Ver 1 00 Date Oct 29 2010 Page 70 NAPOPC_CE6 DA Server User s Manual Step 2 Run InduSoft Web Studio version 6 0 Web Ready induSoft Tools for Automation Web and Wireless Automation the easy way Loading Database Copyright 1997 2004 InduSoft This program is protected by Inte Step 3 Create a new project Sh liata Wels Studie Dipig oou a a LI anig apnee Onr FEA Ver 1 00 Date Oct 29 2010 Page 71 NAPOPC_CE6 DA Server User s Manual Step 4 In the Studio Workspace window click the OPC tab right click the OPC folder and click Insert gt Idate Web Stedie Diplur2 oe Ee Ein Yew nx Beet Took Hini b rua te inak o a Oe ci ws iow somal me La hamilik modb Amn a AE H HU me IDE a ie a
Download Pdf Manuals
Related Search
Related Contents
AURORA - Midsummer Solar PV Wholesale Apple Power Mac 073-0841 User's Manual Betriebsanleitung für hydrostatischen - Wekonn e-shop hier - Waldorf H240 - Citizen Manual - Omega Bio-Tek Manual de usuario retro 100.cdr utilisation du four à micro User Manual Copyright © All rights reserved.
Failed to retrieve file