Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Syntax:

  1. Method: GET
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/GetVersion
  3. Response Example:
Code Block
{"GetVersionResult":2}

...

Syntax:

  1. Method: GET
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/Login?userName=guest&password=test.
  3. Response Example:
Code Block
{
"LoginResult":
	{
	"Handle": 2,
	"Status": ""
}
}
Returns the connection handle (whether >= 0) or error code (whether < 0).

...

  • handle: Connection. This value was returned by Login method.

Syntax:

  1. Method: GET
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/Logout?handle=1.
  3. Response Example:
Code Block
{
"LogoutResult": 0
}
0: OK, 1: Invalid connection handle.

...

  • handle: Connection. This value was returned by Login method.
  • objectName: Object (Tag) Name.

Syntax:

  1. Method: GET
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/ReadObject?handle=1&objectName=tagExample.
  3. Response Example:
Code Block
{
"ReadObjectResult":
	{
	"ObjectName": "tagExample",
	"Quality": 64,
	"UtcTimeStamp": "11/29/2019 17:33:47",
	"Value": "0"
}
}
Returns Value of the object.

...

  • handle: Connection. This value was returned by Login method.
  • objectNames: Objects (Tags) Name.

Syntax:

  1. Method: POST
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/ReadObjects.
  3. Body Example:
Code Block
{
"handle" : 1,
"objectNames" :["tagExample1", "tagExample2"]}

...

  • handle: Connection. This value was returned by Login method.
  • item: Object (Tag) Name.
  • force: Flag to force value.

Syntax:

  1. Method: POST
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/WriteObject.
  3. Body Example:
Code Block
{
	"handle" : 1,
	"item" : {
   	"ObjectName": "tagExample2",
	"Quality": 192,
	"UtcTimeStamp": "02/12/2021 11:13:36",
	"Value": "2"  
	},
	"force": false}

4. Response Example:

...

  • handle: Connection. This value was returned by Login method.
  • items: Object (Tag) Names.
  • force: Flag to force value.

Syntax:

  1. Method: POST
  2. URL Example: http://localhost/fs-89.12/WebAccessService.svc/WriteObjects.
Code Block
{
	"handle" : 1,
	"itensitems" : 
	[{
   	"ObjectName": "tagExample1",
	"Quality": 192,
	"UtcTimeStamp": "02/12/2021 11:13:36",
	"Value": "2"  
	},
	{
   	"ObjectName": "tagExample2",
	"Quality": 192,
	"UtcTimeStamp": "02/12/2021 11:13:36",
	"Value": "13"  
	}],
	"force": false}

...