API Reference
First Class functions
|
Establishes a connection to the RcWebApi Commands Socket and returns CommandServer object which can be used to interact with the socket. |
|
Establishes a connection to the RcWebApi Subscribe Socket and returns SubscribeServer object which can be used to interact with the socket. |
|
Returns the value of a given variable on the PLC |
|
Creates a function to get variable values with a fixed prefix and server. |
|
Sets a variable on the PLC |
|
Creates a function to set variable values with a fixed prefix and server. |
CommandServer
Holds the connection to the RcWebApi's command socket. |
|
Disconnects from the socket. |
|
Returns whether the socket is connected or not. |
|
|
Sends the given command and it's parameters to the PLC returns a ticket |
|
Sends the given command and it's parameters to the PLC and waits till it's finished. |
Ticket
|
A Ticket represents one command sent to the socket. |
|
Waits and blocks until the ticket is completed or the timeout is reached. |
Unique request id for this ticket. |
|
Current state of the Ticket |
SubscribeServer
Holds the connection to the RcWebApi's subscribe socket. |
|
Unsubscribes from all active subscriptions and closes the connection to the socket. |
|
Returns whether the socket ist connected or not. |
|
|
Subscribes to a topic. |
|
Unsubscribe from a previously subscribed topic. |
Compatibility Layer
As some functions is not present in RcWebApi beta the compatibility layer provides functionality to connect to the TcWebApi to achive those functions. This is a temporary fix while RcWebApi is still in beta and will be removed in the future.
|
Establishes a connection to the TcApi and returns a instance of TcVar which can be used to set and get variables via Teach Control |
|
Sets a Variable on the PLC via the TcApi |
|
Gets a Variable from the PLC via the TcApi |
|
Establishes a connection to the TcApi and returns a instance of TcProg which can be used to start and stop programs that are already definen in Teach Control |
|
Starts a Teach Control programm and waits until it's execution is finished. |
|
Loads and starts a Teach Control program. |
Stops the currently executing program and unloads the Teach Control project. |
|
|
Loads a Teach Control Project |
Unloads the currently loaded Teach Control project |
|
Returns whether a program is running or not |