Skip to content

finsTCP

1. Host Sets FinsTCP Parameters

Command: 0x7340

Parameter List

Parameter NameTypeDescriptionRange/Format
IPstringIP address-
PLCReadAddressstringPLC read start addressStarts with "DM" + number, range [1, 9999]
PLCWriteAddressstringPLC write start addressStarts with "DM" + number, range [1, 9999]
craftNumintProcess numberRange [1, 9]
localReadAddressint[]Local read start address listRange [1, 990], first element is global bool start address, second is global int start address
localWriteAddressint[]Local write start address listRange [1, 990], first element is global bool start address, second is global int start address
portintPort numberRange [0, 65535]

Request Example

json
{
  "IP": "192.168.1.10",
  "PLCReadAddress": "DM2000",
  "PLCWriteAddress": "DM1000",
  "craftNum": 1,
  "localReadAddress": [500, 500],
  "localWriteAddress": [100, 100],
  "port": 9600
}

2. Host Queries FinsTCP Parameters

Command: 0x7341

Parameter List

Parameter NameTypeDescriptionRange
craftNumintProcess number to queryRange [1, 9]

Request Example

json
{
  "craftNum": 1
}

3. Controller Replies Host FinsTCP Parameters

Command: 0x7342

Parameter List

Parameter NameTypeDescriptionRange/Format
IPstringIP address-
PLCReadAddressstringPLC read start addressStarts with "DM" + number, range [1, 9999]
PLCWriteAddressstringPLC write start addressStarts with "DM" + number, range [1, 9999]
craftNumintProcess numberRange [1, 9]
localReadAddressint[]Local read start address listRange [1, 990], first element is global bool start address, second is global int start address
localWriteAddressint[]Local write start address listRange [1, 990], first element is global bool start address, second is global int start address
portintPort numberRange [0, 65535]
statusintCommunication statusRange [0, 1], 0 means not connected, 1 means connected

Response Example

json
{
  "IP": "192.168.1.10",
  "PLCReadAddress": "DM2000",
  "PLCWriteAddress": "DM1000",
  "craftNum": 1,
  "localReadAddress": [500, 500],
  "localWriteAddress": [100, 100],
  "port": 9600,
  "status": 0
}

4. Host Requests Connection Communication

Command: 0x7343

Request Example

json
{}

5. Host Requests Disconnect Communication

Command: 0x7344

Request Example

json
{}

6. Controller Sends FinsTCP Communication Connection Status

Command: 0x7345

Parameter List

Parameter NameTypeDescriptionRange
statusintCommunication connection statusRange [0, 1], 0 means not connected, 1 means connected

Response Example

json
{
  "status": 0
}

7. Controller Sends FinsTCP Opened Program Name

Command: 0x7346

Parameter List

Parameter NameTypeDescription
programNamestringOpened program name

Response Example

json
"AAA"