Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | = TwinCAT_PLC_Ethernet = |
2 | |||
3 | Supported series: Twincat | ||
4 | |||
5 | **HMI Settings** | ||
6 | |||
7 | |**Item**|**Settings**|**Note** | ||
8 | |Protocol|TwinCAT_PLC_Ethernet| | ||
9 | |Connection|Ethernet| | ||
10 | |Port NO.|48898| | ||
11 | |ADS port|801/811/821/831| | ||
12 | |PLC station No.|1 | ||
![]() |
3.1 | 13 | |
![]() |
3.2 | 14 | Choose protocol: TwinCAT_PLC_Ethernet |
15 | |||
16 | (% style="text-align:center" %) | ||
17 | [[image:0rPAMOoxzH.png]] | ||
18 | |||
![]() |
5.1 | 19 | Setting→PLC IP Address→AMS NetId |
![]() |
3.2 | 20 | |
21 | (% style="text-align:center" %) | ||
22 | [[image:RVUyBW3DPV.png]] | ||
23 | |||
24 | **PLC Settings** | ||
25 | |||
26 | Choose Target System→ Search→ Broadcast Search→ choose PLC → Add router→ choose CPU → OK | ||
27 | |||
28 | (% style="text-align:center" %) | ||
29 | [[image:lTAhpgCBWJ.png]] | ||
30 | |||
![]() |
5.1 | 31 | Route Settings→Add Route Dialog→ Broadcast Search→ choose PLC→ modify HMI name → change AmsNetId as HMI AmsNetId: 192.168.50.154.1.1 **(HMI IP + .1.1) **→ select the option of IP Address→ set HMI IP in Address info→ Add Route |
![]() |
3.2 | 32 | |
33 | (% style="text-align:center" %) | ||
34 | [[image:gfF9dtMLW7.png]] | ||
35 | |||
![]() |
3.5 | 36 | Actions→ Activate configuration |
37 | |||
38 | (% style="text-align:center" %) | ||
39 | [[image:0bvTefCtCv.png]] | ||
40 | |||
![]() |
5.1 | 41 | **How to import the tags** |
![]() |
3.4 | 42 | |
![]() |
5.1 | 43 | Open TwinCAT PLC Control→ edit program→ save the program in a file → Project → Rebuild all |
![]() |
3.4 | 44 | |
45 | (% style="text-align:center" %) | ||
46 | [[image:f925vKrK47.png]] | ||
47 | |||
48 | (% style="text-align:center" %) | ||
49 | [[image:FITLTJJfLP.png]] | ||
50 | |||
51 | (% class="box infomessage" %) | ||
52 | ((( | ||
53 | Note: After "Rebuild all", there will be a file whose format is "tpy". | ||
54 | ))) | ||
55 | |||
![]() |
5.1 | 56 | Labels mange→ Import Tag From File→ choose the file whose format is "tpy" in the file →Save |
![]() |
3.4 | 57 | |
58 | (% style="text-align:center" %) | ||
59 | [[image:qaOxmsAR2S.png]] | ||
60 | |||
![]() |
3.5 | 61 | |
62 | **Support Variable Type** | ||
63 | |||
64 | |=Data Type|=PIStudio Data Format|=Range | ||
65 | |=BOOL|Bit|0~~1 | ||
66 | |=BYTE|16-bit Unsigned/Binary/BCD/Hex|0~~255 | ||
67 | |=WORD|16-bit Unsigned/Binary/BCD/Hex|0~~65535 | ||
68 | |=DWORD|32-bit Unsigned/Binary/BCD/Hex |0~~4294967295 | ||
69 | |=SINT|16-bit Signed/Binary/BCD/Hex|-128~~127 | ||
70 | |=USINT|16-bit Unsigned/Binary/BCD/Hex|0~~255 | ||
71 | |=INT|16-bit Signed/Binary/BCD/Hex|-32768~~32767 | ||
72 | |=UINT|16-bit Unsigned/Binary/BCD/Hex|0~~65535 | ||
73 | |=DINT|32-bit Signed/Binary/BCD/Hex|-2147483648~~2147483647 | ||
74 | |=UDINT|32-bit Unsigned/Binary/BCD/Hex|0~~4294967295 | ||
![]() |
5.1 | 75 | |=REAL|32-bit Floating|1.00E-44~~3.40E+38 |
76 | |=LREAL|64-bit Floating|4.94065645841247e-324~~1.7976931348623157e+308 | ||
![]() |
3.5 | 77 | |=STRING|STRING| |