Difference between revisions of "TestIT:Configuration Socket"

From Nolek Wiki
Jump to navigation Jump to search
 
Line 52: Line 52:
  
 
Find a code example and the parameters in the functions window, in section socket.
 
Find a code example and the parameters in the functions window, in section socket.
 +
 +
 +
[[TestIT:Configuration#Devices_in_TestIT%3A|Back to Configuration]]

Latest revision as of 15:57, 11 September 2019

6.3.14 Socket

Socket is a TCP/IP communication.

Setup fields:

  • Configuration
  • Command structure
  • Test connection

Configuration:

  1. Write the device name and device description (required)
  2. Select if the device is active or not
  3. Select the following:
    1. IP address – Socket port parameter
    2. Port ID – Port no. and is a socket port parameter
    3. Send delimiter – Character to split send text
    4. Receive delimiter – Character to split receive text
    5. Log file folder – Path to the log folder
    6. Logging on/off – On = Logging is active; Off = Logging is inactive
    7. Socket type – Socket port parameter
    8. Protocol type – Socket port parameter
    9. Device status – Which character to split the received text
    10. Timeout – Number of received parameters
    11. Termination char – Receive as ‘text or byte array’
  4. Press Save

Command structure:

  1. Press New
  2. Write:
    1. Name
    2. Description (optional)
    3. Optional code - if written, this will always begin the socket command
  3. Select active
  4. Add the desired amount of send parameters
  5. Add the desired amount of receive parameters
  6. When all is done, Press Save

Test connection: To test the socket device, press the Test connection tab.

  1. Press Test, under commands on the command to test
  2. Type text in message (If any needed!)
  3. Type values in all the needed parameters
  4. Press Send

The response from socket server can be seen in the response area. \\ If any errors happen a text message over the Save and Close button will be shown.

6.3.14.1 Commands

Command in socket is:

Find a code example and the parameters in the functions window, in section socket.


Back to Configuration