Line 16: |
Line 16: |
| In TCP ASCII/Binary mode a link with an external device using text messages can be established. In TCP ASCII/Binary mode all data received from external device through RS-485 is sent directly to server (if link is currently active). Data is encapsulated in codec 12 format. | | In TCP ASCII/Binary mode a link with an external device using text messages can be established. In TCP ASCII/Binary mode all data received from external device through RS-485 is sent directly to server (if link is currently active). Data is encapsulated in codec 12 format. |
| | | |
| + | [[Image:Fmb125_rs485_block.png|500px|none]] |
| | | |
− | * RS-485 TCP Binary settings:
| + | ====RS-485 TCP Binary settings==== |
− | [[Image:TCP_Binary.png|250px|none]] | + | [[Image:TCP_Binary_2.png|250px|none]] |
| TCP Binary has a setting Prefix. It is possible to set Prefix 1, Prefix 2 or Prefix 3. These prefixes can be used seperately or in unison. | | TCP Binary has a setting Prefix. It is possible to set Prefix 1, Prefix 2 or Prefix 3. These prefixes can be used seperately or in unison. |
| To configure this setting a value from 0 to 255 in decimal has to be entered. Device will convert this value to HEX and compare the 1st, 2nd or 3rd byte from incoming data. If the values do not match, device will not accept incoming data. | | To configure this setting a value from 0 to 255 in decimal has to be entered. Device will convert this value to HEX and compare the 1st, 2nd or 3rd byte from incoming data. If the values do not match, device will not accept incoming data. |
Line 28: |
Line 29: |
| <ul><li>FMB device will then check the 1st byte of incoming data and compare to the set Prefix 1.</li></ul></li> | | <ul><li>FMB device will then check the 1st byte of incoming data and compare to the set Prefix 1.</li></ul></li> |
| <li>If Prefix 2 is set to 114 in decimal, it is equal to <font color="green">72</font> in HEX.<br> | | <li>If Prefix 2 is set to 114 in decimal, it is equal to <font color="green">72</font> in HEX.<br> |
− | <ul><li>FMB device will then check the 1st byte of incoming data and compare to the set Prefix 2.</li></ul></li> | + | <ul><li>FMB device will then check the 2nd byte of incoming data and compare to the set Prefix 2.</li></ul></li> |
| <li>If Prefix 3 is set to 101 in decimal, it is equal to <font color="blue">65</font> in HEX.<br> | | <li>If Prefix 3 is set to 101 in decimal, it is equal to <font color="blue">65</font> in HEX.<br> |
− | <ul><li>FMB device will then check the 1st byte of incoming data and compare to the set Prefix 3.</li></ul></li> | + | <ul><li>FMB device will then check the 3rd byte of incoming data and compare to the set Prefix 3.</li></ul></li> |
| </ul> | | </ul> |
− | When values match, data will be accepted and saved to Buffer (using TCP Binary Buffered mode) or sent to server (using TCP Binary mode). | + | When values match, data will be accepted and saved to Buffer (using TCP Binary Buffered mode) or sent to server (using TCP Binary mode).<br> |
| | | |
− | [[Image:Fmb125_rs485_block.png|500px|none]]
| + | Incoming packet through RS232/RS485 using TCP Binary/TCP Binary Buffered mode - <font color="red">50</font> <font color="green">0</font> <font color="blue">65</font> 66 69 78 20 57 6f 72 6b 69 6e 67 |
| + | <ul> |
| + | <li>If Prefix 1 is set to 80 in decimal, it is equal to <font color="red">50</font> in HEX. |
| + | <ul><li>FMB device will then check the 1st byte of incoming data and compare to the set Prefix 1.</li></ul></li> |
| + | <li>If Prefix 2 is set to 114 in decimal, it is equal to <font color="green">72</font> in HEX.<br> |
| + | <ul><li>FMB device will then check the 2nd byte <font color="green">0</font> of incoming data and compare to the set Prefix 2.</li></ul></li> |
| + | </ul> |
| + | Since Prefix 2 does not match incoming 2nd byte, data will not be accepted. |
| | | |
| ==RS-232 Interface== | | ==RS-232 Interface== |