6
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instructions Edition
Table of Contents
8. Program Flow – FNC 00 to FNC 09
8.1.1 CJ instruction and operations of contact and coil ........................................................................ 196
8.1.2 Relationship between master control instruction and jump instruction........................................ 198
8.3 FNC 02 – SRET / Subroutine Return .......................................................................................... 203
8.4 FNC 03 – IRET / Interrupt Return ............................................................................................... 204
8.5 FNC 04 – EI / Enable Interrupt.................................................................................................... 206
8.6 FNC 05 – DI / Disable Interrupt................................................................................................... 207
8.7 FNC 06 – Main Routine Program End ........................................................................................ 208
8.8 FNC 07 – WDT / Watchdog Timer Refresh................................................................................. 210
8.9 FNC 08 – FOR / Start a FOR/NEXT Loop .................................................................................. 213
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop................................................................................ 214
9. Move and Compare – FNC 10 to FNC 19
9.1 FNC 10 – CMP / Compare .......................................................................................................... 218
9.2 FNC 11 – ZCP / Zone Compare.................................................................................................. 220
9.3 FNC 12 – MOV / Move................................................................................................................ 223
9.4 FNC 13 – SMOV / Shift Move ..................................................................................................... 226
9.5 FNC 14 – CML / Complement..................................................................................................... 228
9.6 FNC 15 – BMOV / Block Move.................................................................................................... 230
9.7 FNC 16 – FMOV / Fill Move ........................................................................................................ 234
9.8 FNC 17 – XCH / Exchange ......................................................................................................... 237
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal .............................................................. 239
9.10 FNC 19 – Conversion to Binary ................................................................................................ 242
10. Arithmetic and Logical Operation (
,
−
,
×
,
÷
) – FNC 20 to FNC 29
245
10.1 FNC 20 – ADD / Addition .......................................................................................................... 246
10.2 FNC 21 – SUB / Subtraction ..................................................................................................... 249
10.3 FNC 22 – MUL / Multiplication .................................................................................................. 252
10.4 FNC 23 – DIV / Division ............................................................................................................ 255
10.5 FNC 24 – INC / Increment......................................................................................................... 257
10.6 FNC 25 – DEC / Decrement...................................................................................................... 259
10.7 FNC 26 – WAND / Logical Word AND ...................................................................................... 260
10.8 FNC 27 – WOR / Logical Word OR........................................................................................... 262
10.9 FNC 28 – WXOR / Logical Exclusive OR.................................................................................. 264
10.10 FNC 29 – NEG / Negation....................................................................................................... 266