Difference between revisions of "GeViSoft"
| Line 9: | Line 9: | ||
Communicate with GeViSoft server, must be called periodically. | Communicate with GeViSoft server, must be called periodically. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 312: | Line 312: | ||
Writes given command. | Writes given command. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 324: | Line 324: | ||
Invokes custom action with given values. | Invokes custom action with given values. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 342: | Line 342: | ||
Starts given event. | Starts given event. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 354: | Line 354: | ||
Stops given event. | Stops given event. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 366: | Line 366: | ||
Writes value to given input. | Writes value to given input. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
| Line 384: | Line 384: | ||
Writes value to given output. | Writes value to given output. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | | colspan="5" |[[ | + | | colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]] |
|- | |- | ||
|in | |in | ||
Latest revision as of 11:50, 23 September 2019
Back to Libraries
GeViSoft library
Interaction with GeViSoft server through GETAS interface.
Communication
GEVISOFT_COMM
Communicate with GeViSoft server, must be called periodically.
| Asynchronous interface | ||||
| in | IP_ADDR | string | server ip address | |
| in | PORT | uint | server port | |
| out | CONNECTED | bool | connection state | |
Reading
All GeViSoft library reading blocks works with data received by GEVISOFT_COMM function block.
Each received command is stored in internal cache for one program cycle. During this program cycle can by processed by unlimited count of reading blocks.
GEVISOFT_READ
Checks incoming data for given command
| in | CMD | string | received command | |
| out | VALID | bool | command received | |
| out | IDX | usint | last index of proper command in cache (starts by 0) | |
| out | COUNT | usint | count of proper commands in cache |
GEVISOFT_R_CUSTOM_ACTION
Returns values of last received custom action
| out | VALID | bool | CustomAction command received | |
| out | IDX | usint | last index of proper command in cache (starts by 0) | |
| out | COUNT | usint | count of proper commands in cache | |
| out | CUSTOM_INT | lint | custom_int value | |
| out | CUSTOM_STRING | string | custom_string value |
GEVISOFT_R_EVENT_STARTED
Check if event with given name was started
| in | NAME | string | event name | |
| out | VALID | bool | event started | |
| out | IDX | usint | last index of proper command in cache (starts by 0) |
GEVISOFT_R_EVENT_STOPPED
Check if event with given name was stopped
| in | NAME | string | event name | |
| out | VALID | bool | event stopped | |
| out | IDX | usint | last index of proper command in cache (starts by 0) |
GEVISOFT_R_GSC_TEMPERATURE
Returns temperature of module with given id
| in | ID | string | module id | |
| out | VALID | bool | GeViScope Temperarture command received | |
| out | VALUE | lint | temperature value | |
| out | IDX | usint | last index of proper command in cache (starts by 0) |
GEVISOFT_R_OUTPUT
Reads value of given output
| in | N | uint | output number | |
| out | VALID | bool | value of given output received | |
| out | VALUE | lint | output value | |
| out | IDX | usint | last index of proper command in cache (starts by 0) |
GEVISOFT_R_INPUT
Reads value of given input
| in | N | uint | input number | |
| out | VALID | bool | value of given input received | |
| out | VALUE | lint | input value | |
| out | IDX | usint | last index of proper command in cache (starts by 0) |
GEVISOFT_R_SYSTEM_ERROR
Returns information about last received system error
| out | VALID | bool | SystemError command received | |
| out | IDX | usint | last index of proper command in cache (starts by 0) | |
| out | COUNT | usint | count of proper commands in cache | |
| out | CLIENT_ID | ulint | client_id value | |
| out | ERROR_CODE | lint | error_code value | |
| out | ERROR_SUBCODE | lint | error_subcode value | |
| out | ERROR_TEXT | string | error_text value |
GEVISOFT_R_VIDEO_SYNC
Reads sync status of given video input
| in | N | uint | video input number | |
| out | VALID | bool | sync status of given video input received | |
| out | VALUE | lint | sync status | |
| out | IDX | usint | last index of proper command in cache (starts by 0) |
Writing
GEVISOFT_WRITE
Writes given command.
| Asynchronous interface | ||||
| in | CMD | string | command to write | |
GEVISOFT_W_CUSTOM_ACTION
Invokes custom action with given values.
| Asynchronous interface | ||||
| in | CUSTOM_INT | lint | custom_int | |
| in | CUSTOM_STRING | string[255] | custom_string | |
GEVISOFT_W_EVENT_START
Starts given event.
| Asynchronous interface | ||||
| in | NAME | string | event name | |
GEVISOFT_W_EVENT_STOP
Stops given event.
| Asynchronous interface | ||||
| in | NAME | string | event name | |
GEVISOFT_W_INPUT
Writes value to given input.
| Asynchronous interface | ||||
| in | N | uint | input number | |
| in | VALUE | bool | input value | |
GEVISOFT_W_OUTPUT
Writes value to given output.
| Asynchronous interface | ||||
| in | N | uint | output number | |
| in | VALUE | bool | output value | |