Skip to content

什么是console-LocalSyncWrapper? 这是一个opc客户端命令行程序,面向对象的OPC DA Client SDK / ToolKit用C ++编写,支持X86 / X64,实现OPC DA规范版本2.05A What is a console-LocalSyncWrapper? This is an opc client command line program, object-oriented OPC DA Client SDK / ToolKit written in C++, supports X86 / X64, implements OPC DA specification version 2.05A 编译和运行环境为:windows 10 x64, 版…

License

Notifications You must be signed in to change notification settings

masx200/OPC-Client-console-LocalSyncWrapper

Repository files navigation

OPC-Client-console-LocalSyncWrapper

什么是 OPC-Client-console-LocalSyncWrapper?

这是一个 opc 客户端命令行程序,面向对象的 OPC DA Client SDK / ToolKit 用 C ++编写,支持 X86 / X64,实现 OPC DA 规范版本 2.05A

What is a console-LocalSyncWrapper? This is an opc client command line program, object-oriented OPC DA Client SDK / ToolKit written in C++, supports X86 / X64, implements OPC DA specification version 2.05A

编译和运行环境为:windows 10 x64, 版本号为 1903 ,系统内部版本号为 18362.30,开发工具为 Microsoft Visual Studio 2019.

The compile and run environment is: windows 10 x64, version number is 1903, the system internal version number is 18362.30, and the development tool is Microsoft Visual Studio 2019.

这个项目基于 edimetia3d/OPC-Client-X64 开发而来,解决了它不能在 win10 系统运行的问题,并采用命令行输入输出方式,以便在其他程序中调用.

https://github.com/edimetia3d/OPC-Client-X64

This project is based on edimetia3d/OPC-Client-X64 and solves the problem that it can't run on win10 system, and uses command line input and output mode to call in other programs.

这个项目需要在 windows 系统中,以管理员身份运行

This project needs to be run as an administrator on the windows system.

更多帮助请看这里 See more help here

https://github.com/masx200/OPC-Client-console-LocalSyncWrapper/blob/master/readme%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.md

怎样使用 console-LocalSyncWrapper?

How to use console-LocalSyncWrapper?

以管理员身份运行 cmd.exe 或者 powershell.exe,然后运行

假设 console-LocalSyncWrapper.exe 所在的目录为

Run cmd.exe or powershell.exe as an administrator and run

Suppose the directory where console-LocalSyncWrapper.exe is located is

d:\Documents\console-LocalSyncWrapper

然后运行指令

Then run the command

d:\Documents\console-LocalSyncWrapper\console-LocalSyncWrapper.exe

不带参数的指令

Instruction without parameters

d:\Documents\console-LocalSyncWrapper\console-LocalSyncWrapper.exe

默认相当于

Default equivalent

d:\Documents\console-LocalSyncWrapper\console-LocalSyncWrapper.exe -h

opc 客户端命令行 OPC DA Client 实现 OPC DA 规范版本 2.05A

使用-h 参数查看帮助和更多功能

opc client command line OPC DA Client implements OPC DA specification version 2.05A

View help and more features with the -h parameter

帮助

第一个参数为读或写或帮助或默认操作或列出 -h/-l/-d/-r/-w/-rb/-wb/-rf/-wf

第二个参数为服务器名称 servername

第三个参数为读或写的目标项目地址 address

第四个参数为写的数值 value,读不需要数值输入

Help

The first parameter is read or write or help or default action or list -h/-l/-d/-r/-w/-rb/-wb/-rf/-wf

The second parameter is the server name servername

The third parameter is the target item address for reading or writing address

The fourth parameter is the value written, value does not need to be entered

用法:显示帮助说明

Usage: Display help description

usage: console-LocalSyncWrapper.exe -h

用法:列出本地 servername 的列表

Usage: List the list of local servernames

usage: console-LocalSyncWrapper.exe -l

用法:指定的 servername 的默认读取

Usage: Default read of the specified servername

usage: console-LocalSyncWrapper.exe -d <servername>

用法:用 uint 类型来从指定的 servername 的读取多个 address 的数值

Usage: Use the uint type to read the value of multiple addresses from the specified servername

usage: console-LocalSyncWrapper.exe -r <servername> <address> [address][address] [address] ... [address]

用法:用 uint 类型来从指定的 servername 的写入 address 的数值为 value

Usage: Use the uint type to write the value of the address from the specified servername to value

usage: console-LocalSyncWrapper.exe -w <servername> <address> <value>

用法:用 bool 类型来从指定的 servername 的读取多个 address 的数值

Usage: Use the uint type to write the value of the address from the specified servername to value

usage: console-LocalSyncWrapper.exe -rb <servername> <address> [address][address] [address] ... [address]

用法:用 bool 类型来从指定的 servername 的写入 address 的数值为 value

Usage: Use the bool type to write the value of the address from the specified servername to value

usage: console-LocalSyncWrapper.exe -wb <servername> <address> <value>

用法:用 float 类型来从指定的 servername 的读取多个 address 的数值

Usage: Use the float type to read the value of multiple addresses from the specified servername

usage: console-LocalSyncWrapper.exe -rf <servername> <address> [address][address] [address] ... [address]

用法:用 float 类型来从指定的 servername 的写入 address 的数值为 value

Usage: Use the float type to write the address value from the specified servername to value

usage: console-LocalSyncWrapper.exe -wf <servername> <address> <value>

示例

example: console-LocalSyncWrapper.exe -h

example: console-LocalSyncWrapper.exe -l

example: console-LocalSyncWrapper.exe -d Kepware.KEPServerEX.V6

example: console-LocalSyncWrapper.exe -r ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 Channel1.Device1.x3 Channel1.Device1.x4

example: console-LocalSyncWrapper.exe -w ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 0

example: console-LocalSyncWrapper.exe -rb ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 Channel1.Device1.x3 Channel1.Device1.x4

example: console-LocalSyncWrapper.exe -wb ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 1

example: console-LocalSyncWrapper.exe -rf ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 Channel1.Device1.x3 Channel1.Device1.x4

example: console-LocalSyncWrapper.exe -wf ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 20.55

输入以下指令

console-LocalSyncWrapper -d ICONICS.SimulatorOPCDA.2

等价于

console-LocalSyncWrapper -r ICONICS.SimulatorOPCDA.2 Channel1.Device1.x0 Channel1.Device1.x1 Channel1.Device1.x2 Channel1.Device1.x3 Channel1.Device1.x4 Channel1.Device1.x5 Channel1.Device1.x6 Channel1.Device1.x7 Channel1.Device1.x10 Channel1.Device1.x11 Channel1.Device1.x12 Channel1.Device1.x13 Channel1.Device1.x14 Channel1.Device1.x15 Channel1.Device1.x16 Channel1.Device1.x17 Channel1.Device1.y0 Channel1.Device1.y1 Channel1.Device1.y2 Channel1.Device1.y3 Channel1.Device1.y4 Channel1.Device1.y5 Channel1.Device1.y6 Channel1.Device1.y7 Channel1.Device1.y10 Channel1.Device1.y11 Channel1.Device1.y12 Channel1.Device1.y13 Channel1.Device1.y14 Channel1.Device1.y15

About

什么是console-LocalSyncWrapper? 这是一个opc客户端命令行程序,面向对象的OPC DA Client SDK / ToolKit用C ++编写,支持X86 / X64,实现OPC DA规范版本2.05A What is a console-LocalSyncWrapper? This is an opc client command line program, object-oriented OPC DA Client SDK / ToolKit written in C++, supports X86 / X64, implements OPC DA specification version 2.05A 编译和运行环境为:windows 10 x64, 版…

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published