4
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
Table of Contents
4.4 State Relay [S] ....................................................................................................................................... 94
4.4.1 Numbers of state relays .......................................................................................................................... 94
4.4.2 Functions and operation examples ......................................................................................................... 95
4.5 Timer [T]................................................................................................................................................. 97
4.5.1 Numbers of timers................................................................................................................................... 97
4.5.2 Functions and operation examples ......................................................................................................... 97
4.5.3 Set value specification method ............................................................................................................... 99
4.5.4 Cautions on routines ............................................................................................................................... 99
4.5.5 Details on timer operation and timer accuracy........................................................................................ 99
4.5.6 Program examples [off-delay timer and flicker timer]............................................................................ 100
4.5.7 Handling timers as numeric devices ..................................................................................................... 101
4.6 Counter [C]........................................................................................................................................... 102
4.6.1 Numbers of counters............................................................................................................................. 102
4.6.2 Features of counters ............................................................................................................................. 102
4.6.3 Related devices (to specify counting direction) [32-bit counter]............................................................ 103
4.6.4 Functions and operation examples ....................................................................................................... 103
4.6.5 Set value specification method ............................................................................................................. 104
4.6.6 Response speed of counters ................................................................................................................ 105
4.6.7 Handling counters as numeric devices ................................................................................................. 105
4.7 High-Speed Counter [C] (FX3S/FX3G/FX3GC PLCs) .......................................................................... 107
4.7.1 Types and device numbers of high-speed counters ............................................................................. 107
4.7.2 Input assignment for high-speed counters............................................................................................ 109
4.7.3 Handling of high-speed counters .......................................................................................................... 110
4.7.4 Current value update timing and comparison of current value..............................................................110
4.7.5 Related devices..................................................................................................................................... 110
4.7.6 Assignment of counter input terminal and switching of function ........................................................... 111
4.7.7 Response frequency of high-speed counters........................................................................................ 112
4.7.8 Cautions on use .................................................................................................................................... 114
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC) ...................................................................................... 116
4.8.1 Types and device numbers of high-speed counters ............................................................................. 116
4.8.2 Input assignment for high-speed counters............................................................................................ 118
4.8.3 Handling of high-speed counters .......................................................................................................... 119
4.8.4 Current value update timing and comparison of current value..............................................................121
4.8.5 Related devices..................................................................................................................................... 122
4.8.6 Changing the logic of external reset input signal .................................................................................. 123
4.8.7 Assignment of counter input terminal and switching of function ........................................................... 123
4.8.8 How to use 2-phase 2-count input counters C251 to C255 with 4 edge counting ................................ 124
4.8.9 Conditions for hardware counters to be handled as software counters ................................................ 125
4.8.10 Response frequency of high-speed counters...................................................................................... 126
4.8.11 Cautions on use .................................................................................................................................. 128
4.9 Data Register and File Register [D] ..................................................................................................... 130
4.9.1 Numbers of data registers and file registers ......................................................................................... 130
4.9.2 Structures of data registers and file registers........................................................................................ 131
4.9.3 Functions and operation examples of data registers ............................................................................ 132
4.9.4 Functions and operation examples of file registers............................................................................... 134
4.9.5 Cautions on using file registers ............................................................................................................. 137
4.10 Extension Register [R] and Extension File Register [ER] .................................................................. 138
4.10.1 Numbers of extension registers and extension file registers............................................................... 138
4.10.2 Data storage destination and access method..................................................................................... 138
4.10.3 Structures of extension registers and extension file registers............................................................. 139
4.10.4 Initialization of extension registers and extension file registers .......................................................... 139
4.10.5 Functions and operation examples of extension registers .................................................................. 140
4.10.6 Functions and operation examples of extension file registers ............................................................ 141
4.10.7 Cautions on using extension file registers........................................................................................... 143
4.10.8 Registration of data in extension registers and extension file registers .............................................. 144
4.11 Index Register [V and Z] .................................................................................................................... 148
4.11.1 Numbers of index registers ................................................................................................................. 148
4.11.2 Functions and structures..................................................................................................................... 148
4.11.3 Indexing of devices ............................................................................................................................. 148
4.12 Pointer [P and I] ................................................................................................................................. 149
4.12.1 Numbers of pointers............................................................................................................................ 149
4.12.2 Functions and operation examples of pointers for branch .................................................................. 149
4.12.3 Functions and operation examples of pointers for interrupt ................................................................ 150