You are on page 1of 13

Firefox https://www.tm-robot.

com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

[EtherNet/IP] Read/Write Values to a PLC


———————————————————-
EtherNet/IP functions are applicable to:
TMflow Software version: v1.82.1000 or above
TM robot Hardware version: HW 3.0 or above

• For hardware configuration of ethernet/ip, please refer to this link,


• For driver configuration tutorial, please refer here.

———————————————————-

Functions #
• Read Functions
◦ eip_read_input()
◦ eip_read_input_int()
◦ eip_read_input_float()
◦ eip_read_input_string()
◦ eip_read_input_bit()
◦ eip_read_output()
◦ eip_read_output_int()
◦ eip_read_output_float()
◦ eip_read_output_string()
◦ eip_read_output_bit()
• Write Functions
◦ eip_write_output()
◦ eip_write_output_bit()

Detailed explanations and examples can be found in the Expression Editor Manual.

Setting up TM official data type, the tutorial can be found here.

Using TMflow to read/send value to a PLC #

1 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #1: Creating a blank TMflow project and create a project name.

2 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step#2: Insert a ‘SET’ node from the left panel.

3 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #3: Click the pencil icon on the upper left corner.

4 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #3: Click on the right box (green area). A pop-up window is shown.

5 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #4: Choose ‘Connection’, and select ‘EtherNet/IP’

6 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #5: Choose any function

7 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #6: Choose any item, and click ‘ok’.

8 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #7: Click ‘Insert’ and click ‘ok’ then.

Step #8a: Create a variable to store the results. The data type must be compatible.

9 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

10 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #8b: Select variable data type.

11 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #8c: Create a variable name and click ‘ok’.

12 de 13 20/09/2023, 11:57 a. m.
Firefox https://www.tm-robot.com/en/docs/read-write-values-to-a-plc-via-ethernet-ip/

Step #9: Click ‘Add’ to add one expression to the set node.

The EtherNet/IP function is set successfully.

13 de 13 20/09/2023, 11:57 a. m.

You might also like