Download WEB SERVER Web Functionality and HTML page construction

Transcript
FREE Application Notes
rel. 07.06.12
Appendix - Libraries
Listed below are the functions available in the Library > Target blocks section of FREE Studio Application, as described also in FREE Studio
List of Bridge functions
sysBridge
Enable/Disable bridge function for each modbus RTU slave.
Input vars num: 5
node : USINT (* node value [0...127] and [255] *)
enable : BOOL (* TRUE=Enable, FALSE=Disable *)
tmo1 : UINT (* Timeout for Read Registers command [ms] *)
tmo2 : UINT (* Timeout for Write Registers command [ms] *)
tmo3 : UINT (* Timeout for Packet command [ms] *)
Any slave modbus RTU node defined in a Connection project can be reached by modbus TCP/
IP via FREE Evolution’s ETH Plug-In using modbus commands 0x03 and 0x10. If the slave node is
part of FREE Way, it can be reached using FREE Studio in modbus TCP/IP.
To reach the node, the relative bridge function must be enabled by invoking the sysBridge()
function, stating the node number and selecting enable = TRUE.
To remove the node, invoke sysBridge(), stating the node number and selecting enable = FALSE.
If all the nodes can be reached, simply invoke sysBridge() function, stating node=255 and selecting enable=TRUE.
To disable all nodes, state nodes = 255 and select enable=FALSE.
To reach a node in modbus TCP/IP, e.g. node=2, simply set the ID to 2 instead of 255.
The function returns a BOOL which could have the following meanings:
TRUE = Done.
FALSE = Not done! Node value not allowed.
Eliwell Controls s.r.l.
Via dell’Industria, 15 • Zona Industriale Paludi • 32010 Pieve d’Alpago (BL) ITALY
Telephone +39 0437 986 111 • Fax +39 0437 989 066
Technical helpline +39 0437 986 250 • E-mail [email protected]
www.eliwell.it
page 27