Wiki source code of LS

Last modified by Devin Chen on 2023/09/19 11:51

Show last authors
1 = {{id name="HLS"/}}LS =
2
3 == {{id name="HXGBSerial"/}}**XGB Serial** ==
4
5 **HMI Settings**
6
7 |=**Item**|=**Settings**|=**Note**
8 |Protocol|LS XGB CPU DRIECT|
9 |Connection|RS232|
10 |Baud rate|115200|
11 |Data bit|8|
12 |Parity|NONE|
13 |Stop bit|1|
14 |PLC station No.|1|
15
16 **Address List**
17
18 |=(% style="width: 165px;" %)**Type**|=(% style="width: 325px;" %)**Device registers**|=**Format**|=**Range**|=**Note**
19 |(% colspan="1" rowspan="10" style="width:165px" %)Bit|(% style="width:325px" %)P|P DDDD.f|0~~2047|
20 |(% style="width:325px" %)M|M DDDD.f|0~~2047|
21 |(% style="width:325px" %)L|L DDDDD.f|0~~11263|
22 |(% style="width:325px" %)K|K DDDD.f|0~~2559|
23 |(% style="width:325px" %)F|F DDDD.f|0~~2047|
24 |(% style="width:325px" %)S|S DDDDD|0~~12799|
25 |(% style="width:325px" %)D|D DDDDD.f|0~~32767|
26 |(% style="width:325px" %)U|U FFFF.f|0~~7f31|
27 |(% style="width:325px" %)T|T DDDD.f|0~~2047|
28 |(% style="width:325px" %)C|C DDDD.f|0~~2047|
29 |(% colspan="1" rowspan="16" style="width:165px" %)Word|(% style="width:325px" %)P|P DDDD|0~~2047|
30 |(% style="width:325px" %)M|M DDDD|0~~2047|
31 |(% style="width:325px" %)L|L DDDDD|0~~11263|
32 |(% style="width:325px" %)K|K DDDD|0~~2559|
33 |(% style="width:325px" %)F|F DDDD|0~~2047|
34 |(% style="width:325px" %)C|C DDDD|0~~2047|
35 |(% style="width:325px" %)T|T DDDD|0~~2047|
36 |(% style="width:325px" %)D|D DDDDD|0~~32767|
37 |(% style="width:325px" %)N|N DDDDD|0~~21503|
38 |(% style="width:325px" %)U|U FFFF|0~~7f31|
39 |(% style="width:325px" %)Z|Z DDD|0~~127|
40 |(% style="width:325px" %)R|R DDDDD|0~~32767|
41 |(% style="width:325px" %)ZR|Z DDDDD|0~~32767|
42 |(% style="width:325px" %)TS|TS DDDD|0~~2047|
43 |(% style="width:325px" %)CS|CS DDDD|0~~2047|
44 |(% style="width:325px" %)S|S DDDDD|0~~12799|
45
46 **Configure the communication protocol**
47
48 {{id name="Iimage-20221028174410-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_62289e8acf423981.png||alt="image-20221028174410-1.png" height="574" width="540"]]
49
50 {{id name="Iimage-20221028174753-2.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_e8fc0d8e9d300978.png||alt="image-20221028174753-2.png" height="706" width="909"]]
51
52 {{id name="Iimage-20221028181125-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_efa69a925458a542.png||alt="image-20221028181125-4.png" height="706" width="909"]]
53
54 **Pin Definition Diagram**
55
56 {{id name="Iimage-20221028180930-3.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_916d5d7ba16627b9.png||alt="image-20221028180930-3.png" height="251" width="404"]]
57
58 == {{id name="HXBCSerial"/}}**XBC Serial** ==
59
60 **HMI Settings**
61
62 |=**Item**|=**Settings**|=**Note**
63 |Protocol|LS XBC CNet|
64 |Connection|RS232/RS485|
65 |Baud rate|115200|
66 |Data bit|8|
67 |Parity|NONE|
68 |Stop bit|1|
69 |PLC station No.|1|
70
71 **Address List**
72
73 |=**Type**|=(% style="width: 295px;" %)**Device registers**|=(% style="width: 239px;" %)**Format**|=(% style="width: 247px;" %)**Range**|=**Note**
74 |(% colspan="1" rowspan="8" %)Bit|(% style="width:295px" %)P|(% style="width:239px" %)P d|(% style="width:247px" %)0~~2047|
75 |(% style="width:295px" %)M|(% style="width:239px" %)M d|(% style="width:247px" %)0~~2047|
76 |(% style="width:295px" %)L|(% style="width:239px" %)L d|(% style="width:247px" %)0~~11263|
77 |(% style="width:295px" %)K|(% style="width:239px" %)K d|(% style="width:247px" %)0~~16183|
78 |(% style="width:295px" %)F|(% style="width:239px" %)F d|(% style="width:247px" %)0~~2047|
79 |(% style="width:295px" %)D|(% style="width:239px" %)D d|(% style="width:247px" %)0~~32767|
80 |(% style="width:295px" %)R|(% style="width:239px" %)R d|(% style="width:247px" %)0~~32767|
81 |(% style="width:295px" %)U|(% style="width:239px" %)U d|(% style="width:247px" %)0~~4095|
82 |(% colspan="1" rowspan="13" %)Word|(% style="width:295px" %)P|(% style="width:239px" %)P d|(% style="width:247px" %)0~~2047|
83 |(% style="width:295px" %)M|(% style="width:239px" %)M d|(% style="width:247px" %)0~~2047|
84 |(% style="width:295px" %)L|(% style="width:239px" %)L d|(% style="width:247px" %)0~~11263|
85 |(% style="width:295px" %)K|(% style="width:239px" %)K d|(% style="width:247px" %)0~~16183|
86 |(% style="width:295px" %)F|(% style="width:239px" %)F d|(% style="width:247px" %)0~~2047|
87 |(% style="width:295px" %)C|(% style="width:239px" %)C d|(% style="width:247px" %)0~~2047|
88 |(% style="width:295px" %)T|(% style="width:239px" %)T d|(% style="width:247px" %)0~~2047|
89 |(% style="width:295px" %)D|(% style="width:239px" %)D d|(% style="width:247px" %)0~~32767|
90 |(% style="width:295px" %)N|(% style="width:239px" %)N d|(% style="width:247px" %)0~~21503|
91 |(% style="width:295px" %)R|(% style="width:239px" %)R d|(% style="width:247px" %)0~~32767|
92 |(% style="width:295px" %)U|(% style="width:239px" %)U d|(% style="width:247px" %)0~~4095|
93 |(% style="width:295px" %)Z|(% style="width:239px" %)Z d|(% style="width:247px" %)0~~127|
94 |(% style="width:295px" %)S|(% style="width:239px" %)S d|(% style="width:247px" %)0~~127|
95
96 **Configure the communication protocol**
97
98 {{id name="Iimage-20220831170807-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c08169bb9b5d62b8.png||alt="image-20220831170807-1.png" height="735" width="616"]]
99
100 {{id name="Iimage-20220830174733-2.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_50979759c27bf871.png||alt="image-20220830174733-2.png" height="905" width="1038"]]
101
102 **PLC Setting:**
103
104 ①PLC Default Parameters:
105
106 1.[Network Configuration] → [NevPLC [BOSO Internal Cnet]] → [Basic Settings] → [Connection Settings]→[CH1]Type:RS232C;Baud Rate:115200; Station No:1;[Operation mode]CH1: XGT server
107 2.[Advanced Settings]: [Data bit]8, [Stop bit]1,[Parity]NONE→[OK].
108 Note:The serial port parameters should be set depending on field requirements
109
110 (% style="text-align:center" %)
111 [[image:1.3.png]]
112
113 ②PC and PLC connection:
114
115 [Online]→[Connection Settings]→[Settng Options] Manual Settng→[Connection Settngs] →Type:USB→[OK]
116 Please select according to the actual connection between PC and PLC.
117
118 (% style="text-align:center" %)
119 [[image:1.4.png]]
120
121 **Cable Wiring**
122
123 {{id name="Iimage-20220830174659-1.png"/}}
124
125 (% style="text-align:center" %)
126 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_2c560179ab57676e.png||alt="image-20220830174659-1.png" height="159" width="724"]]
127
128 Pin Definition Diagram
129
130 {{id name="Iimage-20220830173402-8.png"/}}
131
132 (% style="text-align:center" %)
133 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ddb0f5f5330f3e43.png||alt="image-20220830173402-8.png" height="192" width="358"]]
134
135 (% style="text-align:center" %)
136 [[image:Picture1.png||height="200" width="412"]]
137
138 == {{id name="HXGKFEnet28Ethernet29"/}}**XGK FEnet(Ethernet)** ==
139
140 Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module
141
142 **HMI Settings**
143
144 |**Items**|**Settings**|**Note**
145 |Protocol|LG XGK FEnet(Ethernet)|
146 |Connection|Ethernet|
147 |Port No.|2004|
148
149 **Address List**
150
151 |**Type**|**Register**|**Range**|**Format**|**Note**
152 |(% rowspan="14" %)Word|P|0~~2047|P d|
153 |M|0~~2047|M d|
154 |K|0~~2047|K d|
155 |F|0~~2047|F d|
156 |T|0~~2047|T d|
157 |C|0~~2047|C d|
158 |Z|0~~127|Z d|
159 |S|0~~127|S d|
160 |L|0~~11263|L d|
161 |N|0~~21503|N d|
162 |D|0~~32767|D d|
163 |R|0~~32767|R d|
164 |ZR|0~~65535|ZR d|
165 |UxDD|0~~6331|UxDD nndd|nn: 0~~63, dd: 0~~31
166
167 **✎Note:**
168
169 * In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
170 * The [UxDD] register, defined in the PLC is Ux.dd, x represents the block, and dd represents 0-31 of each block. There are 64 blocks in the PLC;
171 * All bit registers are in the form of bits in word, and the range is the same as the word register;
172
173 **Communication settings in HMI**
174
175 Enable HMI Ethernet in [Project Settings];
176
177 {{id name="I12.PLCProtocol_html_43b671f18153910d.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_a98ee09dac36eba3.png||alt="12.PLC Protocol_html_43b671f18153910d.png" height="107" width="405"]]
178
179 Set PLC IP in [Device IP] settings;
180
181 {{id name="I12.PLCProtocol_html_a2a19b5003ad4090.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_160dbb872dac8a95.png||alt="12.PLC Protocol_html_a2a19b5003ad4090.png" height="189" width="554"]]
182
183 **Cable Wiring**
184
185 {{id name="ICommonEthernet.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ac8ece9a26719fda.png||alt="CommonEthernet.png" height="170" width="401"]]