| Datatypes | Supported Format | |
|---|---|---|
| Read | Write | |
| BOOL | 0/1 | 0/1 or TRUE/FALSE |
| SINT | Decimal | Decimal |
| USINT | Decimal | Decimal |
| BYTE | Decimal | Decimal |
| INT | Decimal | Decimal |
| UINT | Decimal | Decimal |
| WORD | Decimal | Decimal |
| DINT | Decimal | Decimal |
| UDINT | Decimal | Decimal |
| DWORD | Decimal | Decimal |
| LINT | Decimal | Decimal |
| ULINT | Decimal | Decimal |
| LWORD | Decimal | Decimal |
| REAL | Decimal/Exponential | Decimal/Exponential |
| LREAL | Decimal/Exponential | Decimal/Exponential |
| TIME | Decimal ( in milliseconds ) | Decimal ( in milliseconds ) |
| STRING | String enclosed in single quotes (In JSON read, single quotes inside string is not supported) | String enclosed in single quotes (single quotes inside string is not supported) |
Requesting elements in complex datatypes:
Array element specification:
<array variable name>[<element index>]
Example:
GET kas/plcvariables?variables=bLedStatus[2]
Structure member specification:
<structure variable name>.<element name>
Example:
GET kas/plcvariables?variables=StructInstance.MemberVariable
Program local variable specification:
<program name>.<variable name>
Example:
GET kas/plcvariables?variables=UntitledST.LocalVariable
If a program name is not specified, the variable is considered to be a global variable.
The server may not return an error when written values are out of bounds or are not valid. This is because the behavior is undefined
Example: ‘Hello World’ for a INT type variable.
|
Copyright © 2015 Kollmorgen™ |
|