OPC Client Data Read/Write communication driver is the driver to communicate with Opc Client program.
Note) Setting of OPC Client program, Main help of OPC Client program.
<Figure 1> is read setting example of OPC Client Data Read/Write communication driver.
<Figure 1> Read setting example of OPC Client Data Read/Write communication driver |
Device part of <Figure 1> input Device type( fixed to 'SharedMemory' ), name of Shared Memory(SharedName),respectively, according to setting of OPC Client program.
OPC Client Data Read/Write communication driver read schedule
Read schedule setting parameters are as follows:
1) Server or Server Access name – OPC server name or Group Access name of OPC Client program.
1 ~ 20 character ( based on english ), space, ...
2) Group of Group Access name – Group name of OPC server or Group Access name of OPC Client program.
1 ~ 30 character ( based on english ), space, ...
3) Read start address – don't care.
4) Save start address for Communication Server – Saving start address of Communication Server.
5) Read size – fixed according to number of Server, Group at OPC Client program.
Read schedule example)
READ, , , 0, 0, 1,
If you click the icon in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of OPC Client Data Read/Write communication driver¡¯s Option dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
<Figure 3> Example of OPC Client Data Read/Write communication driver¡¯s read schedule Add/Edit dialog box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.
You can set OPC Item of OPC Client program by using 'write settings'.
Digital Write
Digital write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION don't care.
3) ADDRESS order number of array or object. ( decimal unit, don't use single data Item )
4) Extra1 file number or Server/Group/Item, Access name,
Extra2 : 1 ~ 3 = filename, filename : work folder\SCAN\itemWriteCommand%05d.ini,
%05 = number of Extra1, input Server, Group, Item data separated by . ( dot ),
input example) server1.gr001.tag1
Extra2 : other = input Server/Group/Item or Access name.
5) Extra2 input method of Server/Group/Item or Access name,
1 = get Server/Group/Item or Access name at file, data = Numeric data,
2 = get Server/Group/Item or Access name at file, data = String data,
3 = get Server/Group/Item or Access name at file, data = Date/Time data,
0, ... = input Server/Group/Item or Access name at Extra1.
Input method of Server/Group/Item or Access name at file
Input method of Server/Group/Item or Access name at file are as follows :
Input example)
work folder = C:\TESTWORK\EX, Extra1 = 15, Extra2 = 2
filename = C:\TESTWORK\EX\itemWriteCommand00015.ini.
writiing file example for Numeric data )
OPCSample.OpcDaServer.1
gr001
Static/Analog Types/Int
Description) Server name = OPCSample.OpcDaServer.1, Group name = gr001, Item name = Static/Analog Types/Int, Output value = Writing Output value.
writiing file example for String data )
OPCSample.OpcDaServer.1
gr001
Static/Simple Types/String
test output Value
Description) Server name = OPCSample.OpcDaServer.1, Group name = gr001, Item name = Static/Simple Types/String, Output string = test output Value.
writiing file example for Date/Time data )
OPCSample.OpcDaServer.1
gr001
Static/Simple Types/DateTime
2014-01-28 16:27:20
Description) Server name = OPCSample.OpcDaServer.1, Group name = gr001, Item name = Static/Simple Types/DateTime, Output Date/Time = 2014-01-28 16:27:20.
Write example 1)
PORT:0, station:0, ADDRESS:0000, Extra1:server1.gr001.tag123, Extra2 : 0, Output value = On
The setting parameter shown above is bit On write example for Server name = server1, Group name = gr001, Item name = tag123.
Write example 2)
PORT:0, station:0, ADDRESS:0003, Extra1:server1.gr001.tag125, Extra2 : 0, Output value = Off
The setting parameter shown above is bit Off write example of 4th array for Server name = server1, Group name = gr001, Item name = tag125.
Write example 3)
PORT:0, station:0, ADDRESS:0000, Extra1:3, Extra2 : 1
The setting parameter shown above is bit write example.
The writing Server/Group/Item name get from ¡®work folder\SCAN\itemWriteCommand00003.ini¡¯ file and Output value = writing Output value.
Write example 4)
PORT:0, station:0, ADDRESS:0000, Extra1:25, Extra2 : 2
The setting parameter shown above is bit write example.
The writing Server/Group/Item name get from ¡®work folder\SCAN\itemWriteCommand00025.ini¡¯ file and Output string = 4th line String data of file.
Write example 5)
PORT:0, station:0, ADDRESS:0000, Extra1:112, Extra2 : 3
The setting parameter shown above is bit write example.
The writing Server/Group/Item name get from ¡®work folder\SCAN\itemWriteCommand00112.ini¡¯ file and Output Date/Time = 4th line Date/Time data of file.
Analog Write
Analog write and digital write have the same setting parameters except output value.
Note) Setting of OPC Client program, Main help of OPC Client program.