Distribuidor para Chile y Sudamérica Zona Industrial Spa. www.zonaindustrial.cl
Introduction | 9 |
Valid range of this manual | 10 |
Safety Guideline | 10 |
Qualified Personnel | 11 |
Prescribed Usage | 11 |
Warning | 11 |
Trademarks | 11 |
Copyright Rievtech 2016 all rights reserved | 12 |
Disclaim of Liability | 12 |
Additional support | 12 |
1 .what is Xlogic ? | 13 |
1.1 Overview | 13 |
1.2 Highlight feature | 13 |
1.3 Some of the things xLogic can do for you? | 15 |
1.4 xLogic devices: | 15 |
2. Hardware introduction | 17 |
2.1 Naming Rules of PR Series PLC | 17 |
2.2 Hardware model selection | 18 |
2.3 Structure & dimension | 21 |
3 .Installing/removing xLogic | 24 |
Dimensions | 24 |
3.1 DIN rail mounting | 25 |
3.2 Wall-mounting | 26 |
3.3 wiring xLogic | 27 |
3.4 Connecting the power supply | 27 |
3.4.1 Connecting xLogic inputs | 28 |
3.4.2 Connecting xLogic Outputs | 31 |
3.4.3 Communication port instructions: | 34 |
4.Quick reference manual | 37 |
4.1 Special memory area: | 37 |
4.2Interrupt Events: | 37 |
4.3 High speed counter: | 37 |
X Ladder direction for use | 39 |
5.The detailed annotation of operation interface | 39 |
5.1The main menu | 39 |
5.1.1 File | 39 |
5.1.2 Edit | 40 |
5.1.3 View | 40 |
5.1.4 PLC | 42 |
5.1.5 Debug | 43 |
5.1.6 Help | 43 |
5.2 toolbar | 44 |
5.3 Instruction tree | 47 |
5.3.1 Project | 48 |
5.3.2 Data block | 48 |
5.3.3 System block | 49 |
5.3.4 Program block | 56 |
5.3.5 Function symbol | 56 |
5.3.6 Variable symbol | 56 |
5.3.7 Status chart | 57 |
5.3.8 Cross reference | 57 |
5.3.9 Communication | 58 |
5.3.10 Instructions | 59 |
5.3.11 The program editor | 60 |
5.3.12 Status chart, information output | 61 |
5.4 Programming concepts | 62 |
5.4.1 How the program works | 62 |
5.4.2 Addressing overview | 62 |
5.4.3 How to organize the program | 64 |
5.5 How to enter the ladder logic program | 65 |
5.5.1 How to build a new project | 65 |
5.5.2 Ladder logic element and its working principle | 65 |
5.5.3 Network rules for series and parallel in LAD | 66 |
5.5.4 How to input commands in LAD | 66 |
5.5.5 How to enter the address in LAD | 68 |
5.5.6 How to edit program elements in LAD | 68 |
5.5.7 How to use find / replace | 71 |
5.5.8 How to display errors in LAD in the program editor | 72 |
5.5.9 How to compile in LAD | 72 |
5.5.10 How to save the project | 73 |
5.6 How to set up a communication and download program | 73 |
5.6.1 Communication settings | 73 |
5.6.2 Download program | 75 |
5.6.3 How to correct compilation errors and download errors | 76 |
5.7 How to monitor and debug the program | 77 |
5.8 PLC operation and options | 81 |
6.X Ladder instructions descriptions | 82 |
6.1 Bit logic | 82 |
6.1.1 Normally open and normally closed | 82 |
6.1.2 Normally open immediate and normally closed immediate. | 84 |
6.1.3 NOT Reverse instruction | 84 |
6.1.4 Rising edge and falling edge | 85 |
6.1.5 Output | 86 |
6.1.6 Output immediate | 86 |
6.1.7 Set and reset | 87 |
6.1.8 Set immediate and reset immediate | 88 |
6.1.9 SR instruction | 88 |
6.1.10 RS instruction | 89 |
6.1.11 NOP instruction | 90 |
6.2 Clock instruction | 91 |
6.2.1 Read and set the real time clock | 91 |
6.3 Communication | 92 |
6.3.1 Get port address | 92 |
6.3.2 Set port address | 92 |
6.4 Compare | 93 |
6.4.1 Byte compare | 93 |
6.4.2 Integer comparison | 95 |
6.4.3 Double integer comparison | 96 |
6.4.4 Real number comparison | 97 |
6.4.5 String comparison | 98 |
6.5 Convert | 99 |
6.5.1 Byte to integer | 99 |
6.5.2 Integer to byte | 100 |
6.5.3 Integer to double integer | 100 |
6.5.4 Integer to string | 100 |
6.5.5 Double integer to integer | 102 |
6.5.6 Double integer to real number | 102 |
6.5.7 Double integer to string | 103 |
6.5.8 BCD to integer, integer to BCD conversion | 104 |
6.5.9 ROUND | 105 |
6.5.10 TRUNC | 106 |
6.5.11 Real number to string | 107 |
6.5.12 Integer to ASCII code | 109 |
6.5.13 Double integer to ASCII code | 111 |
6.5.14 Real number to ASCII code | 112 |
6.5.15 ATH&HTA | 114 |
6.5.16 String to integer | 115 |
6.5.17 String to double integer | 117 |
6.5.18 String to real number | 119 |
6.5.19 DECO | 121 |
6.5.20 ENCO | 122 |
6.5.21 Seven segment code | 123 |
6.6 Counter | 124 |
6.6.1 CTU | 124 |
6.6.2 CTD | 125 |
6.6.3 CTUD | 126 |
6.7 Floating point calculation | 127 |
6.7.1 ADD-R&SUB-R | 127 |
6.7.2 MUL - R&DIV - R | 129 |
6.7.3 SQRT | 130 |
6.7.4 SIN | 131 |
6.7.5 COS | 132 |
6.7.6 TAN | 133 |
6.7.7 LN | 134 |
6.7.8 EXP | 135 |
6.7.9 PID | 136 |
6.8 Integer operations | 139 |
6.8.1 ADD-I&SUB-I | 139 |
6.8.2 ADD- DI & SUB- DI | 141 |
6.8.3 MUL & DIV | 142 |
6.8.4 MUL -I & DIV-I | 143 |
6.8.5 MUL -DI & DIV -DI | 145 |
6.8.6 INC-B & DEC-B | 146 |
6.8.7 INC-W & DEC-W | 147 |
6.8.8 INC -DW & DEC -DW | 148 |
6.9 Interrupt | 149 |
6.9.1 ENI & DISI | 149 |
6.9.2 RETI instruction | 151 |
6.9.3 ATCH | 152 |
6.9.4 DTCH | 155 |
6.9.5 Clear interrupt event | 157 |
6.10 Logic operation | 158 |
6.10.1 INV -B | 158 |
6.10.2 INV -W | 159 |
6.10.3 INV -DW | 160 |
6.10.4 WAND-B、WOR -B、WXOR -B | 161 |
6.10.5 WAND-W、WOR -W、WXOR -W | 162 |
6.10.6 WAND- DW、WOR -DW、WXOR -DW | 163 |
6.11 Move | 164 |
6.11.1 Byte move | 164 |
6.11.2 Word move | 165 |
6.11.3 Double word move | 166 |
6.11.4 Real number move | 167 |
6.11.5 BLKMOV -B | 168 |
6.11.6 BLKMOV -W | 169 |
6.11.7 BLKMOV -D | 170 |
6.11.8 SWAP | 171 |
6.11.9 MOV -BIR | 172 |
6.11.10 MOV -BIW | 172 |
6.12 Program control | 173 |
6.12.1 FOR、NEXT | 173 |
6.12.2 Jump to label and label | 175 |
6.12.3 Sequence control relay | 176 |
6.12.4 Return from subroutine | 178 |
6.12.5 Conditional end | 179 |
6.12.6 STOP | 180 |
6.12.7 Watchdog Reset | 181 |
6.12.8 Diagnosis LED | 182 |
6.13 Shift cycle | 183 |
6.13.1 SHR -B & SHL -B | 183 |
6.13.2 SHR -W & SHL -W | 185 |
6.13.3 SHR -DW & SHL -DW | 186 |
6.13.4 ROR -B & ROL -B | 187 |
6.13.5 ROR -W & ROL -W | 188 |
6.13.6 ROR -DW & ROL -DW | 189 |
6.13.7 SHRB | 190 |
6.14 Character string | 191 |
6.14.1 String length | 191 |
6.14.2 Copy string | 192 |
6.14.3 SSTR-CPY | 193 |
6.14.4 String catenate | 194 |
6.14.5 STR -FIND | 195 |
6.14.6 Look for the first character in the string | 196 |
6.15 Table | 197 |
6.15.1 Last in first out | 197 |
6.15.2 FIFO | 199 |
6.15.3 Add to table | 201 |
6.15.4 Memory fill | 203 |
6.15.5 Table Find | 204 |
6.16 Timer | 206 |
6.16.1 Switch on delay timer | 206 |
6.16.2 TONR | 208 |
6.16.3 Disconnect delay timer | 209 |
6.16.4 Start time interval | 210 |
6.16.5 Calculation interval time | 211 |
6.17 Pulse train output | 212 |
6.17.1 Pulse output | 212 |
6.17.2 Pulse width modulation | 214 |
6.18 Subroutine | 215 |
6.18.1 Using subroutine | 215 |
6.18.2 Using parameters to call subroutine | 216 |
6.18.3 How to set up a subroutine | 217 |
6.18.4 How to call a subroutine | 218 |
7.PLC storage area | 221 |
7.1 Storage area types and properties | 221 |
7.2 Direct and indirect addressing | 222 |
7.3 Bit, byte, word and double word access | 225 |
7.4 Memory address range | 225 |
7.5 Data type | 226 |
7.6 Constant | 227 |
8.Assignment and function of SM special storage area | 228 |
9.Easy ladder communication | 229 |
9.1 PR series PLC basic introduction of network communication | 229 |
9.2 PR series PLC communication | 231 |
UFP_XMT | 233 |
UFP_QAR | 234 |
UMB03 | 237 |
UMB04 | 237 |
UMB06 | 238 |
UMB16 | 238 |
9.3 Optimize network performance | 239 |
10.Additional chapter | 240 |
10.1 How to switch PLC mode | 240 |
10.2 Value range of analog quantity: | 247 |
10.3 Extension module address | 247 |
10.3.1 Digtal Input addressing | 247 |
10.3.2 Digtal Output addressing | 249 |
10.3.3 Analog Input addressing | 250 |
10.3.4 Analog Output addressing | 252 |
10.4 Set extension module address with a dial switch | 253 |
10.5 Additional instructions | 254 |
10.5.1 LCD related instructions | 254 |
LCD_PAGE | 254 |
10.5.2 CAN, serial port initialization instructions | 263 |
UART_Init CAN_Init | 263 |
10.6 Example of serial port free port communication | 264 |
10.7 Example of CAN free port | 266 |
10.8 MODBUS communication master program | 268 |
10.9 The example of using PID instruction | 269 |
10.10 Read / Write Program via Ethernet | 272 |
10.11 Modbus block (New block for Ethernet series PLC) | 277 |
10.12 MQTT (New block for Ethernet series PLC) | 281 |
10.12.1 Connect to MQTT Server | 281 |
10.12.2 Publish with MQTT | 283 |
10.12.3 Subscribe with MQTT | 287 |
10.13 Memory Read & Memory Write (New block for Ethernet series PLC) | 291 |
10.13.1 Memory Write | 291 |
10.13.2 Memory Read | 294 |
10.14 GPRS_CONN & GPRS_SEND (New block for Ethernet series PLC) | 297 |
10.14.1 GPRS_CONN | 297 |
10.14.2 GPRS_SEND | 298 |
10.15 SMS_IN & SMS_OUT (New block for Ethernet series PLC) | 301 |
10.15.1 SMS_IN | 302 |
10.15.2 SMS_OUT | 305 |
10.16 EMAIL_POST (New block for Ethernet series PLC) | 308 |
10.16.1 Set email params | 308 |
10.16.2 EMAIL_POST | 309 |
MODBUS ADDRESS | 312 |
Made with FlippingBook - Online magazine maker