SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using MELSEC iQ-R series programmable controllers, please read the manuals for the product and the relevant manuals introduced in those manuals carefully, and pay full attention to safety to handle the product correctly. In this manual, the safety precautions are classified into two levels: "...
Page 4
[Design Precautions] WARNING ● Configure safety circuits external to the programmable controller to ensure that the entire system operates safely even when a fault occurs in the external power supply or the programmable controller. Failure to do so may result in an accident due to an incorrect output or malfunction. (1) Emergency stop circuits, protection circuits, and protective interlock circuits for conflicting operations (such as forward/reverse rotations or upper/lower limit positioning) must be configured external to the programmable controller.
Page 5
[Design Precautions] WARNING ● Especially, when a remote programmable controller is controlled by an external device, immediate action cannot be taken if a problem occurs in the programmable controller due to a communication failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions to be taken between the external device and CPU module in case of a communication failure.
Page 6
[Design Precautions] WARNING ● Modules operating in SIL2 mode turn off outputs when they detect an error on the safety communication path. However, the program does not automatically turn off outputs. Create a program that turns off outputs when an error is detected on the safety communication path. If safety communications are restored with outputs on, connected machines may suddenly operate, resulting in an accident.
Page 7
[Design Precautions] WARNING ● Create an interlock circuit which uses reset buttons so that the system does not restart automatically after executing safety functions and turning off outputs. ● In the case of a communication failure in the network, the status of the error station will be as follows: (1) All inputs from remote I/O stations are turned off.
Page 8
[Design Precautions] CAUTION ● Do not install the control lines or communication cables together with the main circuit lines or power cables. Keep a distance of 100mm or more between them. Failure to do so may result in malfunction due to noise. ●...
Page 9
[Installation Precautions] CAUTION ● Use the programmable controller in an environment that meets the general specifications in the Safety Guidelines included with the base unit. Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of the product. ●...
Page 10
[Wiring Precautions] WARNING ● Shut off the external power supply (all phases) used in the system before installation and wiring. Failure to do so may result in electric shock or cause the module to fail or malfunction. ● After installation and wiring, attach a blank cover module (RG60) to each empty slot and an included extension connector protective cover to the unused extension cable connector before powering on the system for operation.
Page 11
[Wiring Precautions] CAUTION ● Individually ground the FG and LG terminals of the programmable controller with a ground resistance of 100 ohms or less. Failure to do so may result in electric shock or malfunction. ● Use applicable solderless terminals and tighten them within the specified torque range. If any spade solderless terminal is used, it may be disconnected when the terminal screw comes loose, resulting in failure.
Page 12
[Wiring Precautions] CAUTION ● Prevent foreign matter such as dust or wire chips from entering the module. Such foreign matter can cause a fire, failure, or malfunction. ● A protective film is attached to the top of the module to prevent foreign matter, such as wire chips, from entering the module during wiring.
Page 13
[Startup and Maintenance Precautions] CAUTION ● When connecting an external device with a CPU module or intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely. For other forms of control (such as program modification, parameter change, forced output, or operating status change) of a running programmable controller, read the relevant manuals carefully and ensure that the operation is safe before proceeding.
Page 14
[Startup and Maintenance Precautions] CAUTION ● Startup and maintenance of a control panel must be performed by qualified maintenance personnel with knowledge of protection against electric shock. Lock the control panel so that only qualified maintenance personnel can operate it. ●...
Page 15
[Transportation Precautions] CAUTION ● When transporting lithium batteries, follow the transportation regulations. For details on the regulated models, refer to the MELSEC iQ-R Module Configuration Manual. ● The halogens (such as fluorine, chlorine, bromine, and iodine), which are contained in a fumigant used for disinfection and pest control of wood packaging materials, may cause failure of the product.
CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
Page 17
• For Safety CPUs (1) Although MELCO has obtained the certification for Product's compliance to the international safety standards IEC61508, EN954-1/ISO13849-1 from TUV Rheinland, this fact does not guarantee that Product will be free from any malfunction or failure. The user of this Product shall comply with any and all applicable safety standard, regulation or law and take appropriate safety measures for the system in which the Product is installed or used and shall take the second or third safety measures other than the Product.
INTRODUCTION Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers. This manual describes the memory, functions, devices, and parameters of the relevant products listed below. Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly.
Page 28
Instructions that affect the status of another instruction when executed ......508 Instruction that causes different operation results between the control system and standby system .
Page 29
Switching the safety operation mode............538 Operations restricted in SAFETY MODE.
Page 30
When starting up both systems simultaneously ..........569 When starting up one system first .
Dedicated instructions for the intelligent function modules e-Manual [SH-081976ENG] e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool. e-Manual has the following features: • Required information can be cross-searched in multiple manuals.
TERMS Unless otherwise specified, this manual uses the following terms. Term Description Backup mode A mode to continue operation in a redundant system by switching the standby system to the control system when an error occurs in the control system. Buffer memory Memory in an intelligent function module for storing data such as setting values and monitored values.
Page 37
Term Description Process CPU (redundant mode) A Process CPU operating in redundant mode. A redundant system is configured with this CPU module. Process control function blocks and the online module change function can be used even in this mode. Program block A group of POUs that configure a program Program executed in both systems A program that is executed in both CPU modules of the control system and the standby system...
Page 38
The following terms are used when the SIL2 Process CPU or the Safety CPU is used. Term Description Pair version Version information that determines combination of the SIL2 Process CPU and SIL2 function module, and the Safety CPU and safety function module Safety communications Communication service that processes the send/receive of network layers for the safety defined in the safety predefined protocol...
PART 1 CPU MODULE OPERATION This part consists of the following chapters. 1 RUNNING A PROGRAM 2 CPU MODULE OPERATION PROCESSING 3 MEMORY CONFIGURATION OF THE CPU MODULE...
RUNNING A PROGRAM Scan Configuration The following shows the scan configuration of the CPU module. CPU module internal operation Structure of a scan Initial processing (when powered on or switched to RUN) I/O refresh Program execution END processing Initial processing (when powered on or switched to RUN) For the initial processing (when powered on or switched to RUN), the following processes are performed: : Performed, : Not performed Item...
I/O refresh The module performs the following before starting program operation. • ON/OFF data input from the input module/intelligent function module to the CPU module. • ON/OFF data output from the CPU module to the output module/intelligent function module. While constant scan is in progress, I/O refresh is performed after the waiting time for constant scan expires. Program operation According to the program settings, the module executes from step 0 through the END/FEND instruction for each program.
Scan Time The CPU module repeats the following processing. The scan time is the sum of the following processing and execution time. Switched to RUN Initial processing (when switched to RUN) I/O refresh Program execution Scan time END processing *1 The initial scan time includes this processing. Initial scan time The first scan time after the CPU module becomes in the RUN state.
Constant scan RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) Scan time is different for each scan because its processing time varies depending on whether instructions used in a program are executed or not. By setting constant scan, the I/O refresh interval can be kept constant even when the program execution time varies because the program can be executed repeatedly by keeping the scan time constant.
Page 44
Accuracy of constant scan The accuracy of the constant scan is 0.01ms. However, if processing, which should be executed during the waiting time from the completion of the END processing to the start of the next scan, is being executed, the constant scan cannot finish even if the constant scan time is reached.
Device/label access service processing setting RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using a SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS • When using a Safety CPU, refer to the following as well. Page 535 FUNCTIONS The user can specify the time or the execution timing of the device/label access service processing which is performed during the END processing.
Page 46
Setting method The device/label access service processing can be configured as follows. [CPU Parameter] [Service Processing Setting] [Device/Label Access Service Processing Setting] Window Displayed items Item Description Setting range Default Specifying Select a method for specifying the service processing for access to •...
Page 47
Operations enabled by setting details Operations enabled by setting details of the device/label access service processing setting are as follows. Item Scan performance Device/label access Inter- Application service process program performance monitoring Increase Stability Response Stability time Execute the Process Medium Medium Medium...
Page 48
■When "Execute END Processing between Programs" is enabled The device/label access service processing, such as access to devices, is performed between program executions and/or during the END processing. Therefore, when monitoring is performed in the situation where a device value is processed across programs, values of ongoing operation may be read out.
Data Communication and I/O Processing Data communication In data communication, data such as I/O signals, buffer memory, and link device of the CPU module and intelligent function module are communicated. There are two modes for data communication: refresh mode which automatically sends\receives the module data into the device or label of the CPU module at END processing and direct mode which accesses when an instruction is executed in a program.
Refresh mode The CPU module performs I/O processing collectively at a specified timing. The timing of the input refresh and output refresh follows the specified refresh timing setting. Input of on/off data by input refresh Device memory Output of on/off data by output refresh On/off data On/off...
Page 51
Item Description Execution of an input contact Input data in the input (X) device memory (3) are read out and the program is executed. instruction Execution of an output contact Output data in the output (Y) device memory (4) are read out and the program is executed. instruction Execution of the OUT instruction The operation result of the program (5) are stored to the output (Y) device memory.
Direct mode The CPU module performs I/O processing when each instruction is executed in a program. Input of on/off data upon instruction execution Device memory Output of on/off data upon instruction execution On/off data DX10 On/off data Input module or CPU module output module With this mode, the CPU module uses the direct access input (DX) and direct access output (DY) to perform I/O processing.
Page 53
Response delay An output response which corresponds to the status change in the input module delays for one scan (maximum) depending on the on timing of an external contact. [Example] A program that turns on the output DY5E when the input DX5 turns on DY5E •...
Program Flow Programs are executed in order when the CPU module is switched to the RUN state according to the program execution type and execution sequence settings (Page 53 Program Execution Type, Page 64 Execution type change). STOP → RUN Initial processing Does Exists...
Program Execution Type Set the execution condition of the program. ( Page 64 Execution type change) Initial execution type program Initial execution type program is executed only once when the CPU module has been powered off and on, or switched from the STOP state to the RUN state.
Scan execution type program Scan execution type program is executed only once per every scan starting from the scan following the scan in which the initial execution type program was executed. Power-on→RUN, STOP→RUN 1st scan 2nd scan 3rd scan 4th scan END processing Initial execution type program Scan execution type program A...
Page 57
Fixed scan interval setting Set the execution condition of the fixed scan execution type program. [CPU Parameter] [Program Setting] Operating procedure Click "Detailed Setting" on the "Program Setting" window "Program Setting" window. Select the program name and set "Detailed Setting" window the execution type to "Fixed Scan".
Page 58
Operation when the execution condition is satisfied The following describes operation of the program. ■If the execution condition is satisfied before the interrupt is enabled by the EI instruction The program enters the waiting status and is executed when the interrupt is enabled. Note that if the execution condition for this fixed scan execution type program is satisfied more than once during the waiting status, the program is executed only once when the interrupt is enabled.
Page 59
■If another interrupt occurs while the fixed scan execution type program is being executed If an interrupt program (including an interrupt which triggers the event execution type program) is triggered while the fixed scan execution type program is being executed, the program operates in accordance with the interrupt priority. ( Page 81 Multiple interrupt function) Processing when the fixed scan execution type program starts The same processing as when the interrupt program starts.
Page 60
■Fixed scan execution mode setting Use the fixed scan execution mode setting. [CPU Parameter] [Interrupt Settings] [Fixed Scan Execution Mode Setting] Window Displayed items Item Description Setting range Default Fixed Scan Execution When fixed scan characteristics are prioritized, an execution is performed •...
Event execution type program This type of program starts execution when triggered by a specified event. ( Page 59 Trigger type) The program is executed at the execution turn specified in the program settings of the CPU parameters, and if execution conditions of the specified trigger are met when the execution turn of the event execution type program comes, the program is executed.
Page 62
■Bit data ON (TRUE) The program is executed at the execution turn specified in program setting of the CPU parameters, and if the specified bit data is ON (TRUE) when the execution turn of the event execution type program comes, the program is executed. The current values of the output (Y), timer (T), and long timer (LT) used in this program can be cleared at the execution turn that comes after the specified bit data is changed from ON (TRUE) to OFF (FALSE).
Page 63
■Passing time After the status of the CPU module is changed into the RUN state, programs are executed in execution turn specified in "Program Setting" of "CPU Parameter". If the specified time passes, the event execution type program is executed once when the execution turn of the program comes.
Page 64
Trigger setting Use the event execution type detail setting. [CPU Parameter] [Program Setting] Operating procedure Click "Detailed Setting" on the "Program Setting" window "Program Setting" window. Select the program name and set "Detailed Setting" window the execution type to "Event". Click "Detailed Setting Information".
Standby type program This type of program is executed only when its execution is requested. Librarization of programs Set a subroutine program and/or an interrupt program as a standby type program to manage them separately from the main routine program. In a single standby type program, multiple subroutine programs and interrupt programs can be created. Scan execution type program Scan execution type program Main routine program...
Execution type change This section describes how to change the execution type of programs. Using parameter settings "Program Setting" can be used to specify the execution type of programs. [CPU Parameter] [Program Setting] [Detailed Setting] Operating procedure Click "Detailed Setting" on the "Program Setting"...
Group setting for refresh Refresh can be performed when a specified program is executed by setting a group number to each program and specifying the number for each module. *1 Input refresh (load of analog input, Input (X)) is performed before execution of a program, and output refresh (analog output, Output (Y)) is performed after execution of a program.
Subroutine Program Subroutine program is a program that is executed from a pointer (P) through the RET instruction. It is executed only when called by a subroutine call instruction (such as the CALL instruction or the ECALL instruction). A pointer type label can also be used instead of a pointer (P).
Interrupt Program A program from an interrupt pointer (I) through the IRET instruction. (1) This indicates the end of the main routine program. Main routine program FEND Interrupt program (I0) IRET Interrupt program (I29) IRET *1*2 Interrupt pointer *1 Only one interrupt program can be created with a single interrupt pointer number. *2 The interrupt pointers are not required to be defined in an ascending order.
Page 70
Operation upon occurrence of an interrupt factor The following shows the operation when an interrupt factor occurs. ■If an interrupt factor occurs during link refresh The link refresh is suspended and the interrupt program is executed. Even though the station-based block data assurance is enabled for cyclic data during refresh of such links as CC-Link IE Field Network, if the interrupt program uses a device specified as the refresh target, the station-based block data assurance for cyclic data is not available.
Page 71
■If an interrupt factor occurs while interrupt is disabled (DI) • For I0 to I15, I28 to I31, I48, I49, and I50 to I1023 The interrupt factor that has occurred is memorized, and the interrupt program corresponding to the factor will be executed when the interrupt is enabled.
Page 72
• For I44 If interrupt is enabled before the next cycle, the I44 interrupt program will be executed when the interrupt is enabled. If interrupt continues to be disabled beyond the start of the next cycle (the second cycle), the memorized information will be discarded (even when the interrupt is enabled, the I44 interrupt program will not be executed).
Page 73
■If an interrupt factor with the same or a lower priority occurs while the interrupt program is being executed • For I0 to I15 and I50 to I1023 The interrupt factor that has occurred is memorized. After the running interrupt program finishes, the interrupt program corresponding to the factor will be executed.
Page 74
• For I28 to I31, I48, and I49 The interrupt factor that has occurred is memorized. After the running interrupt program finishes, the interrupt program corresponding to the factor will be executed. If the same interrupt factor occurs multiple times, it will be memorized once but operation at the second and later occurrences depends on setting of the fixed scan execution mode (...
Page 75
• For I44 If the running interrupt program finishes before the next cycle, the I44 interrupt program will be executed when the running interrupt program finishes. If the running interrupt program continues beyond the start of the next cycle (the second cycle), the memorized information will be discarded (even when the running interrupt program finishes, the I44 interrupt program will not be executed).
Page 76
■If the same interrupt factor occurs while the interrupt program is being executed • For I0 to I15 and I50 to I1023 The interrupt factor that has occurred is memorized, and the interrupt program corresponding to the factor will be executed when the interrupt is enabled.
Page 77
• For I44 If an interrupt factor which is the same as that for the running interrupt program occurs, the factor is not memorized. Therefore, the corresponding interrupt program will not be executed after the running interrupt program finishes. Also, if the I44 interrupt program for this cause cannot be executed, SM480 (Cycle overrun flag for inter-module synchronization program (I44)) is turned on, and SD480 (Number of cycle overrun events for inter-module synchronization cycle program (I44)) reaches its upper limit.
Page 78
■If an interrupt factor occurs in the STOP/PAUSE status • For I0 to I15, I28 to I31, I48, I49, and I50 to I1023 The interrupt factor that has occurred is memorized, and the corresponding interrupt program will be executed when the CPU module switches to the RUN state and the interrupt is enabled.
Interrupt period setting The interrupt cycle based on the internal timer can be specified. [CPU Parameter] [Interrupt Settings] [Fixed Scan Interval Setting] Window Displayed items Item Item Description Setting range Default Interrupt Setting from Internal Timer Sets the execution interval of I28. 0.5 to 1000ms (in units of 0.5ms) 100.0ms Sets the execution interval of I29.
Processing at interrupt program startup The processing shown below is performed when the interrupt program starts. • Saving/restoring of the file register (R) block number • Saving/restoring of the index register (Z, LZ) Saving/restoring of the file register (R) block number When an interrupt program starts, the block number of the file register (R) of the running program is saved and passed to the interrupt program.
Page 81
Saving/restoring of the index register (Z, LZ) When an interrupt program starts, the value of the index register (Z, LZ) of the running program is saved. When the interrupt program finishes, and the saved value is restored to the running program. Note that when an interrupt program starts, the local index register (Z, LZ) is not switched to the different one.
Page 82
If the value of the index register used for the interrupt program is continuously used for the next interrupt program, the value of the index register for the interrupt program must be saved or restored. Create a program to add the MOV instruction and the ZPUSH/ZPOP instruction. Program example Switch Return...
Multiple interrupt function When a new interrupt triggered by another factor occurs during execution of an interrupt program, the running program will be suspended if its priority is lower than that of the new interrupt. A program with higher priority is executed based on the set priority whenever its execution condition is satisfied.
Page 84
Interrupt priority setting The interrupt priority (5 to 8) of interrupts from modules can be changed. [CPU Parameter] [Interrupt Settings] [Interrupt Priority Setting from Module] Operating procedure Set "Multiple Interrupt" to "Enable" "Interrupt Settings" window on the "Interrupt Settings" window, and click "Detailed Setting".
Page 85
Disabling/enabling interrupts with a specified or lower priority Interrupts with a priority equal or lower than that specified by the DI or EI instruction can be disabled or enabled even when multiple interrupts are present. Order of interrupt occurrence: Order of interrupt execution: ...
Page 86
Multiple interrupt execution sequence When multiple interrupts occur, the interrupt program with the highest priority is executed. Then, the interrupt program with the highest priority among those interrupted and in waiting status as a result of interrupts will be executed next when the previous is finished.
Page 87
Precautions The precautions for the interrupt program are mentioned below. ■Restrictions on program creation • The PLS/PLF instruction performs OFF processing in the scan after the instruction execution. The device turned on remains on until the interrupt program starts again and the instruction is executed. •...
Page 88
■Interrupt processing with FB/FUN FB/FUN consists of multiple instructions. When an interrupt occurs during execution of the FB/FUN, the execution will be suspended and an interrupt program will be executed even though "Interrupt Enable Setting in Executing Instruction" of the CPU parameter has been set to "Disable".
CPU MODULE OPERATION PROCESSING Here is a list of the operating status of the CPU module: • RUN state • STOP state • PAUSE state Operation Processing by Operating Status This displays operation processing according to the operating status of the CPU module. Operation processing in RUN state In RUN state, the program operation is repeatedly performed in the following order: Step 0 ...
Operation Processing When Operating Status Is Changed This displays operation processing when the operating status of the CPU module is changed. CPU module CPU module processing operating Program External output Device memory status Other than Y STOP RUN Executes the program from the Determines the status Retains the device memory Determines the status...
Output mode at operating status change (STOP to RUN) RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using a SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS • When using a Safety CPU, refer to the following as well. Page 535 FUNCTIONS When the operating status changes from RUN to STOP, for example, the CPU module internally stores the status of the outputs (Y) to turn them all off.
Page 92
Setting the output mode Set the mode in "Output Mode Setting of STOP to RUN". [CPU Parameter] [Operation Related Setting] [Output Mode Setting of STOP to RUN] Window Displayed items Item Description Setting range Default Output Mode of STOP to Set the operation of the output (Y) when the operating •...
Operation Processing at Momentary Power Failure When an input power supply voltage supplied to the power supply module falls below the specified range, a momentary power failure is detected and the following operation processing is performed. Momentary power failure not exceeding the allowable momentary power failure time If a momentary power failure occurs, the event history is registered to suspend the operation processing.
MEMORY CONFIGURATION OF THE CPU MODULE Memory Configuration The following shows the memory configuration of the CPU module. Built-in memory Program cache memory Program memory Device/label memory Data memory Function memory Refresh memory CPU buffer memory Signal flow memory SD memory card *1 The built-in memory is a generic term of the memory built in the CPU module.
Program memory/program cache memory The program memory and program cache memory store necessary programs for the CPU module to perform operations. At the following timing, data in the program memory is transferred to the program cache memory and an operation is performed.
■Destination of the file header area For the following CPU modules, the destination of the file header area is the data memory. CPU module Firmware version R04CPU, R08CPU, R16CPU, R32CPU, R120CPU "30" or earlier R04ENCPU, R08ENCPU, R16ENCPU, R32ENCPU, R120ENCPU Process CPU "12"...
Page 97
Device/label memory area setting RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using a SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS • When using a Safety CPU, refer to the following as well. Page 535 FUNCTIONS The capacity of each data area allocated within the device/label memory can be changed.
Page 98
• Please note that the total of the capacity of each area (including the capacity of the local device area) should not exceed the capacity of the device/label memory ( MELSEC iQ-R CPU Module User's Manual (Startup)). The total of the capacity of each area can be checked in "Device/Label Memory Area Capacity Setting".
Page 99
■R04CPU, R04ENCPU Area Setting range of capacity of each area Without an With an With an With an With an With an extended SRAM extended SRAM extended SRAM extended SRAM extended SRAM extended SRAM cassette cassette (1MB) cassette (2MB) cassette (4MB) cassette (8MB) cassette (16MB) Device area...
Data memory This memory is used to store the parameter file, device comment file, and/or the user's folder/file. Data such as the parameter file and the device comment files written by the engineering tool is stored in the "$MELPRJ$" folder. The "$MELPRJ$" folder is created after memory initialization.
Signal flow memory This memory is used to memorize the execution status of the instruction in the last scan. The CPU module judges whether to execute a rising/falling edge execution instruction by referring to the signal flow memory. Signal flow memory INCP wCount1 Executed INCP wCount2...
File Size Unit in Memory The minimum unit of capacity for storing a file in the memory is referred to as the file size unit (cluster size). File size unit based on memory area CPU module File size unit Program memory Device/label memory Data memory Function memory...
Memory Operation Initialization and value clear Each memory can be initialized and cleared to zero by using the engineering tool. For details on the operation method, refer to the following. GX Works3 Operating Manual Items to be specified in the engineering tool Target Initialization Data memory...
Files This section lists the files used by the CPU module. File types and storage memory This table lists the types of files, which are generated by parameter settings and functions in use, as well as their storage memory. : Can be stored (Mandatory), : Can be stored, : Cannot be stored File type CPU built-in memory SD memory...
Page 105
*1 mmm represents the start I/O number (first three digits in four-digit hexadecimal representation) of each module. For the CPU module, it will be 3FFH. Also, nn represents the serial number (two-digit hexadecimal representation) of module extension parameter files or module-specific backup parameter files of each module.
File operation available The following lists the file operations which can be executed to each file in the CPU module by external devices. : Available, : N/A File type Operation from engineering tool Operation with SLMP and FTP server Operation via function instruction Write...
File size The following table lists the size of files that can be stored in the CPU module. File type File size Program Approx. 4050 bytes minimum (only the END instruction + 500 steps reserved for online program change) FB file Approx.
Page 108
When the CPU module versions are different, a program which can be written to a CPU module with a certain version may not be written to the one with another version due to overcapacity. In this case, delete the steps reserved for online program change (default: 500 steps) and write the program to the CPU module.
PART 2 FUNCTIONS This part consists of the following chapters. 4 CLOCK FUNCTION 5 WRITING DATA TO THE CPU MODULE 6 RAS FUNCTIONS 7 REMOTE OPERATION 8 BOOT OPERATION 9 MONITOR FUNCTION 10 TEST FUNCTION 11 DATA LOGGING FUNCTION 12 DEBUG FUNCTION 13 DATABASE FUNCTION 14 PID CONTROL/PROCESS CONTROL FUNCTION 15 CPU MODULE DATA BACKUP/RESTORATION FUNCTION...
CLOCK FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS •...
Using SM/SD After SM210 (Clock data set request) is tuned off and on, values stored in SD210 (Clock data) to SD216 (Clock data) are written to the CPU module. Once the write operation is finished, SM210 is turned on and off. If values in SD210 to SD216 are out of the effective range, SM211 (Clock data set error) turns on and the values in SD210 to SD216 are not written to the CPU module.
Setting Time Zone The time zone used for the CPU module can be specified. Specifying the time zone enables the clock of the programmable controller to work in the local time zone. [CPU Parameter] [Operation Related Setting] [Clock Related Setting] Window Displayed items Item...
Daylight Saving Time Function The daylight saving time function is used to adjust the CPU module time to daylight saving time. This function advances the CPU module time by one hour on the starting date of daylight saving time, and reverses the time by 1 hour on the ending date.
Displayed items Item Description Setting range Default Adjust Clock for Daylight Saving Time Sets whether to enable the daylight saving time setting. • Enable Disable • Disable Start/End Time Specification Method Sets the timing of the switch to daylight saving time to •...
Daylight saving time function operation check The daylight saving time function operation can be checked as follows. Special relay SM217 (Daylight saving time status flag) can be used to check whether the date lies inside or outside the daylight saving time period.
System Clock The system clock is turned on/off by the system or turns on/off automatically at the interval specified by the user. Special relay used for system clock Special relay used for system clock are as follows ( Page 810 System clock) SM number Name SM400...
WRITING DATA TO THE CPU MODULE This chapter describes the functions relating to writing data to the CPU module. Writing Data to the Programmable Controller This function writes data specified by the project of the engineering tool to the memory of the CPU module. For details, refer to the following.
Page 118
Editable contents Within a program block, instructions and pointers (P, I) can be added, changed, or deleted. Also, for each program component, program blocks can be added, changed, or deleted. However, if the user try to edit a label, FB, or FUN, the following limitations are applied.
Page 119
Reserved area for online change Reserved area for online change can be set in a program file to address the online change (ladder block) which causes a change in the program file size. ( GX Works3 Operating Manual) In addition, if the changed program exceeds the program file capacity (including reserved area for online change) during the online change (ladder block), the reserved area for online change can be set again if there is space available in the program memory.
Page 120
Setting the initial value for registering/changing label definition The initial value used when registering/changing label definition can be set. ( GX Works3 Operating Manual) ■Initial value setting availability Indicates whether or not the initial value can be set when adding or changing a label. : Available, : Conditionally available, : Not available Label type Label addition...
File batch online change This function writes programs and other data to the running CPU module in units of files. For the operating procedure and the execution condition of the file batch online change, refer to the following. GX Works3 Operating Manual Writing FB files and the global label setting file The file batch online change of FB files and the global label setting file is available depending on the model and firmware version of the CPU module.
Precautions This section describes the precautions on writing data to the CPU module. Prohibited operation (Turning off or resetting the CPU modules) • When writing data to the programmable controller or executing the online change (ladder block), do not turn off or reset the CPU module.
Page 123
If the later program memory transfer (from the engineering tool 2) has completed with an error, the former program memory transfer (from the engineering tool 1) does not complete. In such a case, write the data again instead of powering off and on or resetting the CPU module.
Page 124
• Falling instruction When a falling instruction exists within the range to be changed, the falling instruction will not be executed even if the execution condition (ON to OFF) is satisfied after completion of the online change (ladder block) or writing data to the programmable controller.
Page 125
• STMR instruction If an STMR instruction exists within the range to be changed, the STMR instruction will be executed. M10 is added at the online change. STMR K10 M100 STMR K10 M100 STMR K10 M200 STMR K10 M200 STMR K10 M100 STMR K10 M200...
Page 126
During the file batch online change The following describes the precautions on the file batch online change. ■Writing the label data Write labels using the file batch online change only when new label data is added. When the label data is changed or deleted, write data to the programmable controller or execute the online change (ladder block) after the data is rebuilt (reassigned).
RAS FUNCTIONS Scan Monitoring Function RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS This function detects hardware and program errors of the CPU module by monitoring the scan time.
Precautions The following lists the precautions on the scan monitoring function. Measurement error of watchdog timer Since the watchdog timer produces an error within the range of 0 to 10ms, take this into consideration when setting the scan time monitoring time. For example, if the scan time monitoring time is set to 100ms, an error will occur when the scan time falls within the range 100ms <...
Self-Diagnostics Function RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS •...
CPU module operation upon error detection setting Configure each CPU module operation setting when an error is detected. Mode when an error is detected If the self-diagnostic function of the CPU module detects an error, the CPU module can be in one of the following operation status: ■Mode for stopping the operation of CPU module Operation stops when an error has been detected.
Page 131
■Applicable errors to the error detection setting The following table lists errors for which whether or not to detect the errors can be set. Error name Error code Power shutoff (either of the redundant power supply modules) 1010H Failure (either of the redundant power supply modules) 1020H Battery error 1090H...
Page 132
■Applicable errors to the CPU module operation upon error detection setting The following table lists the applicable errors to the setting that specifies the CPU module operation of when the specific errors are detected. Error name Error code Memory card error 2120H, 2121H Module verification error 2400H, 2401H...
Page 133
LED display setting Set whether to display or hide the ERROR LED, USER LED, BATTERY LED, and FUNCTION LED. [CPU Parameter] [RAS Setting] [LED Display Setting] Window Displayed items Item Description Setting range Default ERROR LED Minor Error (Continue Error) Set whether or not to display the ERROR LED when a minor error •...
Error detection invalidation setting RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) Turning on the target bit of SD49 (Error detection invalidation setting) disables detection of the corresponding continuation error. (Page 834 Diagnostic information) *1 When using the error detection invalidation setting, check the version of the CPU module used.
Error Clear RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS •...
Page 136
Error name Error code Receive queue full 1830H Receive processing error 1831H Transient data error 1832H Constant scan time error 1900H Network configuration mismatch 1B00H System consistency check error (operating status) 1B20H Redundant system error 1B40H, 1B42H, 1B43H Standby system CPU module error 1B60H, 1B61H Tracking communications disabled 1B70H...
Page 137
How to clear errors Errors can be cleared in two ways: ■Using the engineering tool Clear errors with the module diagnostics function of GX Works3. ( GX Works3 Operating Manual) The event history of error clear using the engineering tool is stored in the CPU module connected. ■Using SM/SD Clear errors by operating SM/SD.
Event History Function RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS • When using the Safety CPU, refer to the following as well. Page 535 FUNCTIONS The CPU module collects and stores event information from each module, such as errors detected by the module, operations performed on the module, and network errors.
Displayed items Item Description Setting range Default Save Destination Specify the storage location of event history files. • Data Memory Data Memory • Memory Card Set Save Volume of Per File Specify the storage capacity per event history file. 1 to 2048K bytes (in 1K bytes) 128K Byte *1 It cannot be set in the R00CPU.
Page 140
■File size The size for event history files can be changed in event history setting (Page 136 Event history setting). If the storage size exceeds the specified size, records are deleted in order from the oldest one and the latest one is stored. An event history file size is obtained from the following calculation formula.
■When files are created An event history file is created when: • The CPU module is turned off and on (if there is no event history file or after the event history settings are changed). • The CPU module is reset (if there is no event history file or after the event history settings are changed). •...
Precautions Clearing the event history during execution of another function No event history can be cleared during execution of the following functions. Check that the following functions are not being executed and then clear the event history. • CPU module data backup/restoration function •...
REMOTE OPERATION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS •...
Precautions This section describes the precautions on using remote RUN/STOP. • When remote RUN is performed during execution of the data logging function, it may fail. In that case, wait for a while and retry remote RUN. If remote RUN still cannot be executed, check whether remote RUN is acceptable and retry remote RUN (...
Setting RUN-PAUSE Contacts RUN-PAUSE contacts can be set. RUN-PAUSE contacts are used to perform remote RUN or STOP, or remote PAUSE using a contact. [CPU Parameter] [Operation Related Setting] [RUN-PAUSE Contact Setting] Window Displayed items Item Description Setting range Default ...
BOOT OPERATION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU. • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS The files stored on the SD memory card are transferred to the storage memory which is automatically determined by the CPU module when the CPU module is powered off and on or is reset.
Specifiable File Types The files which can be booted are as follows. • System parameter • CPU parameter • Module parameter • Module extension parameter • Module extension parameter for protocol setting • Remote password • Global label setting file •...
Configuring the Boot Setting Configure the necessary settings for the boot operation. [Memory Card Parameters] [Boot Setting] Operating procedure Click "Detailed Setting" on the "Boot "Boot Setting" window File Setting" window. Click the "Type" column. The "Boot File Setting" window maximum number of boot files that can be specified is the same as the number of files that can be stored in...
Operation When Security Functions Are Enabled This section describes the operation when security functions are enabled. When a security key is set When a security key is set to the boot target program file and the security key of the program file does not match with that of the CPU module, a boot error occurs.
MONITOR FUNCTION This chapter describes the functions for checking the CPU module operation. Item Description Reference GX Works3 Operating Manual Circuit monitor Checks the status of the running program on the program editor. Device/buffer memory batch monitor Checks the current values of the device and buffer memory in a batch. Watch Registers a device and label and checks the current values.
Page 151
MEMO 9 MONITOR FUNCTION 9.1 Real-Time Monitor Function...
TEST FUNCTION 10.1 External Input/Output Forced On/Off Function RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS External inputs/outputs can be forcibly turned on and off from the engineering tool. This function enables input devices to be turned on and off regardless of the on/off state of the external inputs and enables the external outputs to be turned on and off regardless of the operation result of a program.
Page 153
Devices that allow forced on/off registration The following lists the devices that allow forced on/off registration. Device Range Input • R00CPU, R01CPU, and R02CPU: X0 to X1FFF (8192 points) • Other CPU modules: X0 to X2FFF (12288 points) Output • R00CPU, R01CPU, and R02CPU: Y0 to Y1FFF (8192 points) •...
Page 154
Operation method of forced on/off Use the engineering tool for the forced on/off operation. [Debug] [Register/Cancel Forced Input/Output] Window Displayed items Item Description Device Enter target devices (X, Y). [Register Forced ON] button Registers forced on for the entered devices (X, Y). [Register Forced OFF] button Registers forced off for the entered devices (X, Y).
Page 155
Behavior in forced on/off registration The following describes the behavior in forced on/off registration. ■Behavior of an input device Registering forced on/off turns on or off the input device regardless of the status of the external input. When an input device for which the forced on/off has been registered is changed in the program, the input device is turned on and off in accordance with the operation result of the program.
Page 156
Forced on/off timing The following table lists the timing to reflect the registered data in the forced on/off registration settings to the input/output devices or external outputs. Inputs/outputs for which forced on/off Reflection timing for the input devices Reflection timing for the output devices or can be set external outputs Input/output of the modules mounted on the...
Page 157
■Special register SD1488 (Debug function usage status) can be used to check whether the external input/output forced on/off function is used. ( Page 833 List of Special Register Areas) Behavior in cancellation of forced on/off Forced on/off registration can be canceled for each input/output device individually. ■Behavior of the device Inputs/outputs for which forced on/off can be Change in input/output devices in the program...
Page 158
Behavior in batch-cancellation of forced on/off registrations All the forced on/off registrations can be canceled in a batch. ■Behavior of the device The behavior of the device is the same as that of cancellation of forced on/off (for each device). ( Page 155 Behavior of the device) ■CPU module operating status The behavior of the device is the same as that of cancellation of forced on/off (for each device).
10.2 Device test with execution conditions RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) Using the engineering tool, device/label values can be set for each execution of specified steps of programs. This function enables to debug a specific ladder block without modifying the program even when the program is configured as shown in the example below.
Page 160
Operation when device test with execution conditions is registered The device test with execution conditions can forcibly change device/label values (status) of specified locations. Specify a location of a device/label value (status) to be changed with a program name and a step number. In addition, specify a device/label and its value (status) to be changed with a device/label name and a setting value.
Page 161
Data that can be set The following tables list the data that can be set for the device test with execution conditions. ■Devices that can be set Type Device Bit device X, DX, Y, DY, M, L, F, SM, V, B, SB, T (contact), ST (contact), C (contact), LT (contact), LST (contact), LC (contact), FX, FY, Jn\X, Jn\Y, Jn\SB, Jn\B Word device T (current value), ST (current value), C (current value), D, SD, W, SW, RD, R, ZR, Z, FD, Un\G, Jn\W, Jn\SW, U3En\G, U3En\HG...
Page 162
Programs that can be set Only ladder programs can be set for the device test with execution conditions. Maximum number of devices/labels that can be set A total of 32 devices/labels can be set for the device test with execution conditions. Checking execution status of device test with execution conditions The execution status can be checked in the following ways.
Page 163
Registration of device test with execution conditions This section describes how to register the device test with execution conditions. ■Registration method Specify each field in the "Register Device Test with Execution Condition" window. [Debug] [Device Test with Execution Condition] [Register] Window •...
Page 164
Checking and disabling registration using list window Using the "Register/Disable Device Test With Execution Condition" window, the following operations can be performed: checking the registration status, disabling selected registrations, collectively registering/disabling registrations, and reading/ writing registered settings from/to a file. [Debug] ...
Page 165
■Disabling device test with execution conditions In addition to the operation of the engineering tool, the following operations can be used to disable the device test with execution conditions. • Powering off and on • Reset operation • Writing a program to the CPU built-in memory by writing data to the programmable controller while the CPU module is in the STOP state •...
Page 166
Execution timing Select whether to change the device/label value before or after the execution of the instruction of the specified step when registering the device test with execution conditions. Program (1) The device test with execution conditions that sets 20 in D0 in step (100) is registered.
Page 167
Operation during online change This section describes the operation performed during the online change of the CPU module to which the device test with execution conditions is registered. ■Online change (ladder block) (without adding or deleting instruction) If a part to be changed by the online change (ladder block) includes registrations of the device test with execution conditions, such registrations are disabled.
Page 168
■Online change (ladder block) (with adding instruction) When an instruction is added by the online change (ladder block), the registration of the device test with execution conditions of the instruction immediately after the instruction to be added is disabled. In the following example, an instruction is added by the online change (ladder block). In this case, when the device test with execution conditions is registered to the instruction immediately after the added instruction, the relevant registrations are disabled upon the execution of the online change (ladder block).
Page 169
■Online change (ladder block) (with deleting instruction) When an instruction is deleted by the online change (ladder block), registrations of the device test with execution conditions for the deleted instruction and for the instruction immediately after the deleted instruction are disabled. In the following example, an instruction is deleted by the online change (ladder block).
Page 170
■Addition/deletion/change of labels by the online change (ladder block) • When SM940 (Operation setting of the device test with execution conditions) is off, if local labels or program files are added, deleted, or changed and the online change (ladder block) is performed, all the registrations that specify local labels of the relevant program file are disabled.
Page 171
Precautions This section describes the precautions on the use of the device test with execution conditions. ■Operation when devices/labels cannot be registered When multiple devices/labels are registered to the device test with execution conditions, none of the devices/labels are registered if there is even one device/label or execution condition (program block, step number, or execution timing) that cannot be registered.
DATA LOGGING FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU. • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS •...
11.1 Data to Be Collected This section describes the data to be collected by data logging. Number of data points The data logging function can collect up to 1280 data records. (10 settings 128 records) *1 Duplicate data records are counted as distinct. Data type The following table shows the number of data records for each data type.
Page 174
Devices to be collected The following table lists the devices that can be specified as the collected data. Type Device *4*5 *4*5 *4*5 *4*5 *4*5 Bit device X, DX, Y, DY, M , L, F, SM, V , B, SB, T (contact) , T (coil) , ST (contact) , ST (coil)
11.2 Data Collection Conditions This section describes the timing when data is collected and the conditions under which data is collected. Data collection conditions Description Each scan Collects data during the END processing of each scan. Time Data collection at specified time interval Collects data at specified time interval.
Data collection during the END processing after specified time interval This option causes data collection to be performed at the timing of the END processing rather than during the course of program execution. Ensure that the "Scan time" is less than "Time specification". If the scan time is longer than the specified time and the collection interval or the collection timing occurs more than once during the same scan, data is collected only once during the END processing.
Condition specification Specify the data collection timing according to the device/label data conditions and step number. The AND condition using a combination of "Device specification", "Label specification", and "Step No. specification" results in the collection of data at the time when both conditions are established. Device/label specification Data are collected when the monitored data meets the specified condition during the END processing.
Page 178
■Specifying the monitored data For monitored data, the following devices and labels can be specified. *1 When specifying the local device, global label, or local label, check the versions of the CPU module, engineering tool, and CPU Module Logging Configuration Tool. ( Page 1008 Added and Enhanced Functions) The data types that can be selected include bit/word (unsigned), word (signed), double word (unsigned), and double word (signed).
Page 179
Step No. specification Data are collected when the specified condition is met immediately before the execution of the specified step. ■To collect data continuously while the execution conditions are met The following execution conditions cause the data logging function to collect data continuously while the execution condition are met: •...
11.3 Logging Type The following table describes available methods of data collection: Logging type Data collection method Application Continuous logging Continuously collects specified data at specified interval or timing. Allows the user to continuously monitor the content of specified data. Trigger logging Collects specified data at specified interval or timing and extracts a Allows the user to monitor the content of specified data before...
Operating procedure for trigger logging In trigger logging, the CPU module stores specified data in its internal buffer at a specified collection interval or timing; it extracts a specified number of data records before and after the satisfaction of a trigger condition and saves the extracted data in a data logging file residing in the storage memory.
Page 182
• Specifying the monitored data For the device and label change specification, monitored data can be configured to be collected from the devices and labels listed in the following table. *1 When specifying the local device, global label, or local label, check the versions of the CPU module, engineering tool, and CPU Module Logging Configuration Tool.
Page 183
■Step No. specification A trigger occurs when the specified condition is met immediately before the execution of the specified step. Execution condition Description Always Executes the specified step regardless of the state immediately before the execution of it. In the specified condition satisfied Executes the specified step if the state immediately before the execution is a running state.
Page 184
To stop trigger logging The user can completely stop data logging by instructing CPU Module Logging Configuration Tool to stop data logging and unregister the data logging settings stored in the CPU module. (The special relay (data logging start) turns off.) To suspend/resume trigger logging The user can suspend data logging with the data logging settings remaining intact by doing either of the following: •...
11.4 Data Logging File This section describes data logging files. Storage format of data logging files The following storage formats are available for data logging files. For details on the output format, format specifications, and output contents of each file, refer to the data output format. ( Page 950 Data output type) File format Application Unicode text file format...
11.5 States of the Data Logging Function The data logging function has the data logging state. The data logging state can be checked by CPU Module Logging Configuration Tool. ( Page 988 Logging status and operation) Data logging states The following table lists all the possible data logging states. Data logging states Description Stop...
LED status Whether the data logging function is active or not can be checked by the LED of the CPU module. States of the Data Logging Function LED status FUNCTION LED CARD READY CARD ACCESS • Data logging settings have been registered by the start operation from CPU Module Logging Configuration Tool.
11.6 Steps Until the Collected Data Is Saved This section describes the steps until the collected data is saved. When the data storage destination memory is the SD memory card The following figure shows the flow of data when the data storage destination memory is the SD memory card. Ethernet Inside the CPU module SD memory card...
Page 189
When the data storage destination memory is the function memory The following figure shows the flow of data when the data storage destination memory is the function memory. Ethernet Inside the CPU module Internal buffer Function memory Data collection Setting 1 Setting 1 of the specified device/label...
Internal buffer The internal buffer is a system area used to temporarily store collected data. The collected data is temporarily stored in the internal buffer and stored in the specified data storage destination memory at the time of a file save operation. Internal buffer capacity setting RnPCPU RnPCPU...
Page 191
Displayed items Item Description Setting range Default Total Capacity Shows the total of the internal buffer capacity set in the 60 to 3072K bytes 1536K bytes data logging function and the memory dump function. Data Logging Total Capacity Shows the total of the internal buffer capacity used for the 1280K bytes Function data logging function.
Switching to a storage file The data collected by data logging is temporarily stored in a stack file. The stack file can be switched to a storage file to free the space in the SD memory card. How file switching works File switching works as follows: The CPU module writes collected data into a stack file (such as LOG01.BIN).
Page 193
Storage file The CPU module creates a subfolder ("storage file container folder") under the file storage folder and writes storage files to that storage file container folder. One storage file container folder can contain up to 256 storage files. When the files contained in the current storage file container folder reach the maximum number, the CPU module creates a new storage file container folder at the time of next storage file switching and begins writing storage files to that new folder.
Page 194
• Processing of file switching may take time depending on the setting. In this case, a date and time, which is closer to present than the timestamp of the first record in the data logging file, is added even though "File creation date"...
11.7 Missing Data The term "missing data" means that some of the collected data is missing, resulting in data discontinuity. Conditions under which missing data occurs Missing data occurs under the following conditions: Item Description Processing overflow Processing overflow has occurred due to failure to keep up with the specified collection interval/timing. Operations for the CPU module The CPU module has been stopped and run with "Operation at transition to RUN"...
11.8 Data Logging File Transfer (Auto Transfer to FTP Server) RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU. This function automatically transfers data logging files to the FTP server. An SD memory card as the temporary storage destination is not required by setting the CPU built-in memory (function memory ) as the data storage destination while using this function.
Page 197
Transfer specifications and start timing of the data logging file Data logging files are transferred at the file switching timing in the data logging function. ■Transfer specifications of the data logging file • Data logging files are transferred one by one from each setting number (folder). •...
Page 198
■Start timing of file transfer After data logging is started, the transfer of the files created at the file switching timing in the data logging function starts. When the transfer is started, special relay areas SM1219 to SM1309 (Data logging file transfer execution status flag) for each setting number turn on.
Page 199
■Setting of CPU Module Logging Configuration Tool Select the "Transferring files to the FTP server" check box in "File transfer" of CPU Module Logging Configuration Tool. ( Page 966 Setting data logging, Page 979 File transfer) Click the [Server Setting] button. Configure the server setting.
Page 200
File transfer test Check the communication status and settings by transferring a test file from the CPU module to the FTP server. The file transfer to the FTP server can be checked before system operation. ■Procedure for the file transfer test The following describes the procedure for the file transfer test.
Page 201
Setting on the "File transfer" window ■FTP server connection request timeout time Set the waiting time from when the connection request from the CPU module to the FTP server is sent to when the response is received. If no response is received from the FTP server within the connection request timeout time, an error occurs. ■File transfer retry time Set the time to retry the file transfer when the file transfer fails due to an error caused by communication failure such as the network error between the CPU module and the FTP server.
Page 202
• When the folder structure is not matched with the CPU module The folder structure of the FTP server consists of the storage destination structures of the data logging file excluding the subdirectory. The folder path (1) specified in the server setting, folder structure (2), logging files transferred (3). File storage LOG01 folder...
Page 203
• If the function memory is specified as the data storage destination, files are deleted after the transfer regardless of the setting. • Even if "Delete files completed transfer" is specified, data logging stops when the number of files stored by the data logging function exceeds the maximum value of the number of files to be saved.
11.9 Data Logging File Transfer to Data Memory When the function memory is specified for the data storage destination memory without setting of the file transfer, the data is transferred from the function memory to the data memory at the logging completion or stop (including when an error occurs) as shown below.
11.10 Setting Behavior at the Time of Transition to RUN After the data logging settings are registered by the start operation of data logging, set the behavior of data logging when the following user operations to switch the operating status of the CPU module to RUN are performed (transition to RUN). ( Page 981 Movement) •...
11.11 Auto Logging When inserting an SD memory card, which holds data logging setting, into the CPU module, the data logging automatically starts based on the data logging setting information on the SD memory card. How to use auto logging This section describes how to use auto logging.
Page 207
■When "Data logging stop" is selected Auto logging is assumed to be completed if all the settings or any of auto logging stops *1 Here the term "stop" means one of the following: Continuous logging: When the "Number of files to be saved" setting configured in the save setting has been exceeded and data logging has been completed.
11.12 SD Memory Card Replacement SD memory cards can be replaced using the SD memory card forced disable function even while data logging is in progress. MELSEC iQ-R CPU Module User's Manual (Startup) Only the data saving to an SD memory card is stopped while this function is being executed. The data collection keeps working.
Operations after SD memory card replacement If the SD memory card was replaced while data logging was running based on the data logging setting file contained in the SD memory card, the data logging setting file contained in the new SD memory card is used when data logging is started by one of the following operations.
■Header size of data logging (DCSn) Binary file output format: Refer to the header. ( Page 955 Binary file output format) Unicode text file format: Refer to the file information row to device comment row. ( Page 950 Unicode text file output type) ■Number of file switching times for the data logging per year (DCNn) Calculate this number with an estimated number according to the save setting of the data logging and system operations.
11.16 Precautions to Take When Using the Data Logging Function This section describes precautions to take when using the data logging function. Mutual exclusion of the data logging function This section describes the mutual exclusion of the data logging function. ■When another function is executed during the execution of the data logging function The following table lists the cases when another function is executed during the execution of the data logging function.
Page 212
Function that has been Function to be executed Behavior already executed later Data logging function Function not specified in the If the condition "Total capacity that is set in the internal buffer capacity setting + internal buffer capacity setting Internal buffer capacity that is set in other than the internal buffer capacity setting > 3072K bytes"...
Page 213
■When the data logging function is executed during the execution of another function The following table lists the cases when the data logging function is executed during the execution of another function. Function that has been Function to be executed Behavior already executed later...
Page 214
■When a file operation related to the data logging is performed during the execution of the data logging function The following table lists the cases when a file operation related to the data logging is performed during the execution of the data logging function.
Page 215
Stopping/suspending data logging using CPU Module Logging Configuration Tool After data logging is stopped or suspended from CPU Module Logging Configuration Tool, all the data in the internal buffer are saved into the target memory. If a small number of records or a small file size is specified as part of the storage file switching condition, saving data to the target memory may take longer.
Page 216
Behavior that occurs while collected data is stored in the target memory If one of the following operations is performed while collected data is stored in the target memory, any unsaved data is cleared and not reflected to the results: •...
Page 217
Behavior at parameter change when functions consuming the internal buffer are active If the internal buffer capacity setting is changed during the execution of the functions that consume the internal buffer, attempting to start data logging results in an error, where the data logging fails to start. Function that consumes Function in execution the internal buffer other...
Page 218
■Local index register, local long index register, and file register in which "Use File Register of Each Program" is set The program name cannot be specified for the following devices. • Local index register • Local long index register • File register in which "Use File Register of Each Program" is set To perform data logging of the above devices, transfer the data of the above devices to the global device on the program using the engineering tool beforehand.
Page 219
Data logging using the function memory as the data storage destination ■Power-off or reset during data logging During data logging using the function memory as the data storage destination, do not power off or reset the CPU module. During data logging, if the CPU module is powered off or reset before completion of the data transfer to the data memory (before data logging is completed or stopped), all the data logging data (data logging files) in the function memory are deleted.
Page 220
■File transfer processing time The file transfer processing time differs depending on the Ethernet line load ratio (network congestion), the operating status and system configuration of other communication functions. ■Communications during the data logging file transfer Since the Ethernet communication load is high during the data logging file transfer, the behavior is as follows. •...
Page 221
Data transfer to the data memory ■Free space in the data memory When the transfer to the data memory is set, delete data by user data operation in the engineering tool to free up space in the data memory for storing the transferred data logging files. When a file transfer error occurs due to out of data memory space during transfer to the data memory, free up the required space and turn off and on SM653 (File transfer to data memory request) to transfer the data to the data memory again.
Page 222
Data in the CPU module when a device/label is specified Before starting the data logging, write the following data to the CPU module from the engineering tool. Device/label specification Data required to be written When a local device is specified The CPU parameter including the program name specified with CPU Module Logging Configuration Tool When a global label is specified Project data that is read using CPU Module Logging Configuration Tool (global label setting file)
DEBUG FUNCTION This chapter describes the functions used for debugging. Item Description Reference Online change (ladder block) Changes and writes a part of the program and data online. Page 115 Online change (ladder block) Page 221 Memory Dump Function Memory dump function Stores device values of the CPU module at any given timing.
Object data This section describes the data to be collected by memory dump. Data to be collected Of the devices listed below, all devices that are within the range specified in the device settings are subject to the collection. Type Device Bit device X, Y, M, L, B, F, SB, V, T (contact), T (coil), LT (contact), LT (coil), ST (contact), ST (coil), LST (contact), LST (coil), C (contact),...
Page 225
Error code specification With a specified error code of the CPU module as a trigger, data is to be collected. The occurrence timing of trigger varies depending on the error type: continuation error or stop error. ■At the occurrence of a continuation error The occurrence timing of trigger is at the time of END processing of the scan where an error has occurred.
Combining trigger conditions A trigger can be generated with trigger conditions combined. This combination is based on an OR condition. The establishment of a condition, either device specification or error code specification, results in data collection. Condition Trigger established generated The established condition is On error not recognized as a trigger...
Flow of data collection Collected data is stored in the internal buffer, where the data is partitioned at END processing and saved in the SD memory card. Condition establishment Condition establishment timing Trigger occurrence Program Program END processing Internal buffer SD memory card Finish Writing of sampling data...
Memory dump file This file stores data that is collected through memory dump (collection result by memory dump). Data collected by one execution is saved in one file. The memory dump file is saved in a binary format and stored under the "MEMDUMP" folder. Save file name The file name can be arbitrarily set within a range of 64 characters (extension and period included) together with an auto- assigned number (00 to 99).
States of the memory dump function The state of the memory dump function is reflected in the memory dump status. The engineering tool allows the memory dump status to be checked. ( GX Works3 Operating Manual) Memory dump status The following table lists the memory dump status. Memory dump status Description Trigger-wait not collected...
Sizes of files used for the memory dump function This section shows the sizes of files used for the memory dump function. Capacity of the memory dump setting file The capacity of the memory dump setting file varies depending on the length of the save file name. The following formula is used for the calculation: ...
Special relay and special register used in the memory dump function For details, refer to the following. • Special relay: Special relay relating to the memory dump function ( Page 825 Memory dump function) • Special register: Special register relating to the memory dump function ( Page 869 Memory dump function) Precautions for the memory dump function This section describes precautions to take when using the memory dump function.
Page 232
The following table shows the cases where the file operation related to the memory dump function is executed while the memory dump function is in execution. Target file File operation Behavior Memory dump setting file Write Settings that are subsequently written during the execution of the memory dump function are reflected after the completion of save, not reflected immediately.
Page 233
Creating files and folders Under the "MEMDUMP" folder containing memory dump files, do not create any files or folders using a personal computer or other device. Doing so may result in deletion of files and folders. Access to the SD memory card The SD memory card is so frequently accessed that a delay occurs in completing the access to the SD memory card (read/ write).
DATABASE FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU, R01CPU, and R02CPU. This function manages the data such as product information or production information as a database in an SD memory card of the CPU module.
13.1 Specifications Database specifications The following table lists specifications of databases which the user can create. Item Description The maximum number of fields 128 fields per table *2*4 The maximum number of records No limitation (they can be created up to the capacity of the SD memory card) The maximum number of tables 32 tables per database The maximum number of databases...
Page 236
• To input the data to the field of STRING using the CPU module database access function, use the data type of NLSCHAR. (Although the data is managed as Unicode in the database of the CPU module, it is converted to Shift-JIS code on the device of the CPU module.) •...
Page 237
Available operations The following table lists the operations that can be performed with the database functions. : Can be performed, : Cannot be performed Operation Description Database access instruction CPU module database access function Availability and instruction Availability and application symbol ...
13.2 Database Access Instruction Usage procedure This section describes the procedure to use the database function. Creating databases To construct a database on an SD memory card, create a Unicode text file which defines the configuration of the database and its tables, store the file on the SD memory card, and execute the DBIMPORT(P) instruction, specifying the created Unicode text file.
Creating Unicode text files When the DBIMPORT(P) instruction is executed, a database is created on an SD memory card, according to setting details in the tab-delimited format of Unicode text file. The user must create Unicode text files on an SD memory card. Setting details of Unicode text file The following table lists items which must be specified in a Unicode text file to create a database.
Page 240
Specifications of the character code for Unicode text files are as follows: • Character encoding schema: UTF-16 (Little-Endian) • BOM: Yes ■Format of setting values in Unicode text Item Description WORD, DWORD, The value must be specified in the decimal format (e.g. 0, 1, 111, -111). INT, DINT BOOL The value must be 0 or 1.
Page 241
Example of the Unicode text file format (Database name: database1, Table name: product-info1) Data type: INT Data type: STRING, Number of characters: 124 Key restriction: Main key Key restriction: None proinfon proid1 proinfo1 proinfo2 abcd efgh pqrs 1001 efgh pqrs tuv abcd abcd efgh...
Transactions for databases Use a transaction (the DBTRANS(P) instruction and the DBCOMMIT(P) instruction) to perform multiple operations for a database as a set and update the database at once. The DBTRANS(P) instruction starts a transaction, and the DBCOMMIT(P) instruction groups the results of the following instructions together to update the target database at once. •...
Timing of database update Once execution of a database access instruction is completed, the target database is updated. However, during transaction, the database is not updated each time execution of an instruction is completed. Instead, all changes during the transaction are applied to the database at once when the DBCOMMIT(P) instruction is executed.
13.3 CPU Module Database Access (from External Device) Function The CPU module database access function operates a database, that is built in an SD memory card inserted into the CPU module, from an application on a personal computer through the Ethernet port of the CPU module. To use the CPU module database access function, install CPU Module Database Access Driver into a personal computer.
Page 245
Database access setting Creating a database Create a database in an SD memory card of the CPU module. ( Page 245 Creating a database) Adding a database to the ODBC data source Add the created database of the CPU module to the ODBC data source of the personal computer. ( Page 246 Adding a database to the ODBC data source) Database operation Checking the start-up of the ODBC server...
Built-in database access setting To use the CPU module database access function, set "To Use or Not to Use the Built-in Database Access" of the module parameter to "Use" with the engineering tool. [Navigation window] [Parameter] CPU module [Module Parameter] [Application Settings] [Built-in Database Access Setting] Window Displayed items...
Creating a database This section describes the procedure for creating a database to be used with the CPU module database access function. A database can be created with the following methods. • Storing the database folder • DBIMPORT(P) instruction (a database access instruction) Storing the database folder Store the database folder in an SD memory card.
Adding a database to the ODBC data source This section describes the procedure for adding a created database of the CPU module to the ODBC data source in the personal computer. (Examples of Windows 7 are shown below. Names of windows and menus may differ depending on the version of the OS.) Select [Start] ...
Page 249
Data Source Name Setup Set the database of the CPU module connected from the personal computer. Window Displayed items Item Description Data Source Name Set the identification name (any character string) for specifying the connection target database from the application. Input 1 to 32 characters in single-byte or double-byte alphanumeric characters.
Application example This section describes the examples of database operations of the CPU module from applications in the personal computer using the CPU module database access function. (Names of windows and menus may differ depending on the version of the OS and application.) Item Description...
Page 251
Start Microsoft Access and select "Blank database". Add the following fields. Field name Data type Data type for when the data is exported to the database of the CPU module proID AutoNumber type: Long integer Enduser Numeric type: Long integer TargetX Numeric type: Single-precision floating point type REAL...
Page 252
The result of export is displayed, and the table is added to the database of the CPU module. To set the details that cannot be set with Microsoft Access, send desired SQL commands to the database of the CPU module. Clicking the [Create] tab ...
Page 253
Record operation from an application The following provides an example of record operation such as synchronizing, writing, and deleting of the data by connecting to the database of the CPU module by using Microsoft Access. Ethernet Start Microsoft Access and select the [External Data] tab ...
Page 254
On the window for selecting table, select a table to be operated and click the [OK] button to display the contents of the table. When the value is changed or the record is deleted, the database of the CPU module is changed according to the operation.
Page 255
Record search from an application The following provides an example to search the record that matches the specified condition from the production data stored in the database by connecting to the database of the CPU module by using Excel. Ethernet Start Excel, and select the [Data] tab ...
Page 256
On the window for setting the sort order of the query wizard, set the condition to sort the output data. Set the output destination. Then, the search result is output. When the file used in the above procedure is saved, the search condition is also saved. Click the [Data] tab ...
Page 257
User-created application The following describes a sample program for accessing the database of the CPU module with the SQL command using the ODBC class of Microsoft .NET Framework. Ethernet ■Overview of the sample program This sample program performs the condition search in the database of the CPU module using the value of the Judge field as its key, and displays the acquired search result in a list and graph (scatter plot).
Page 258
■Database configuration of the sample program The following describes the database configuration to be searched by the sample program. Item Description Server name (IP address of CPU module) 192.168.3.39 Database folder path 2:\Database\SampleDB Database name SampleDB Table name to be searched CheckData The following table lists the records of CheckData table.
Page 259
■Source code of the sample program The following describes the source code of the sample program. • Development environment: Visual Studio 2015 • Programming language: C# namespace iQ_R_DB_Access public partial class FrmMain : Form public FrmMain() InitializeComponent(); // Range setting of X-/Y-axis on a graph chart1.ChartAreas[0].AxisX.Minimum = 400;...
Page 260
// Processing the search results one record at a time for (int recordnum = 0; reader.Read(); recordnum++) // Adding a blank row to the list dtRecord.Rows.Add(); Setting the number of rows to be inserted into the list recordnum = dtRecord.Rows.Count-2; Storing acquired records into the list one field at a time for (int i = 0;...
Precautions This section describes the precautions for using the CPU module database access function. Database creation When creating a database in the CPUDB folder, use characters that can be specified only. If the characters that cannot be specified are used to create the database, the table cannot be accessed by the database access instructions. For the characters that can be specified, refer to the following.
Page 262
Completion with an error during database access Do not power off or reset the CPU module during the access to a database of the CPU module. Otherwise, the change is not reflected on the database that is being executed. Files created with this function Do not create, change, and delete the ODBC server setting file (netserver.cfg), database path file (dbmaintainpath.txt), and error database check file (ErrorDB.txt) created with the CPU module database access function.
Page 263
When the load of the CPU module is high When the CPU module database access function is used with high circuit load to the Ethernet port of the CPU module by other functions or high access load to the SD memory card, a timeout error may occur in the application on the personal computer side.
PID CONTROL/PROCESS CONTROL FUNCTION This chapter describes the PID control/process control function. 14.1 PID Control Function RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) PID control is applicable to process control in which factors such as flow rate, velocity, air flow volume, temperature, tension, and mixing ratio must be controlled.
14.2 Process Control Function This chapter describes the process control function. Process control by using process control function blocks RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) A process control function block is the function block whose functions are extended for the process control. A process control program can be easily created by using process control function blocks.
Process control by using process control instructions RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) This function performs various types of process control by using process control instructions that support loop control, such as two-degree-of-freedom PID control, sample PI, and auto tuning, in combination.
CPU MODULE DATA BACKUP/RESTORATION FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU, R01CPU, and R02CPU. This function backs up data such as program files, a parameter file, and device/label data of a CPU module to an SD memory card.
Page 268
Backup data Backup data is saved in an SD memory card. The following shows the folder structure of backup data. Root directory MAIN.PRG $MELPRJ$ Backup 20160101 00001 Drive0 FB.PFB FILEREG.QDR Drive3 LOGCOM.QLG MAIN.PRG Drive4 $MELPRJ$ MEMDUMP.DPS $BKUP_CPU_INF.BSC BKUP_CPU.BKD BKUP_CPU_DEVLAB.BKD 00002 20160102 Folder type Folder name...
Page 269
*1 Date folders and number folders are automatically named by the CPU module. *2 The maximum number of storable folders is 32767. Backup/restoration target data Backup target data is all target data in the CPU module. ( Page 267 Backup/restoration target files) Restoration target data is set with SD954 (Restoration target data setting).
Page 270
■Backup/restoration target device data : Available, : Not available Classification Device name Symbol Backup Restoration User device Input Output Internal relay Link relay Annunciator Link special relay Edge relay ...
Page 271
■Backup/restoration target label data : Available, : Not available Classification Backup Restoration Global label (including module labels) Global label with latch specified Local label Local label with latch specified *1 For module labels, data may be overwritten to the write areas from a module to the CPU module when the refresh settings have been made.
15.1 Backup Function This function backs up data of a specified CPU module in an SD memory card. The backup function operates even when the CPU module is in the RUN state. When executing the backup function with the CPU module in the RUN state, do not change device/label data during execution of the function.
Page 273
■Operation of the special relay and special register The following figure shows the operations of the special relay and special register of when the upper limit value for the number of CPU module backup data has been set. Check the following at the timing on when the bit 5 of SD944 (Enable the upper limit value for the number of CPU module backup data) is turned on, and enable the upper limit value for the number of CPU module backup data.
Backup processing triggered by turning on SM1351 Data in the CPU module is backed up at a desired timing. Operating procedure Data in the CPU module is backed up by turning on SM1351. To set the upper limit value for the number of CPU module backup data, follow the steps below. •...
Automatic backup using SD944 Data in the CPU module can be automatically backed up at a preset execution timing. Set the execution timing of the automatic backup with SD944 (Backup function setting). Multiple execution timing settings can be set. Bit pattern of SD944 Execution timing Bit 0: On On the time set in SD948 and SD949 on the day set in SD947...
Page 276
Operating procedure (when date and time are specified) Data is automatically backed up on the specified date and time. Set the upper limit value for the number of CPU module backup data. (The setting method and operating procedure for the upper limit value are the same as those for the upper limit value for the backup processing triggered by turning on SM1351.
Operating procedure (when a stop error has occurred in the CPU module) Data is automatically backed up when a stop error occurs in the CPU module. Set the upper limit value for the number of CPU module backup data. (The setting method and operating procedure for the upper limit value are the same as those for the upper limit value for the backup processing triggered by turning on SM1351.
Page 278
When parameter settings were changed before execution of the backup processing When programs or parameter settings were changed, check that operations are performed with the new programs and parameter settings and then execute the backup function. If the backup processing is executed without the check of the operations with the new programs and parameter settings, the restoration processing may not be executed.
Page 279
Operations and functions that cannot be performed While the following operations or functions are being executed, the backup processing cannot be executed. The following operations and functions cannot be executed during execution of the backup processing. Operation or function Operation from the engineering tool Initializing the CPU built-in memory/SD memory card Clearing values (Devices, labels, file registers, latches) Writing data to the programmable controller (including online change of files)
Page 280
Data logging function and backup When the CPU built-in memory (function memory) is specified for the data storage destination memory in the data logging function, the function memory is cleared after the CPU module is powered off or the RESET state is cleared. Thus, data logging files are also cleared.
15.2 Restoration Function This function restores backup data in the SD memory card to the CPU module. Restoration target folder Set restoration target data among backup data in the SD memory card with SD956 (Restoration target date folder setting) to SD958 (Restoration target number folder setting).
Page 282
Operation setting after restoration As an operation after the restoration processing, set whether to operate the CPU module in the status at the backup processing or to operate the CPU module in the initial status with the bit 15 of SD955. The following table lists the operations of each item to be performed according to the operation setting after restoration.
Restoration processing triggered by turning on SM1354 Backup data is restored at a desired timing. Use the restoration function by turning on SM1354 to check the backup data and to test before actual operation. To operate the system using the backup data, use the automatic restoration with SD955. ( Page 282 Automatic restoration using SD955) The restoration processing triggered by turning on SM1354 (CPU module data restoration execution request) can be executed only when the CPU module is the STOP state.
Automatic restoration using SD955 Backup data is automatically restored when the CPU module is powered on or is reset. Initialization at the automatic restoration Set whether or not to initialize drives other than the SD memory card at execution of the automatic restoration with the bit 1 of SD955 (Restoration function setting).
Precautions The following describes the precautions for the restoration function. Prohibited operation during execution of the restoration processing Do not perform the following operations during execution of the restoration processing. • Removing and inserting the SD memory card • Powering off or resetting the CPU module The above mentioned operations leave the data in the CPU module in an incomplete state which is middle of the restoration processing.
Page 286
Changing the operating status during execution of restoration During execution of the restoration processing, the CPU module remains in the STOP state even though the RUN/STOP/ RESET switch is changed from the STOP to RUN position or the remote RUN or the remote PAUSE is executed. If the operating status of the CPU module is changed, the status will changes to the set status after the restoration processing is completed.
Page 287
Data protected by security functions ■File password function Unlock the file passwords of the files in the backup target CPU module. If any files to which file passwords have been set exist in the CPU module, the files are not restored. ■Security key authentication function Locked programs can be restored regardless of whether security keys have been written or not.
Page 288
Operation or function Others • SLMP Remote latch clear (Remote Latch Clear) • MC protocol Creating a new file (New File) Writing data to a file (Write File) Deleting a file (Delete File) Copying a file (Copy File) Changing a file attribute (Change File State) Changing file creation date (Change File Date) Opening a file (Open File) Reading a file (Read File)
Page 289
Restoration of when the data allocation in the program file is different The data allocation in the program file differs depending on the firmware version of the CPU module. ( Page 93 Data allocation and procedure of read/write operations) When the data backed up using the CPU module with the conventional data allocation is restored to the CPU module with the new data allocation, the restoration processing is completed successfully.
MULTIPLE CPU SYSTEM FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Safety CPU, refer to the following as well. Page 535 FUNCTIONS With multiple CPU modules mounted on the base unit, each of the CPU modules controls their own assigned I/O modules and intelligent function modules.
16.1 Out-of-group I/O Fetch The access range to the controlled module is different from that to the non-controlled module. To fetch the data which cannot be accessed, use the out-of-group I/O fetch function. Accessing controlled module The access range to the controlled module of the CPU module is the same as that to the single CPU system, and I/O refresh for the controlled module and/or reading/writing to buffer memory of the intelligent function module are enabled.
Page 292
Out-of-group I/O fetch setting In this menu item, whether or not out-of-group I/O status is fetched can be specified. [System Parameter] [Multiple CPU Setting] [Other PLC Control Module Setting] [I/O Setting Outside Group] Window Displayed items Item Description Setting range Default...
Output to output/intelligent function module On/off data cannot be output to non-controlled modules. When turning on or off output of the output module and/or intelligent function module controlled by other CPU modules by the program or others, the output is turned on or off within the CPU module.
Applicable errors to the stop setting The following table lists the applicable errors to the setting that specifies the operation of all the CPU modules of when a major or moderate error has occurred in any of the CPU modules. Error name Error code Another CPU module moderate error...
Page 295
Program to check start-up of each CPU module It is recommended to create a program that checks start-up of each CPU module using SM220 to SM223 (CPUs No.1 to No.4 preparation completed) when the multiple CPU synchronized startup is disabled. If a certain instruction is issued against a CPU module that has not started, the instruction executes no processing.
Page 296
■Program example • Devices to be used for programs to start operation processing synchronously Device to be used Application Flag that indicates the operation processing is ready to be started (after a flag that indicates the operation start turns on, this flag turns off.) Flag that indicates an operation start (this flag turns on for only one scan.) U3En\G2048...
Clock data CPUs No.2 to No.4 automatically synchronize their clock data to the one set for CPU No.1 (even if setting up clock data individually for each CPU, they will be overwritten). Therefore, simply setting up the clock data for CPU No.1 allows to manipulate a unified clock data across the entire multiple CPU system (...
16.3 Multiple CPU Parameter Checking Whether the same setting is configured for between the system parameter of each CPU module and multiple CPU refresh number of points of CPU parameter is checked by the multiple CPU system at the timing shown below. However, as for the fixed scan communication setting and inter-module synchronization setting, checking is done only for the module using the functions.
16.4 Data Communication Between CPU Modules CPU modules within a multiple CPU system can send and transfer data to each other. The refresh communication and direct access communication enable data writing or reading between CPU modules. The following table lists the data communication method.
Page 300
■Avoidance of 64-bit data inconsistency To avoid 64-bit data inconsistency, access the CPU buffer memory by specifying the start address as a multiple of four similarly to the device to be specified. CPU No.1 CPU No.2 CPU buffer memory G2048 Device Device G2052...
Page 301
Checking for the memory configuration This section describes the CPU buffer memory configuration of each CPU No. The refresh setting can be configured in both the CPU parameter and the window shown below. ( Page 308 Refresh settings) [System Parameter] [Multiple CPU Setting] [Communication Setting between CPUs] [CPU Buffer Memory Setting] ...
Page 302
Setting the data communication with fixed scan communication area This section describes the setting for making the data communication with fixed scan communication area. ■Setting whether or not it should be used To communicate data with the fixed scan communication area, "Enable" must be set to "Fixed Scan Communication Function".
Page 303
When there exists a CPU module for which "Disable" is set to "Fixed Scan Communication Function", if the send area of the fixed scan communication area is set to a CPU module for which "Disable" is set to "Fixed Scan Communication Function" (unspecified) in the parameter setting on the host CPU module, no error is generated because the unspecified CPU module is considered as a reserved one for future configuration.
Fixed scan communication setting This menu item sets up the interval for data transfer between CPU modules. The data transfer interval can be synchronized with the timing for inter-module synchronization cycle ( MELSEC iQ-R Inter-Module Synchronization Function Reference Manual) [System Parameter] [Multiple CPU Setting] [Fixed Scan Communication Setting] [Fixed Scan Interval Setting of Fixed Scan Communication] Window Displayed items...
Module-by-module data guarantee In data communication, data is handled in units of 64 bits. Therefore, when data larger than 64 bits is handled, old and new data may be mixed for each CPU module depending on the timing between data reading by the host CPU module and data writing by other CPU modules/data receiving from other CPU modules.
Page 306
Prevention of data inconsistency by module-by-module data guarantee The following table shows the preventive control against data inconsistency according to the presence or absence of module- by-module data guarantee. : With the preventive control against data inconsistency by the system, : Without the preventive control against data inconsistency by the system Communication method CPU buffer memory...
Communication through refresh The device data for each CPU module is written/read only by the parameter settings. Using refresh areas allows data communication between all or a part of the CPU modules in the multiple CPU system, thereby enabling devices of other CPU modules to be used by the host CPU module.
Page 308
■Refresh using CPU buffer memory At the END processing of the host CPU module, device data of the host CPU module is written to the refresh area within the CPU buffer memory on the host CPU module. The data written to the refresh area is transferred to the device of another CPU module at the END processing of another CPU module.
Page 309
Executing refresh Refresh is executed when the CPU module is in RUN and/or STOP (PAUSE) state. For details on the behavior when the CPU module is in stop error state, refer to CPU module operation upon error detection setting. ( Page 129 CPU module operation upon error detection setting) ■Behavior during the multiple CPU synchronous interrupt program (I45) execution If refresh is set to be performed during the multiple CPU synchronous interrupt program (I45) execution, the refresh behavior...
Page 310
Refresh settings The refresh can be set up with "Refresh Setting between Multiple CPUs" in "CPU Parameter". [CPU Parameter] [Refresh Setting between Multiple CPUs] Operating procedure Click "Detailed Setting" at the execution timing "Refresh Setting between Multiple CPUs" window for each refresh.
Communication through direct access This method uses programs to communicate with other CPU modules. The following table lists the communications using the direct access method. Communication method Description Instruction to be used Communication using CPU buffer memory Data between CPU modules are transferred using •...
Page 312
Communication using CPU buffer memory and fixed scan communication area This section describes the communication using CPU buffer memory and fixed scan communication area. ■Available area for communication The following area can be used for communication. Area Description CPU buffer memory All the CPU buffer memory area except for the refresh area is available.
Page 313
• When using an area within the fixed scan communication area Data written to the area within the fixed scan communication area on the host CPU module using the write instruction is sent to other CPU modules at the period specified in the fixed scan communication setting. Other CPU modules read the received data using the read instruction.
Data guarantee by program This section describes how to avoid the inconsistency of data larger than 64 bits using the program. To set up the module-by- module data guarantee using the parameters, use the multiple CPU setting. ( Page 304 Module-by-module data guarantee) Data guarantee in communication through the refresh Inconsistency of transferred data can be avoided by setting the interlock device to a transfer number lower than the one for...
Page 315
Data guarantee for communication through direct access The behavior varies depending on the area to be accessed. ■When accessing CPU buffer memory: The program reads data in ascending order from the start address of the CPU buffer memory other than the refresh area, and the write instruction writes send data in descending order from the end address of the CPU buffer memory other than the refresh area.
Page 316
■When accessing fixed scan communication area When accessing within the multiple CPU synchronous interrupt program (I45), enabling the setting of module-by-module data guarantee eliminates the need of an interlock circuit. When this refresh area is accessed within a program other than the above, or when the setting of module-by-module data guarantee is disabled, an interlock circuit is required, as with the access to the CPU buffer memory.
Communication between CPU modules in error state The following section describes communication between CPU modules in an error state. Behavior in receive data error state A CPU module receiving illegal data due to noise and/or failure discards the received data. If a received data is discarded, the receive-side CPU module keeps the last data received before discarding.
16.5 Multiple CPU Synchronous Interrupt This function triggers an interrupt program at the fixed scan communication cycle set in a parameter. An interrupt program executed at the fixed scan communication cycle is called a multiple CPU synchronous interrupt program. Using the multiple CPU synchronous interrupt enables synchronizing with the fixed scan communication cycle so that data communication between CPU modules can be made.
Execution timing The multiple CPU synchronous interrupt program (I45) is executed at the timing for the fixed scan communication cycle. The fixed scan communication cycle can be changed through the fixed scan communication setting. ( Page 302 Fixed scan communication setting) It is also possible to perform refresh during the multiple CPU synchronous interrupt program (I45) in execution.
SECURITY FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • Only the SIL2 Process CPU and Safety CPU support the user authentication function. This function serves to protect the user property stored in a personal computer and the user property inside modules in the MELSEC iQ-R series system against threats such as theft, tampering, faulty operation, and unauthorized execution due to the unauthorized access by an outsider.
Page 321
If a personal computer with a security key registered is abused by an outsider, there is no way to prevent the outflow of the program property, and thus the user needs to take adequate measures as shown below: • Preventive measures against the theft of a personal computer (for example, wire locking) •...
SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) Data of the CPU module are collected when each module synchronizes data with the sequence scan of the CPU module. The modules which can synchronize and collect with sequence scan are as follows: •...
LABEL INITIALIZATION FUNCTION RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using a SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS In the Process CPU and SIL2 Process CPU, the labels assigned to label areas will be initialized (Initial values are set if the values have been set, or the labels are cleared to zero if not) when the CPU module is powered off and on or the operating status of the CPU module is switched from STOP to RUN after data is rebuilt (reassigned) and then written to the programmable controller.
Page 325
Operating procedure The following describes the operating procedure for this function. Rebuild (reassign) all data. [Convert] [Rebuild All] Set the CPU module to the STOP state. Write the new program files. When initial values have been set in the labels used in the program, write the label initial value file together with the program files.
19.2 Label Initial Value Reflection Setting With the default settings of the Process CPU and SIL2 Process CPU, initial label values are not set in labels when the operating status of CPU module is switched from STOP to RUN even though the label initial values have been set for the labels.
Page 327
Setting method The following describes how to configure the label initial value reflection setting. [CPU Parameter] [File Setting] [Label Initial Value Reflection Setting] Window Displayed items Item Description Setting range Default Label Initial Value Set whether or not to set label initial values when the operating status of the •...
ROUTING SETTING RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) The user can configure any communication route to perform transient transmission to stations in a different network. This setting can be used when the system has a network module which does not support dynamic routing or when it is necessary to clearly specify a communication route.
20.2 Setting Example The following is an example of the routing setting. Transient transmission from the request source (Network No.1) to the target (Network No.3) via Network No.2. Network No.: 1 Network No.: 1 Network No.: 2 Network No.: 2 Network No.: 3 Network No.: 3 Station No.3...
PART 3 DEVICES, LABELS, AND CONSTANTS This part consists of the following chapters. 21 DEVICES 22 LABELS 23 LATCH FUNCTION 24 DEVICE/LABEL INITIAL VALUE SETTINGS 25 CONSTANTS...
DEVICES This chapter describes the devices. 21.1 Device List This section lists the devices. Classification Type Device name Symbol Number of points Parameter-set range Notation of Default User device Input 12K points Unchangeable Hexadecimal Output 12K points Hexadecimal Internal relay 12K points Changeable (...
Specify each item so that the total number of points for each user device does not exceed the capacity of the device area. ( Page 95 Device/label memory area setting) Range of use of device points The following table lists the range of use of device points to be set in the device setting. Type Device name Symbol...
21.3 User Device This chapter describes the user device. Input (X) This device provides the CPU module with commands and/or data using an external device, such as pushbutton, transfer switch, limit switch, and digital switch. Push-button switch CPU module Selector switch Input (X) Digital switch Concept of input...
Internal relay (M) This device is used as an auxiliary relay within the CPU module. The following operations turn off all the internal relays. • Turning power of the CPU module off and on • Reset • Latch clear Latch relay (L) This device is an auxiliary relay which enables latching (data retention during power failure).
Page 337
On/off method for annunciator Annunciators are turned on by either the SET Finstruction or the OUT F instruction. Annunciators are turned off by the RST Finstruction or the LEDR instruction or the BKRST instruction. When the annunciators are turned on/off using any methods (e.g. the MOV instruction) other than shown above, the operation is the same as that of internal relays.
If more than 16 annunciators are turned on, the 17th annunciator onwards are not stored into SD64 to SD79. However, if the numbers of annunciators registered in SD64 to SD79 are turned off, the lowest numbers, which are not registered in SD62 to SD79, of the numbers of annunciators which were turned on for the 17th on and after, are stored into SD64 to SD79.
Edge relay (V) The edge relay is a device that memorizes operation results (on/off information) from the head of the ladder block, allowing its use only by the EGP/EGF instruction. This device is executed for various objectives such as the rising (off and on) detection in the structured programs by the index modification.
Timer This device starts measurement when the timer coil is turned on. When the current value reaches a setting value, time is up and the contact is turned on. This timer is an up-timing type device and therefore the current value matches a setting value when the timer time is up.
Page 341
■Retentive timer (ST) This device counts the sum of time duration in which the coil is turned on. When the retentive timer coil is turned on, measurement starts and when the timer current value matches a setting value (when time is up), the retentive timer contact is turned on.
Page 342
■Low-speed/high-speed timer (T/ST) The low-speed timer and high-speed timer are the same device which is set to a low speed or high speed timer by writing the instruction accordingly to specify it on the timer. For example, specifying OUT T0 generates a low-speed timer and specifying OUTH T0 produces a high-speed timer even when using the same T0 device.
Page 343
Accuracy of timers This sections describes the accuracy of timers. ■Timer (T/ST) The scan time value measured by the END instruction is added to the current value when the OUT T instruction is executed. If the timer coil is turned off when the OUT T instruction is executed, the current value is not updated. The maximum response accuracy of the timer (the time duration from capture of an input (X) to output of it) is "2 scan time + timer time limit setting".
Page 344
■Long timer (LT/LST) In the following program, the accuracy of Tp (the time duration from the long timer coil activation to long timer contact activation) is (Ts-Tu) Tp < (Ts + Tu). Process value of LT0 (Tp) LT0 (coil) LT0 (contact) LT0 coil Execution of...
Page 345
Data configuration of long timer (LT/LST) The long timer (LT) and the long retentive timer (LST) use four words (64 bits) for each point. If the most significant two words are changed in a program, it is impossible to measure the time properly, because they are used by the system. 1 word (16 bits) Current value of...
Counter This device counts the number of rising operation of the input condition in the program. The counter is an up-timing type device and therefore when the count value matches a setting value, the count reaches its upper limit and the contact is turned Types of counters There are two types of counters: counter (C) which retains the counter values in 16-bit units and long counter (LC) which retains them in 32-bit units.
Page 347
Resetting counters The counter current value is not cleared even when the counter coil input is turned off. To clear the counter current value (resetting) and turn off the contact, issue the RST C/RST LC instruction. When executing the RST C instruction, the counter value is cleared and the contact is turned off.
Page 348
■Precautions about counter reset When executing the RST C instruction, the coil for C is also turned off. If the execution condition for the OUT C instruction is turned on after the RST C instruction is executed, the coil of C is turned on and the current value is updated (count value +1) when the OUT C...
Data register (D) This device can store numerical values. Link register (W) This device is used as a CPU module side device when refreshing word data between the network module, such as the CC- Link IE Controller Network module and the CPU module. Refreshing network modules using link register Data are transferred/received between the link register (W) within the CPU module and the link register (LW) of the network module, such as the CC-Link IE Controller Network module.
21.4 System Device The system device is used by the system. Assignment/capacity is fixed and cannot optionally be altered. Function device (FX/FY/FD) This device is used for the subroutine programs with argument passing. Data is written/read between the subroutine call sources with argument passing and the subroutine programs with argument passing.
Special relay (SM) This is the internal relay for which the specification is defined in the CPU module, where the status of the CPU module is stored. ( Page 803 List of Special Relay Areas) Special register (SD) This is the internal register for which the specification is defined in the CPU module, where the status (diagnostics information, system information, etc) of the CPU module is stored.
Specification range All the link devices of the network module can be specified. The link devices which fall outside the range specified with "Refresh Setting" can also be specified. Specification range for writing Writing should be done for the range which is within the link device range specified as a sending range of network parameters and outside the range specified as a refresh range for "Refresh Setting".
21.6 Module Access Device This device directly accesses from the CPU module to the buffer memory of the intelligent function module mounted on the main base unit and extension base unit. Specify this device with 'Un\Gn'. (Example: U5\G11) Specified item Value to be specified Start I/O number of intelligent function modules Upper two digits when a start I/O number is described in three digits...
Precautions The following describes the precautions for when the module access device is used. • If data is written to the refresh-target memory using a program while the refresh function is being used, the CPU module overwrites the data in the target memory at the execution of the refresh function. Thus, the expected operation may not be acquired.
21.8 Index Register (Z/LZ) This device is used for the index modification of the device. The index modification is the indirect specification using the index register. Specify the device with the number obtained from "Device number of device targeted for modification" + "Contents of index register".
Device for which Index modification can be performed The following table lists the devices that can be targeted for index modification. Item Description 16-bit index modification X, Y, M, L, B, F, SB, V, S , LT , ST , LST , LC , D, W, SW, SM, SD, Jn\X, Jn\Y, Jn\B, Jn\SB, Jn\W, Jn\SW, Un\G, U3En\G, U3En\HG, R, ZR, RD, P...
Combination of index modification This section describes the combination of index modification. Modification order for the device specification and index modification According to the priority order shown below, the device specification (digit specification, bit specification, indirect specification) and index modification can be applied. However, some word devices may not follow the priority order shown below. Order of priority When the device targeted for the device specification When the device targeted for the device specification...
Page 358
Change of the index modification range due to switching from 16-bit to 32-bit To change the index modification range for switching from 16-bit to 32-bit, the user must: • Review the index modification block(s) within the program. • To perform the 32-bit index modification specification with ZZ expression, review the range of the index register (Z). Note that the range within the LZ cannot be specified.
21.9 File Register (R/ZR) This device is a word device for extension. This device is specifically a file register file which exists in the file storage area on the device/label memory. Specification method There are two types of the specification methods for the file register: block switching and serial number methods. Block switching method In this method the number of points of file register being used is specified by being divided in increments of 32K point (R0 to R32767).
Setting file registers This section describes the settings required to use the file registers. Configuration procedure This section describes the procedure to use the file registers. Set the file register usage with [CPU Parameter]. To use the file register for each program, previously create the device memory which will become the file register file. (...
Clearing file registers To clear the file registers, use the following methods ( Page 101 Memory Operation) • Clearing in the program: write 0 into the file register range to be cleared. • Clearing with engineering tool: clear them using engineering tool ( GX Works3 Operating Manual) 21.10 Refresh Data Register (RD) This device is provided for using as a refreshing target of buffer memory on the various devices, such as an intelligent function...
21.11 Nesting (N) This device is used in the master control instructions (the MC/MCR instruction) and enables the programming of operation conditions in a nesting structure. Specify this device from outside the nesting structure starting with the lowest number (in ascending order from N0 to N14).
21.12 Pointer (P) This device is used in the jump instructions (the CJ/SCJ/JMP instruction) and/or subroutine program call instructions (such as the CALL instruction). There are two types of pointer: the global pointer and the local pointer. Use the pointer when: •...
Local pointer This is the pointer to be independently used in each program where the same pointer number can be used. This pointer is specified in the following format: # (pointer number) (Example: #P0) ( Page 370 Specification method for the local devices).
Pointer setting The following menu item is to set pointers. [CPU Parameter] [Memory/Device Setting] [Pointer Setting] Window Displayed items Item Description Setting range Default Global Pointer Start Set the start number of the global pointer. P0 and over ...
Interrupt factors of the interrupt pointer numbers The interrupt factors of the interrupt pointer numbers are indicated. Interrupt factor Interrupt pointer number Description Interrupt from module I0 to I15 This is a pointer used for modules which have the interrupt function. Interrupt by the internal timer I28 to I31 This interrupt pointer is used in fixed scan interrupts by the internal timer.
21.14 Network No. Specification Device (J) This device is used when specifying a network number with the Link dedicated instruction. ( MELSEC iQ-R Programming Manual (Module Dedicated Instructions)) 21.15 I/O No. Specification Device (U) This device is used when specifying an I/O number with the intelligent function module dedicated instruction. ( MELSEC iQ-R Programming Manual (Module Dedicated Instructions)) 21.16 SFC Block Device (BL)
21.18 Global Device This device can be shared by all the programs. All the devices that do not set as local device are handled as global device. 21.19 Local Device This device can be used independently in each program. When creating multiple programs, programming can be completed without being aware of devices used in other programs.
Page 369
When local device is used in subroutine program Local devices to be used vary depending on whether SM776 (Local device setting at CALL) is turned on or off. Local index register to be used is also determined according to the SM776 setting. SM776 Local device to be used Uses local devices of the program file from which subroutine program is called.
Page 370
• For SM777, the value (on/off) set at the execution of an interrupt program / a fixed scan execution type program / an event execution type program triggered by occurrence of an interrupt is valid. For this reason, when the set value is changed while a program is being executed, the value changed does not become valid until the next time any of these programs is executed.
Page 371
Setting method for the local devices Set the range where each device will be used as a local device and also set whether or not it should be used. ■Range setting The range setting for local devices is common to all the programs. Therefore the range for local devices cannot be set for each program.
Page 372
Setting whether or not it should be used Whether or not local devices should be used can be set for each program. Since the local device area of program for which "Do not use" has been set is not assured, it can suppress unnecessary consumption of device/label memory. [CPU Parameter] ...
21.20 Indirect Specification Specify the device using the indirect address of device. Store the indirect address of device to be specified into the device for indirect specification, and write as "@ + Device for indirect specification". (1) The indirect address of D0 is read Indirect into D100, D101.
LABELS A label is a variable consisting of a specified string used in I/O data or internal processing. Programs can be created without considering the size of devices and buffer memory by using labels. For this reason, a program using labels can be reused easily even in a system having a different module configuration. When labels are used, there are some precautions on programming and functions used.
22.3 Classes The label class indicates from which POU and how a label can be used. Different classes can be selected depending on the type of POU. Global label Class Description Applicable POU Program Function block Function block ...
22.4 Data Types The data types of a label are classified according to the bit length, processing method, and value range. There are two data types. • Primitive data type • Generic data type (ANY type) Primitive data type The following table lists the data types included in the primitive data type. Data type Description Value range...
Page 377
• The bit data in the word type label can be used by specifying a bit number. • The bit type array label can be used as 16-bit or 32-bit data by specifying the number of digits. For the bit specification and digit specification methods, refer to the following. ...
Page 378
Generic data type (ANY type) The generic data type is the data type of the labels which summarize several primitive data types. Generic data types are used when multiple data types are allowed for function and function block arguments and return values.
22.5 Arrays An array represents a consecutive aggregation of same data type labels as a single name. Primitive data types and structures can be defined as arrays. Array image and setting in engineering tool One-dimensional array (The number of elements is 4.) Two-dimensional array (The number of elements is 5 ×...
Page 380
Defining arrays ■Array elements When an array is defined, the number of elements, or the length of array, must be determined. For the range of the number of elements, refer to the following. Page 380 Range of the number of array elements ■Dimension number of multidimensional array Up to three-dimensional array can be defined.
Page 381
How to use arrays To use an array, add an index enclosed by '[ ]' after each label name to identify individual labels. An array with two or more dimensions should be represented with indexes delimited by a comma (,) in '[ ]'. bLabel1 [0] bLabel2 [0,3] Label name...
Page 382
Range of the number of array elements The maxim number of array elements varies depending on the data type. Data type Setting range 1 to 2147483648 Word [unsigned]/bit string [16 bits] Word [signed] Timer Counter Retentive timer Double word [unsigned]/bit string [32 bits] 1 to 1073741824 Double word [signed] Single-precision real number...
22.6 Structures A structure is a data type containing one or more labels and can be used in all POUs. Members (labels) included in a structure can be defined even when their data types are different. Creating structures To create a structure, first define the structure, and then define members in the structure. Structure Member (label 1) Member (label 2)
Page 384
Structure arrays A structure can also be used as an array. Structure label [1] Structure label [2] Structure label [3] Structure label [4] Member (label 1) Member (label 1) Member (label 1) Member (label 1) Member (label 2) Member (label 2) Member (label 2) Member (label 2) Member (label 3)
22.7 Label Access Setting from External Device RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU, R01CPU, and R02CPU. • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS •...
Configuration procedure This section describes the configuration procedure to enable access by specifying the global label from external devices. Operating procedure Set the label in "Global Label "Global Label Setting" window Setting" and select the "Access from External Device" checkbox. Check the capacity of the label communication data.
22.8 Precautions Functions with restrictions The following functions have restrictions on the use of labels. Item Description CPU parameter • Trigger of an event execution type program Use devices because global labels nor local labels cannot be specified for these •...
Page 388
Precautions for creating programs When specifying a label as an operand used in instructions, match the data type of the label with that of the operand. In addition, when specifying a label as an operand used in instructions that control continuous data, specify the data range used in instructions within the data range of the label.
LATCH FUNCTION 23.1 Latch with Battery RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using the Process CPU (redundant mode), refer to the following as well. Page 435 FUNCTIONS • When using the SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS •...
Applicable devices and labels This section describes the devices/labels that can be latched. Applicable devices The devices below can be latched. However, local devices cannot. Device Specification method Applicable latch type Internal relay (M) Specify the latch range. Latch (1) or Latch (2) Link relay (B) Specify the latch range.
Setting latch on devices Multiple latch ranges can be set for a device type. A total of 32 latch ranges between latch (1) and latch (2) can be set. However, the ranges of latch (1) and latch (2) must not overlap. Setting a latch range Set the device to latch, its range, and the latch type.
Page 392
Setting the latch interval The user can specify the operation which should be performed at a latch interval ( Page 392 Timing of the latch processing) within the effective range of the latch interval setting *1 The effective range of the latch interval means the range of devices which is enabled on the "The Valid Range of Latch Interval Setting" window.
Page 393
For device latching, increasing the device range in the device setting of CPU parameters eliminates the latch processing from the END processing for the devices and enables real-time latching. For example, assume the following configuration for R04CPU: (1) 0K word is specified for the file storage area and 168K words for the device area in "Device/Label Memory Area Capacity Setting", (2) 100K points is specified for the data register (D) on the "Device Setting"...
Page 394
■Timing of the latch processing The timing of the latch processing is determined based on the effective range of the latch interval setting and the operation setting for the specified latch interval ( Page 390 Setting the latch interval) • When set to "Time Setting" Latch processing is started in the END processing executed after the set time.
Setting latch on labels This section describes latch setting on labels. Operating procedure In the label edit window, specify Label edit window "RETAIN" for label attribute. "Device/Label Memory Area Detailed Setting" window There are two types of latch for labels: latch (1) and latch (2).
23.2 Latch with Battery-less Option Cassette RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • This function cannot be used in the R00CPU, R01CPU, and R02CPU. Programmable controller CPUs retain the data in each device/label with latch setting without a battery during power failure by inserting a battery-less option cassette to the CPU module.
Page 397
Write the set parameter to the CPU module, and then power off and on, or reset the CPU module. When the uninitialized error is displayed, use the engineering tool to initialize the battery-less option cassette. After the initialization, power off and on, or reset the CPU module. [Online] ...
Precautions This section describes precautions on using the latch with the battery-less option cassette. • When a battery-less option cassette is inserted, the current consumption of the CPU module increases by 0.15A at maximum. • Insert or remove a battery-less option cassette while the programmable controller is powered off. If it is inserted or removed while the programmable controller is powered on, a stop error occurs in the CPU module and data may not be retained.
DEVICE/LABEL INITIAL VALUE SETTINGS RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • When using a Process CPU, refer to the following as well. Page 322 LABEL INITIALIZATION FUNCTION • When using a SIL2 Process CPU, refer to the following as well. Page 605 FUNCTIONS •...
24.1 Setting Initial Device/Label Values This section describes the settings required to use initial device/label values. Setting initial device values This section describes the settings of initial device values. Setting procedure The procedure for using initial device values is as follows. First, the user must create an initial device value file.
Applicable range of initial device value files The applicable range of initial device value files is as follows. Target device Applicable range Global device Initial device values set up in the initial value file of the global device are used. Buffer memory Local device Initial device values set up in the initial value file of the local device (Program Name.DID) are used.
24.2 Applicable Devices/Labels For details on devices/labels to which initial device/label values can be set, refer to the following. GX Works3 Operating Manual 24.3 Precautions This section describes the precautions when using the initial device/label value setting. • When initial device values or initial label values are overlapped with the latch range, these initial values take precedence over the latch range.
CONSTANTS This section describes constants. 25.1 Decimal Constant (K) Use this type of constants when specifying decimal data in a program. Specify the decimal constant using K character (e.g. K1234). The specification range depends on the argument data type of the instruction using the decimal constant as shown in the following table: Argument data type of the instruction Specification range for decimal constant...
25.3 Real Constant (E) Use this type of constants when specifying a real number in a program. There are two types of real numbers: single-precision real number and double-precision real number. Specify it using Echaracter. (e.g. E1.234). Setting range for real numbers The setting ranges are different between the single-precision real number and double-precision real number.
25.5 Notation of Constants This section describes the notation of constants. Type Notation Example Applicable data type Boolean value Set "FALSE" or "TRUE". TRUE, FALSE Add "K" or "H" before "0" or "1". K0, K1, H0, H1 Integral Binary Add "2#" before a binary number. 2#0010, 2#01101010, •...
Page 406
Notation of time In the notation of time, add "T#" or "TIME#" at the beginning of the value specified in units of time; d (day), h (hour), m (minute), s (second), and ms (millisecond). The following table lists the effective range for each unit of time. Item Effective range d (day)
PART 4 WHEN USING THE PROCESS CPU (REDUNDANT MODE) This part consists of the following chapters. Please read these chapters when building the redundant system using the Process CPU (redundant mode). Since information same as that of the Process CPU (process mode) is not described in these chapters, refer to Part 1 to Part 3.
BASIC CONCEPT This system consists of two basic systems that have a CPU module, a power supply module, a network module, or other modules for each of them. Even if an error occurs in one system, control is continued with the other system. A redundant configuration of the systems of main base units is available when redundant function modules are used and Process CPUs are operated in the redundant mode.
26.2 System Switching Between the Control System and Standby System In a redundant system, data link is performed between the redundant function modules connected with tracking cables and data required for operation is transferred (tracking transfer) at every scan from the control system to the standby system. If an error occurs in the control system, the standby system will function as the new control system and continue the control using the data that the system has received.
26.5 Operation Modes of the Redundant System A redundant system operates in one of the following two modes. Operation mode Description Backup mode A mode used to normally operate the redundant system. When an error or failure has occurred in the control system, the standby system is switched to the control system to continue the operation.
26.6 Scan Configuration This section describes scan configurations of the CPU modules in a redundant system. In a redundant system, tracking is performed during the END processing. ( Page 454 Tracking Transfer) For details on other than tracking transfer, refer to Chapter 1. ( Page 38 Scan Configuration) The following figure shows scan configurations of when both systems are started up simultaneously in the backup mode.
26.7 Determination of Control System/Standby System This section describes how to determine which system is the control system and the other is the standby system. When starting up both systems simultaneously The following describes the method of determining the system types of when both systems are started up simultaneously. How to determine the system types A control system or standby system is determined when both the systems are powered off and on or the CPU module is reset and then ready for tracking communications.
■When the READY LED of the CPU module in one of the systems is flashing Do not power off the CPU module in the other system. The system may start up without checking the system consistency even when the conditions between the both systems do not match.
Page 414
The system waiting for the start-up of the other system When the Process CPU (redundant mode) is started up and tracking communications cannot be established with the other system, the CPU module will start waiting for the start-up of the other system in three seconds. Both of the CTRL LED and SBY LED of the redundant function module turn off because the system of the CPU module is not the control system or standby system yet.
When one system is started automatically even though a tracking communication error has occurred When the other system is powered off or a tracking cable has an error at a system start, the CPU module waits for the start-up of the other system. The following shows a program example to start up only one of the systems using external signals without waiting for the start-up of the other system.
Page 416
■I/O signals The following table lists the details on the I/O signals. Device No. Signal name Control System Start-up Setting (Input (X)) With the on delay timer wired externally, X20 turns on and the CPU module starts as the control system after a certain time. Starting up (other system) Control system (other system) Starting up (own system)
Page 417
■CPU parameter (redundant settings) Set the CPU parameter in "Redundant System Settings" as follows. (1) Set "Not Set" in "Other system Start-up Timeout Setting". (2) Set "Enable" in "Control System Start-up Setting (Input (X))". (3) Set "X20" in "Input (X)". (4) Set "Detailed setting"...
Page 418
Program example The following shows a program example and the overview of the operation. ■Execution determination of start-up processing (0) Set an interlock signal (M0) to prevent the above program from being executed if the operating status of the CPU module is changed from STOP to RUN during operation.
Page 419
• If both systems start up successfully, a stop error does not occur because an initial execution type program is not executed on the other system. • If a stop error has occurred in this program, the possible cause is a tracking cables failure. Check the connection of tracking cables and power off and on or reset the CPU module on the system in which the stop error has occurred.
When starting up the previous control system as the control system In a redundant system, the system A is always specified as the control system when both systems are started up simultaneously. Even though both systems are temporarily powered off due to a power failure or other causes while the system B is operating as the control system, the system A is started up as the control system when both systems are powered on again.
Page 421
Operation example Both systems are temporarily powered System A System B off due to a power failure or other Standby system → Power-off Control system → Power-off causes while the system B is operating as the control system. The system A is started as the control System A System B system when both systems are...
26.8 State Transition of the Redundant System The following figure shows the state transition due to the operation mode change and system switching for the redundant system after start-up. Both systems: Powered off (1) System A: Off System B: Off Power on the system B.
Page 423
MEMO 26 BASIC CONCEPT 26.8 State Transition of the Redundant System...
PROCEDURE FOR STARTING UP A REDUNDANT SYSTEM This chapter describes the procedures for starting up a redundant system starting from the start-up procedure of CPU modules to execution of programs. 27.1 Overview The following table lists two procedures for starting up a redundant system. Start-up procedure Description Starting up both systems at a time...
Page 425
Setting parameters Set system parameters, CPU parameters, and module parameters. ( MELSEC iQ-R CPU Module User's Manual (Startup)) • To use the functions that require an SD memory card, set memory card parameters. • To mount an intelligent function module, set intelligent function module parameters. Users can set system parameters by reading the actual system configuration to the module configuration of the engineering tool.
Monitoring the Program Check that the program is normally running on the engineering tool. ( Page 434 Monitoring the Program) Starting up the systems one by one To debug a program with only one system before operation, start up the control system. To start up the control system for a purpose other than debugging a program, start up the standby system to build a redundant system.
Page 427
Writing the system A/B setting Set the system A or B with the engineering tool. ( Page 431 System A/B Settings) Writing data to the programmable controller Write the set parameters and created programs to the CPU module with the engineering tool. ( Page 433 Writing Data to the Programmable Controller) Resetting the CPU module Restart the control system with either of the following methods.
Page 428
Starting up the standby system Start up the standby system while the control system keeps operating. Follow step 1 to 6 in the start-up procedure for the control system to start up the standby system. ( Page 424 Starting up the control system) Check if the model of the module which is mounted on the base unit and insertion of the extended SRAM cassette or SD memory card are the same between the control system and standby system before the starting...
Clearing errors When the ERROR LED of the CPU module of the control system is on, clear the error with the engineering tool. ( Page 133 Error Clear) When "Watching Standby System Setting" of the CPU parameter has been set to "Disable" in the procedure for starting up the control system, the ERROR LED may be off.
27.2 Wiring Wiring the redundant function modules This section describes how to wire the redundant function modules. Wiring method Connect the tracking cables from the OUT connector of a redundant function module to the IN connector of the other redundant function module. For the specifications of the tracking cables connected to redundant function modules, refer to the following.
Wiring to the power supply modules in a redundant system This section describes the wiring to the power supply modules. The terminal block of each power supply module has a screw size of M4. Wire cables to the terminal block with the applicable solderless terminal RAV1.25-4 or RAV2-4.
27.3 Creating a Project Start the engineering tool and create a project. [Project] [New] Select the Process CPU to be used for "Type". Select "Redundant" for "Mode". Select a programming language to be used for "Programming Language" and click the [OK] button. 27.4 Connecting a Personal Computer and a CPU Module...
27.5 System A/B Settings Set the system A or B with the engineering tool and write the system settings to the CPU module. [Online] [Redundant PLC Operation] [System A/B Setting] Configuration procedure Set the CPU module to the STOP state. Select the setting to be written to own on the "System A/ B Setting"...
Page 434
Checking method Check the LED of each redundant function module to check the system status. Setting on the engineering tool LED of the redundant function module System A System B When the system setting is switched from system A to B When the system setting is switched to the system B with the engineering tool, The SYS B LED will flash.
27.6 Writing Data to the Programmable Controller Write the set parameters and created programs to the CPU module. [Online] [Write to PLC] Operating procedure Select system parameters, CPU parameters, module parameters, and program files on the "Online Data Operation" window. When FBs are used, select the corresponding FB/FUN files.
27.7 Monitoring the Program Check the operation of a program on the engineering tool. Change the connection destination with the engineering tool and check the operating status of the system A or B. [Online] [Current Connection Destination] Select a system in "Specify Redundant CPU" on the "Specify Connection Destination Connection"...
FUNCTIONS This chapter describes the redundant functions and the functions that are different (modified or restricted) from those of the process mode. Functions not described in this chapter are the same as those described in PART 2. For the availability of the functions in the redundant system, refer to the following. ...
Page 438
Function Description Reference Functions different Constant scan • In the standby system, when the system is powered off, a Page 488 Constant Scan (modified or hardware failure has occurred, a tracking cable has a restricted) from failure, or the system is switched to the separate mode, a those of the process continuation error may occur due to the excess of constant mode...
Page 439
Function Description Reference Functions different Remote operation Using a contact When the backup mode setting is enabled in the CPU (modified or parameter, both systems may be recognized as being restricted) from mismatched in the system consistency check even if the those of the process remote operation is simultaneously performed on the systems mode...
28.1 Operation Mode Change This function switches the operation mode of the redundant system between the backup mode for normal operation and the separate mode for system maintenance while it is running. Switching procedure Switch the operation mode of the control system CPU module in the "Redundant Operation" window of the engineering tool. Mode switching to the separate mode The following describes the switching procedure for the separate mode.
Page 441
Mode switching to the backup mode The operation mode can be switched to the backup mode only in the communication path of when the operation mode was switched to the separate mode. The following describes the switching procedure for the backup mode. Set the CPU modules of the control system and standby system to have the same file configuration and operating status.
Precautions The following describes the precautions for switching the operation mode. Switching of the operation mode in the RUN-transition instruction waiting state When the operation mode is switched to the separate mode, the standby system CPU module is set to the RUN-transition instruction waiting state (same as the STOP state).
28.2 System Switching This function switches the systems between the control system and the standby system to continue operation of the redundant system when a failure or an error occurs in the control system. The systems can also be switched manually by a user for debug or maintenance.
Page 444
■System switching due to power-off, reset, or hardware failure of the CPU module In a redundant system, the standby system CPU module monitors the control system status. If the control system is unable to control the redundant system in the following cases, the standby system CPU module is switched to the control system CPU module and the new control system CPU continues the control over the redundant system.
Page 445
■System switching request from a network module A control system network module requests the CPU module for system switching when a communication error or disconnection is detected. When the control system CPU module receives the system switching request from the network module, the systems are switched after the END processing.
Page 446
Manual system switching The user can manually switch the systems between the control system and the standby system. • After turning on SM1646 (System switching by a user), perform the manual system switching in the control system. • When the manual system switching is disabled by the DCONTSW instruction, execute the ECONTSW instruction.
Page 447
■System switching request from the engineering tool When the engineering tool sends a system switching request to the control system CPU module, the systems are switched after the END processing. Switch the systems from the "Redundant Operation" window of the engineering tool. [Online] ...
Operation at system switching The following table shows the operations of the CPU modules of when the control system and the standby system are switched. These operations are for when both systems are operating and the operating statuses of the CPU modules are the same. Item New control system CPU module New standby system CPU module...
Execution availability of system switching The following tables show the execution availability of system switching in each operation mode. In backup mode : Switching possible, : Switching not possible Redundant system status Execution availability of system switching Automatic system switching Manual system switching Power-off or Hardware...
Page 450
In separate mode : Switching possible, : Switching not possible Redundant system status Execution availability of system switching Automatic system switching Manual system switching Power-off, reset, Stop error of the System System System hardware failure CPU module switching switching switching of the CPU request from a request by the...
Check method of system switching information The following table lists the check methods of system switching information at system switching (automatic system switching and manual system switching). Check method Information Reference Event history System switching result, system switching cause, and control system/ Page 449 Event history standby system transition Special relay (SM)/Special register (SD)
Page 452
■Special register The following table shows the special register for system switching and the storage status of the CPU modules in the control system and standby system. : Stored, : Not stored Name Storage status at system switching number New control system New standby system CPU module CPU module...
Precautions The following describes the precautions on system switching. Item Description Reference Error in the redundant function module • When an error has been detected on the redundant function module, the control Page 452 Error in the system and standby system continue operating without being switched. redundant function •...
Page 454
Error in the redundant function module • When an error has been detected on a redundant function module, a continuation error occurs on the CPU module, and the control system and standby system continue operating without being switched. Check the error code, and perform online module change if the redundant function module has failed.
Page 455
When the cable for the network module is disconnected If a network module cable is disconnected, the systems may not be switched depending on the timing of error detection on the control system and the timing on the standby system. Control system Standby system Other station systems...
28.3 Tracking Transfer This function transfers the control data from the control system to the standby system and maintains the consistency of the data in the two systems to continue operation of the redundant system when a failure or an error occurs in the control system. Control system Standby system Sending tracking data...
Tracking data The following table lists the tracking data that can be transferred from the control system to the standby system. Item Operation mode Reference Backup mode Separate mode Device data User device Page 456 Devices that can be specified ...
Page 458
Devices that can be specified The following table lists the data that can be specified for tracking transfer. : Specifiable, : Not specifiable, : Not settable as a local device Classification Device name Transfer Global device Local device User device Input (X) Output (Y)
Page 459
Auto tracking data The following tables list the data that is automatically transferred by the system regardless of parameter settings of tracking transfer. ■Special relay The following table lists the special relay areas that are automatically transferred by the system. SM number Name SM752...
Tracking block and tracking trigger The devices or labels of a specified range is transferred by setting a range of devices or labels to be transferred for each tracking block and turning on the tracking trigger which is assigned for each tracking block. Tracking block A tracking block is used for setting a tracking transfer range of global devices and whether or not to transfer local devices/ global labels/local labels.
Tracking trigger By turning on a tracking trigger, the devices or labels of a range specified in the corresponding tracking block are transferred. Bits used as tracking triggers change depending on the CPU parameter setting, as shown below. ■When "Tracking Device/Label Setting" is set to "Transfer collectively" The bit 0 of SD1667 is used as a tracking trigger.
Tracking transfer setting The following describes the CPU parameters related to tracking transfer. [CPU Parameter] [Redundant System Settings] [Tracking Setting] Window Displayed items Item Description Setting range Default Signal Flow Memory Set whether to transfer the signal flow memory or not. ( Page 461 •...
Page 463
Tracking transfer setting for the signal flow memory By transferring the signal flow memory, operations of rising/falling instructions in the old control system are taken over to the new control system even after system switching. "Signal Flow Memory Tracking Setting" is set to "Transfer" by default. Transferring the signal flow memory is recommended.
Page 464
To transfer the annunciator (F), link special relay (SB), link special register (SW), file register (ZR), or refresh data register (RD), specify the corresponding data in "Device/Label Detailed Setting" of "Tracking Device/ Label Setting". ( Page 462 Detailed setting) After setting "Transfer collectively", perform a test operation in the system design phase and check if the size of tracking data is 1M words or smaller.
Page 465
■Global device setting Set devices and their ranges for each tracking block No. [CPU Parameter] [Redundant System Settings] [Tracking Setting] [Device/Label Detailed Setting] [Global Device Setting] Window Displayed items Item Description Device Setting Reflection Reflects the device setting of "Device/Label Memory Area Setting" in the CPU parameter. (Except for the annunciator (F), link special relay (SB), and link special register (SW)) Tracking Block No.
Tracking mode The following two modes are available for tracking. Item Description Synchronous tracking Tracking data is always transferred to the standby system once every scan of the control system. During a tracking transfer from the mode control system to the standby system, the next scan does not start in the control system. Asynchronous tracking When a tracking transfer from the control system is to be performed and the previous tracking is still in progress, the tracking mode...
Page 467
Effect on the scan time The following describes the effect on the scan time depending on the tracking mode. For the calculation method for an increase in the scan time due to tracking transfer, refer to the following. Page 926 Increase in the scan time due to tracking transfer ■Synchronous tracking mode In the synchronous tracking mode, tracking transfer is always performed once every scan during the END processing.
Page 468
■Asynchronous tracking mode In the asynchronous tracking mode, the control system starts the next scan without waiting for notifications of data reception/ reflection completion from the standby system. Unlike the synchronous tracking mode, the scan time is not affected by waiting time for data reception/reflection completion. When the standby system does not receive the tracking data from the control system, the standby system starts the next scan.
Precautions Operation at power-on When the RUN/STOP/RESET switch of the CPU module of each system is set to the RUN position and both systems are powered on, the control system CPU module starts in the STOP state and switched to the RUN state after reflecting the tracking data is completed in the standby system CPU module.
When data is different between the control system and the standby system Store the same program, FB file, CPU parameter, and global label setting file in the control system CPU module and the standby system CPU module for tracking transfer. ( Page 468 Memory Copy from Control System to Standby System) If there is any difference, global devices, system data, and PID control instruction information are transferred.
Page 471
Files copied by the memory copy function The following table lists the files to be copied by the memory copy function. : Memory copy possible, : Memory copy not possible, : Storage not possible File type Copy CPU built-in memory SD memory card Program memory Device/label Data memory...
Execution method of memory copy The following methods are available for memory copy. Item Description Application Automatic memory copy Automatically executes the memory copy by the system. Executing the memory copy without using an engineering CPU parameter settings are required in advance. tool or external devices (such as a GOT) Memory copy with the engineering tool Executes the memory copy with an online operation of...
• When the control system power supply and the standby system power supply are simultaneously turned on, the automatic memory copy is not executed. • The standby system CPU module does not operate in boot operation using an SD memory card, but operates based on the files copied by the automatic memory copy function.
Memory copy with the special relay and special register The following describes the execution procedure of memory copy using the special relay and special register. Special relay to be used The following table lists the special relay areas used in memory copy. SM number Name SM1653...
Page 475
Operation of the special relay and special register The following chart shows the operation of the special relay and special register in memory copy. SM1653 Memory copy start SM1654 Memory copy being executed SM1655 Memory copy completion SD1653 Memory copy destination I/O number 03D1H SD1654 Memory copy status...
Precautions The following describes precautions on the memory copy function. Automatic memory initialization If there are differences in the data memory or an SD memory card, the "$MELPRJ$" folder is deleted from the data memory or SD memory card, and the memory copy is executed. If there are differences in the program memory or device/label memory, the memory is initialized, and the memory copy is executed.
28.5 System Consistency Check This function checks whether the system configurations and files in the CPU modules are the same between the control system and the standby system when the redundant system is in backup mode. The following table lists the items to be checked in the system consistency check. Item Description Reference...
Page 478
Execution timing The following table shows the execution timing of the system consistency check. Item Execution timing File • When both systems are simultaneously turned on or reset • When one system is turned on or reset while waiting for the start-up of the other system •...
File Whether both systems have the same files is checked. The following table shows whether or not to perform the check on each file type. : Checked, : Not checked, : Storage not possible File type Check target memory Built-in memory of CPU SD memory card module ...
Operating status Whether the CPU modules of the control system and standby system are in the same operating status (RUN/STOP/PAUSE) is checked. Operation of when a mismatch is detected If a mismatch between the operating statuses is detected, a continuation error occurs on the standby system CPU module. The BACKUP LEDs of the redundant function modules of the control system and standby system flash because a cause of the system switching failure has occurred.
Operation of when a mismatch is detected If a mismatch of the installation of the SD memory cards or the status of the write protect switch is detected, a stop error occurs on the standby system CPU module. If a mismatch between the mounting statuses of the main base units is detected when the CPU modules of both systems are simultaneously turned on or reset, a stop error occurs on the control system CPU module as well.
Page 482
Setting of program execution in both systems Configure the setting for each program to be executed on both systems. [CPU Parameter] [Program Setting] Window Displayed items Item Description Setting range Default Both Systems Program Set whether to execute a program only on the control system CPU module or on •...
Operation of a program executed in both systems The following describes the operation of a program executed in both systems. Control system/ Backup mode Separate mode Standby system Control system A program is executed according to its execution type. A program is executed according to its execution type regardless of the setting in "Both Systems Program Executions Setting".
Page 484
Operation at system switching The operation at system switching is different for a program executed in both systems. The following table shows the operation at system switching. Item New control system CPU module New standby system CPU module Program execution Initial execution When an initial execution type program has not been When an initial execution type program has not been...
Precautions The following lists the precautions for using a program executed in both systems. Item Description Reference Program execution time Set a program execution time of the standby system to be shorter than that of the Page 483 Program control system. execution time ...
Page 486
Tracking transfer • Do not set global devices used in a program executed in both systems as a tracking transfer target. Due to tracking transfer, the standby system data is overwritten with that of the control system, and the standby system program may operate in an unintended way.
28.7 Redundant System Operation Setting Set the redundant system operation in the redundant system settings of the CPU parameter. [CPU Parameter] [Redundant System Settings] Window Displayed items Item Description Setting range Default Watching Standby System Setting Set this item not to detect continuation errors when: •...
Standby system output setting Output timing When "Standby System Output Setting" has been set to "Enable", the output timing from the standby system in backup mode is at the completion of the END processing or depends on the refresh group setting or refresh settings of each module. ( Page 65 Group setting for refresh) Therefore, when a control system execution program is set in the refresh group setting, the I/O refresh is not performed while the module is running because the program is not executed in the standby system.
28.8 Redundant Function Module Communication Test The hardware of the redundant function module is checked for an error when its communication is unstable. The following table shows the test items included in the module communication test. Test item Description Internal selfloopback test Checks whether the communication function of the redundant function module normally operates.
28.9 Constant Scan The following describes the precautions for setting the constant scan in the redundant system. Increase in scan time In the standby system, when the CPU module is powered off, a hardware failure has occurred, or a tracking cable has a failure, the scan time will increase in the control system.
28.10 Online Change When the online change (ladder block) is performed on the CPU module in one system in backup mode, the change is also reflected on the CPU module in the other system. In separate mode, only the ladder block of the CPU module in the system specified in the transfer setup of the engineering tool is changed.
28.11 RAS Function Clearing errors on the standby system CPU module from the control system CPU module Errors on the standby system can be cleared from the control system CPU module by using SM1679 (Error reset (the other system)) in programs or external devices. Error clearing procedure Use SM1679 to clear errors.
28.12 Remote Operation In a redundant system, the operation target of remote operations (with the engineering tool) depends on the operation mode and method. Operation mode Remote operation Remote RUN, remote STOP, remote PAUSE Remote RESET Backup mode The CPU module operating status of a system specified in the The CPU modules of both systems can be reset by performing transfer setup of the engineering tool or both systems can be the remote RESET operation on the control system CPU...
Remote RESET The following describes the remote RESET operation in a redundant system. In backup mode The CPU modules of both systems can be reset by performing the remote RESET operation on the control system CPU module. Only the standby system CPU module can be reset by performing the remote RESET operation on the standby system CPU module.
28.13 Boot Operation This section describes precautions on using the boot operation in the redundant system. Boot operation at start-up of the redundant system Use the boot operation only to simultaneously start up both systems. Attach SD memory cards that have boot setting data to both systems. Simultaneously turn on or reset both systems and perform the boot operation for them.
28.14 External Input/Output Forced On/Off Function Forced on/off is reflected to the input/output devices of both systems and external outputs by registering or canceling forced on/off for the control system. (Forced on/off is reflected to both systems without setting tracking transfer setting in the CPU parameters.) Ô...
Page 497
Reflection to external outputs of the standby system The forced on/off is reflected to output devices of the standby system regardless of the operation mode and settings. However, for external outputs of the standby system, the reflection is as follows depending on the operation mode and the output setting of the standby system.
Page 498
Forced on/off timing The following table lists the timing to reflect forced on/off registration information to the input/output devices or external outputs. Input/output for which forced on/off Reflection timing for the input devices Reflection timing for the output devices or can be set external outputs Input/output of the modules mounted on the...
Page 499
Behavior of forced on/off This section describes the behavior of forced on/off in the following cases. ■At operation mode change Even if the operation mode has been changed (backup mode separate mode, or separate mode backup mode), the forced on/off registration information before the change remains.
28.15 Data Logging Function In a redundant system, the data logging function collects data only in the control system regardless of the operation mode. For details on CPU Module Logging Configuration Tool used for the data logging function in a redundant system, refer to the following.
Data logging states at system switching The following table lists the data logging states that change at system switching. ■When the control system is switched to the standby system Before system switching (old control system) After system switching (new standby system) Waiting Start Not Collected Standby system start waiting Pause...
Switching to a storage file After system switching, the file name in the old control system is not taken over to the new control system. (A number added to the file name is not a serial number.) An identifier added to the end of the file name indicates whether the systems are switched or not. Identifier Description *1*2...
28.16 SLMP Communication The following describes the precautions on SLMP communications. System switching There are the following notes when the system IP address matching function is not used. ■Re-setting of the connection destination When the relay CPU module is in the communication-disabled state (power-off, reset, or tracking cable disconnection) at system switching, the connection destination needs to be set again for SLMP communications.
PRECAUTIONS ON PROGRAMMING This chapter describes the precautions on programming for a redundant system. 29.1 Instructions Not Available in Redundant System This section describes the instructions not available in a redundant system. Instructions that cause stop errors Do not use the following instructions in backup mode. Doing so causes an error when the operating status of the CPU module is changed from STOP to RUN.
Instructions that need to be executed again in a new control system For an instruction that requires several scans for completing the processing, the instruction will be continuously executed when the system switching is performed during execution of the instruction. When a completion device has been used in an execution program of the control system, the completion device will not turn on even though the instruction is completed after the system switching from the control system to the standby system.
Page 506
Re-execution of instruction when systems are switched during instruction execution When the system switching is performed while an instruction that requires several scans is being executed, the instruction can be executed again in the new control system after the system switching by using such as the following programs. ■REMFR instruction When the system switching is performed while the instruction is being executed (M201 = ON), SM1643 (ON only in one scan after system switching (standby to control)) will turn on for one scan in the new control system and the REMFR instruction will...
Page 507
■REMTO instruction When the system switching is performed while the instruction is being executed (M101 = ON), SM1643 (ON only in one scan after system switching (standby to control)) will turn on for one scan in the new control system and the REMTO instruction will be executed again on the station number 10 of the network number 1.
Instructions whose operations vary depending on tracking of the signal flow memory The following describes the instructions whose operations after the system switching vary depending on whether the signal flow memory is tracked or not in backup mode. The operations vary when one of the following instructions is executed among program organization units that have the signal flow memory, memory to which tracking can be performed.
Page 509
■When the signal flow memory is tracked When the system switching is performed, the execution condition of the SCJ instruction turns on while the signal flow memory remains off. In the new control system, the processing jumps to the pointer specified by the SCJ instruction in the second scan.
Instructions that affect the status of another instruction when executed When one of the following instructions is executed and the status of another instruction changes, the new status will not be tracked to the other system. When the system switching is performed during execution of an instruction, execute the instruction again as required.
Precautions for using the COM or ZCOM instruction When the network module link refresh is performed by using the COM or ZCOM instruction, output from the remote I/O station may change after system switching. To prevent this, do not perform the network module link refresh with the COM or ZCOM instruction.
29.2 Interrupt from Modules The following describes the precautions for interrupts from modules. System switching in backup mode When the old control system is switched to the new standby system The old control system retains the interrupt factors that have occurred even after the system is switched to the new standby system by system switching before execution of an interrupt program.
When the operation mode is switched to the backup mode For the control system When the interrupt programs of the interrupt factors before switching to the backup mode have not been executed yet, the control system will execute the programs that the system has retained in the separate mode. For the standby system When the interrupt programs of the interrupt factors before switching to the backup mode have not been executed yet, the standby system will retain the interrupt factors that the system has retained in the separate mode.
29.4 Precautions on Timers and Timer Function Blocks The following describes the precautions on timers and timer function blocks at system switching. Current values at system switching For the timer (T), retentive timer (ST), and a timer function block TIMER__M, the current values of the timers in the first scan of the CPU module of the new control system will not be updated after system switching.
29.5 Precautions on Access to Intelligent Function Module or External Devices Depending on the timing of system switching cause to be caused, such as power-off, tracking processing is suspended and device/label data may not be applied to the CPU module in the new control system after the system switching. Consequently, output data may differ from device/label data of the CPU module of the new control system.
Page 516
When output is returned to external input External input (X10) Output (Y10) In the following program, turning on M0 turns on the output (Y10) and turning on M10 turns off the output (Y10). [Without measures] [With measures] (2) PLS M1 delays SET Y10 by one scan. (9) PLS M11 delays RST Y10 by one scan.
29.6 Precautions on Writing Data from GOT or External Devices When data is written from the GOT or external devices, the tracking data may not be applied to the CPU module of the new control system depending on the timing of system switching cause to be caused, such as power-off. Consequently, data that is written from the GOT or external devices before system switching may be lost.
MAINTENANCE AND INSPECTION FOR A REDUNDANT SYSTEM This chapter describes the maintenance and inspection for a redundant system. 30.1 Module Replacement in the Redundant System The following describes the methods of replacing modules in a redundant system while the system is operating. •...
Replacing a CPU module The following describes the procedure for replacing the CPU module. The replacement procedure differs depending on whether the automatic memory copy function is enabled or disabled. ( Page 470 Automatic memory copy) When the automatic memory copy function is enabled Check the operation mode.
Page 520
When the automatic memory copy function is disabled Check the system of the replacement target CPU module. Check the CTRL LED and SBY LED of the redundant function module in the system of the replacement target CPU module for the following. The target module is in the standby system in this case. •...
Replacing a power supply module The following describes the procedure for replacing the power supply module. Check the system of the replacement target power supply module. Check the CTRL LED and SBY LED of the redundant function module in the system of the replacement target module for the following.
Replacing a redundant function module The following describes the procedure for replacing the redundant function module. Check the system of the replacement target power supply module. Check the CTRL LED and SBY LED of the redundant function module in the system of the replacement target module for the following.
Replacing a network module The following describes the procedure for replacing the network module. Check the system of the replacement target power supply module. Check the CTRL LED and SBY LED of the redundant function module in the system of the replacement target module for the following.
Page 524
MEMO 30 MAINTENANCE AND INSPECTION FOR A REDUNDANT SYSTEM 30.1 Module Replacement in the Redundant System...
PART 5 WHEN USING THE SAFETY CPU This part consists of the following chapters. Please read these chapters when using the Safety CPU. Since information same as that of the standard CPU is not described in these chapters, refer to Part 1 to Part 3. 31 RUNNING A SAFETY PROGRAM 32 MEMORY SPECIFICATIONS 33 FUNCTIONS...
RUNNING A SAFETY PROGRAM This section describes how to execute a safety program. Information not described in this chapter is same as that of the standard CPU. ( Page 38 RUNNING A PROGRAM to Page 92 MEMORY CONFIGURATION OF THE CPU MODULE) For details on the setting method (registration procedure) of safety programs, refer to the following.
31.2 Safety Program Safety programs are executed at every safety cycle. Safety cycle processing is performed in the following order: safety input (refresh), safety program, and safety output (refresh). ( Page 527 Safety Cycle Time) Standard programs (+ END processing) are executed within the remaining time of the safety cycle time after safety programs are executed.
Page 528
Safety program execution type The standard program and safety program execution types are as follows. Program Execution type Standard program • Initial • Scan • Fixed scan • Event • Standby Safety program Fixed scan Safety programs are executed as a fixed scan execution type program. However, safety programs perform safety control, and therefore operation differs from standard fixed scan execution type programs in the following ways.
31.3 Safety Cycle Time A safety cycle time is a timing for executing safety programs and performing safety input/output processing. Setting method Set a safety cycle time in the CPU parameter. [CPU parameter] [Safety Function Setting] Window Displayed items Item Description Setting range...
31.4 Safety CPU Operating Status The following is a list of Safety CPU operating statuses. • RUN state • STOP state • PAUSE state Operation processing based on safety CPU operating status Operation processing based on the Safety CPU operating status is the same as that of the standard CPU. ( Page 87 Operation Processing by Operating Status) Safety communications processing based on safety CPU operating status Safety communications processing based on the Safety CPU operating status is as follows.
MEMORY SPECIFICATIONS This chapter describes the memory specifications of the Safety CPU. Information not described in this chapter is same as that of the standard CPU. ( Page 92 MEMORY CONFIGURATION OF THE CPU MODULE) 32.1 Memory Configuration Specifications of the device/label memory differ from the standard CPU in the memory configuration of the Safety CPU. Device/label memory In addition to standard devices and standard labels, the data such as safety devices and safety labels are allocated to each data area of the device/label memory.
Safety devices and safety labels cannot be latched, and therefore there is no latch area for safety devices and safety labels. 32.2 File Size Unit in Memory The following table lists the unit of the file size (cluster size) of the Safety CPU memory. Safety CPU File size unit Program memory...
32.4 Files This section lists the files used by the Safety CPU. File types and storage memory The following table summarizes the types of files stored in the Safety CPU and storage memory. : Required, : Can be stored, : Cannot be stored File type CPU built-in memory SD memory...
File operation available The following lists file operations which are available for each file type. In TEST MODE The following lists file operations which are available for each file type in TEST MODE. : Available, : Not available, : N/A File type Operation using engineering tool Operation with SLMP and FTP...
Page 535
In SAFETY MODE The following lists file operations which are available for each file type in SAFETY MODE. : Available, : Not available, : N/A File type Operation using engineering tool Operation with SLMP and FTP Operation with server function instructions in standard programs Write...
File size The following table lists the size of files that can be stored in the Safety CPU. File type File size Standard program Approx. 4248 bytes minimum (only END instruction + 500 steps reserved for online program change) Standard FB file Approx.
FUNCTIONS This chapter describes the functions added to the Safety CPU and the functions different (modified or restricted) from the standard CPU. Functions not described in this chapter are the same as those described in PART 2. For the availability of Safety CPU functions, refer to the following. ...
Page 538
Function Description Reference Function different Interrupt function Interrupt period The interrupt pointer (I) cannot be used in safety programs. MELSEC iQ-R CPU (modified or setting Also, the following cannot be used in standard programs. Module User's Manual restricted) from the •...
Function Description Reference Function different PID control function The PID control instructions cannot be used in safety MELSEC iQ-R (modified or programs. Programming Manual restricted) from the (CPU Module standard CPU Instructions, Standard Functions/Function Blocks) Multiple CPU Data The Safety CPU supports only data communications using ...
Switching the safety operation mode This section describes how to switch the safety operation mode. Safety operation mode transition timing The timing at which safety operation mode switches is shown below. Safety operation mode switching direction Safety operation mode switch timing TEST MODE ...
Page 541
Safety operation mode state transition The Safety CPU retains the safety operation mode even in the event of a power failure, and therefore the current safety operation mode state will remain unchanged even if the CPU module is powered off and on or is reset. Safety function modules do not retain the safety operation mode in the event of a power failure, and the safety operation mode will be the same as that of the Safety CPU when the CPU module is powered off and on or is reset.
Safety operation mode switching conditions The conditions under which the safety operation mode can be changed are shown below. Safety operation mode Condition switching direction TEST MODE SAFETY MODE The user who is making the switch has "Developers" access level or higher, and is currently logged on. The safety operation mode is currently set to the TEST MODE.
33.2 Continuous RUN Prevention in TEST MODE This function prevents the Safety CPU from running continuously for a long time in TEST MODE. When the continuous RUN time has exceeded the allowed time, a continuation error occurs. Measuring the continuous RUN time in TEST MODE When the Safety CPU enters RUN state in TEST MODE, measurement of RUN time starts.
33.3 Safety Diagnostic Function The following lists self-diagnostic functions specific to the Safety CPU. Item Description Diagnostic timing Error code Memory diagnosis RAM diagnosis Detects errors occurring at program memory, • When power is turned off and 3C20H, 3C21H, device memory, and memory used by the system. 3C22H, 3C2FH, •...
33.4 Safety Data Identify Check This function checks if the project data created using the engineering tool and the data in the Safety CPU are the same, and confirms that the program executed in SAFETY MODE is the one written by the user. This function compares files in the engineering tool with files stored in the Safety CPU, and shows the comparison result.
33.6 Device/Label Memory Area Setting The capacity of each area on the device/label memory can be specified. Default capacity The default capacity of each area is as follows. Item R08SFCPU R16SFCPU R32SFCPU R120SFCPU Standard device area 40K words 40K words 40K words 40K words Safety device area...
Setting range of capacity of each area The following tables list the setting range of the capacity of each area on the device/label memory. *1 The remaining capacity of other areas is automatically set as the capacity of the standard local device area and safety local device area. (...
Page 548
R120SFCPU Area Setting range of capacity of each area Without an With an extended With an extended With an extended With an extended extended SRAM SRAM cassette SRAM cassette SRAM cassette SRAM cassette cassette (1MB) (2MB) (4MB) (8MB) Standard device area 2 to 1684K words 2 to 2196K words 2 to 2708K words...
Setting method The capacity in each data area of the device/label memory can be changed. [CPU Parameter] [Memory/Device Setting] [Device/Label Memory Area Setting] Operating procedure Set whether to use an extended SRAM "Device/Label Memory Area Setting" window cassette or not in "Extended SRAM Cassette Setting".
Page 550
Standard device area setting range The number of points of each device used in standard programs and capacity in which the total number of device points can be stored are set. Set the total number of device points within the device area range. Type Device name Symbol...
33.7 Data Logging Function This section describes restrictions when the data logging function is used. Data to be collected Only data in standard devices can be collected. ( Page 171 Data to be collected) Although data logging cannot be executed by specifying safety devices and safety labels, data in safety devices and safety labels can be collected by taking the following steps (...
33.8 RAS Functions This section describes the RAS functions of the safety CPU. Self-diagnostic function This section describes the self-diagnostic function of the Safety CPU module and safety function module. As for the Safety CPU, only the parts that differ from the standard CPU are described. How to check errors Errors in the Safety CPU can be checked in the same way as for the standard CPU.
CPU module operation setting ■Applicable errors to the CPU module operation setting The following table lists the errors in the Safety CPU applicable to the setting that specifies the CPU module operation of when the specific errors have occurred in each intelligent function module. Error name Error code Module moderate error...
Page 554
Error name Error code Safety cycle processing error 1A01H Continuous RUN time in TEST MODE exceeded 1A20H Destination station error in safety communications 1A40H Parameter mismatch in safety communication destination station 1A50H Device mismatch in safety communication destination station 1A51H Device version mismatch in safety communication destination station 1A52H Timeout in safety communications...
Page 555
How to clear errors Errors in the Safety CPU can be cleared in the same way as for the standard CPU. ( Page 135 How to clear errors) The following describes how to clear errors of the safety function module. ■Using the engineering tool Clear errors with the module diagnostics function of GX Works3.
SAFETY DEVICES, SAFETY LABELS, AND CONSTANTS This chapter describes the safety devices, safety labels, and constants. 34.1 Safety Devices A safety device is a device used in safety programs. The safety devices can be used only in the safety programs. •...
Safety user devices This section describes the safety user devices. Safety input (SA\X) Safety inputs are used to give instructions or data to the Safety CPU with external devices such as emergency stop buttons, safety plugs, door switches, and light curtains. Safety output (SA\Y) Safety outputs are used to output safety program control results to external relays, contactors, robots, and motion, etc.
Page 558
Safety timer (SA\T)/safety retentive timer (SA\ST) This device starts measurement when the safety timer coil is turned on. When the current value reaches a setting value, time is up and the contact is turned on. This safety timer is an up-timing type device and therefore the current value matches a setting value when the safety timer time is up.
Safety counter (SA\C) This device counts the number of rising operation of the input condition in the program. The safety counter is an up-timing type device and therefore when the count value matches a setting value, the count reaches its upper limit and the contact is turned on.
34.2 Safety Global Devices A safety global device is a device that can be shared by all the safety programs. 34.3 Safety Local Devices A safety local device is a device used individually by each safety program. Devices that can be used as a safety local device The following devices can be used as a safety local device.
34.4 Safety Label A label used in safety programs is called a safety label. Information not described in this section is same as that of standard labels. ( Page 372 LABELS) Safety label types There are three safety label types. Only the following labels can be used in safety programs. •...
Page 562
■To use the annunciator (F) The safe state signal status can be controlled using the annunciator (F) in the standard program. The safe state signal status is passed from the safety program to the standard program via the standard/safety shared label (safe_state), and the status is controlled with the annunciator No.5.
Classes The following table lists the availability of the classes of safety global labels and standard/safety shared labels. : Applicable, : Not applicable Class Availability Safety global label Standard/safety shared label VAR_GLOBAL VAR_GLOBAL_CONSTANT VAR_GLOBAL_RETAIN The following table lists the availability of the classes of safety local labels.
Data types Primitive data type The following table lists the availability of primitive data types. : Applicable, : Not applicable Data type Availability BOOL Word [unsigned]/bit string [16 bits] WORD Double word [unsigned]/bit string [32 bits] DWORD ...
Page 565
PART 6 WHEN USING THE SIL2 PROCESS CPU This part consists of the following chapters. Please read these chapters when using the SIL2 Process CPU. Since information same as that of the standard CPU is not described in these chapters, refer to Part 1 to Part 35 BASIC CONCEPT 36 PROCEDURE FOR STARTING UP A SYSTEM USING THE SIL2 PROCESS CPU 37 FUNCTIONS...
BASIC CONCEPT The SIL2 Process CPU, SIL2 function module, and the modules which have the SIL2 mode obtained the safety approvals (IEC61511: 2015 SIL2 and IEC61508: 2010 SIL2). Use the SIL2 Process CPU with the SIL2 function module as a pair. Programs for safety control and for standard control can be executed simultaneously in one system.
35.1 System System A and system B One system is specified as a system A and the other is specified as a system B to distinguish between two systems connected with tracking cables. Set the system A or B with the engineering tool. ( Page 601 System A/B Settings) When one system is set to system A, the other system is automatically set to system B, and vice versa.
35.4 Operation Mode of the SIL2 Process CPU This mode determines the operation of the SIL2 Process CPU and is fixed to redundant mode . ( Page 599 Creating a Project) *1 Use this mode when a redundant system is built. 35.5 Operation Modes of the System This mode determines the operation of the system and is fixed to backup mode.
Operations restricted in SAFETY MODE When the safety operation mode is set to SAFETY MODE, the following operations cannot be performed. Operation Restrictions Writing data to the programmable controller Data cannot be written to files relating to safety control such as safety programs or safety CPU parameters.
35.7 Scan Configuration This section describes scan configurations of the CPU modules in a system using the SIL2 Process CPU. Tracking transfer is performed during the END processing. ( Page 622 Tracking Transfer) For details on the scan configuration other than tracking transfer, refer to Chapter 1. ( Page 38 Scan Configuration) The following figure shows scan configurations of when both systems are started up simultaneously.
35.8 Determination of Control System/Standby System This section describes how to determine which system is the control system and the other is the standby system. When starting up both systems simultaneously The following describes the method of determining the system types of when both systems are started up simultaneously. How to determine the system types Whether each system is the control system or standby system is determined when the both systems are started up by powering off and on or reset of the CPU module and then ready for tracking communications.
■When the READY LED of the CPU module in one of the systems is flashing Do not power off the CPU module in the other system. The system may start up without checking the system consistency even when the conditions between the both systems do not match.
Page 573
The system waiting for the start-up of the other system When the CPU module is started up and tracking communications cannot be established with the other system, the CPU module will start waiting for the start-up of the other system in three seconds. Both of the CTRL LED and SBY LED of the redundant function module turn off because the system of the CPU module is not the control system or standby system yet.
When one system is started automatically even though a tracking communication error has occurred When the other system is powered off or a tracking cable has an error at a system start, the CPU module waits for the start-up of the other system. The following shows a program example to start up only one of the systems using external signals without waiting for the start-up of the other system.
Page 575
■I/O signals The following table lists the details on the I/O signals. Device No. Signal name Control System Start-up Setting (Input (X)). With the on delay timer wired externally, X30 turns on and the CPU module starts as the control system after a certain time. Starting up (other system) Control system (other system) Starting up (own system)
Page 576
■CPU parameter (redundant settings) Set the CPU parameter in "Redundant System Settings" as follows. (1) Set "Not Set" in "Other system Start-up Timeout Setting". (2) Set "Enable" in "Control System Start-up Setting (Input (X))". (3) Set "X30" in "Input (X)". (4) Set "Detailed setting"...
Page 577
Program example The following figure shows a program example and the overview of the operation. ■Execution determination of start-up processing (0) Set an interlock signal (M0) to prevent the above program from being executed if the operating status of the CPU module is changed from STOP to RUN during operation.
Page 578
• If both systems start up successfully, a stop error does not occur because an initial execution type program is not executed on the other system. • If a stop error has occurred in this program, the possible cause is a tracking cables failure. Check the connection of tracking cables and power off and on or reset the CPU module on the system in which the stop error has occurred.
When starting up the previous control system as the control system The system A is always specified as the control system when both systems are started up simultaneously. Even though both systems are temporarily powered off due to a power failure or other causes while the system B is operating as the control system, the system A is started up as the control system when both systems are powered on again.
35.9 State Transition of a System Using the SIL2 Process CPU The following figure shows the state transition of the system after start-up. Both systems are powered off. System A: Off System B: Off System B is powered on. System A is powered on. (Forced start of the control system) (Forced start of the control system) Both systems are...
35.10 Running a Safety Program This section describes how to execute a safety program. Information not described in this chapter is same as that of the standard CPU. ( Page 38 RUNNING A PROGRAM to Page 92 MEMORY CONFIGURATION OF THE CPU MODULE) For details on the setting method (registration procedure) of safety programs, refer to the following.
Safety program Safety programs are executed at every safety cycle. Safety cycle processing is performed in the order of safety input (refresh) processing safety program safety output (refresh) processing. ( Page 582 Safety cycle time) Standard programs (+ END processing) are executed within the remaining time of the safety cycle time after safety programs are executed.
Page 583
Safety program execution type The following table lists the standard program and safety program execution types. Program Execution type Standard program • Initial • Scan • Fixed scan • Event • Standby Safety program Fixed scan Safety programs are executed as a fixed scan execution type program. However, safety programs perform safety control, and therefore operation differs from standard fixed scan execution type programs in the following ways.
Safety cycle time A safety cycle time is a timing for executing safety programs and performing safety input/output processing. Setting method Set a safety cycle time in the CPU parameter. [CPU parameter] [Safety Function Setting] Window Displayed items Item Description Setting range Default...
SIL2 Process CPU operating status The following is a list of SIL2 Process CPU operating statuses. • RUN state • STOP state • PAUSE state Operation processing based on SIL2 Process CPU operating status Operation processing based on the SIL2 Process CPU operating status is the same as that of the standard CPU. ( Page 87 Operation Processing by Operating Status) ■Safety communications processing based on SIL2 Process CPU operating status The following table shows safety communications processing based on the SIL2 Process CPU operating status.
35.11 Memory Specifications This section describes the memory specifications of the SIL2 Process CPU. Information not described in this chapter is same as that of the standard CPU. ( Page 92 MEMORY CONFIGURATION OF THE CPU MODULE) Memory configuration Specifications of the device/label memory differ from the standard CPU in the memory configuration of the SIL2 Process CPU. Device/label memory In addition to standard devices and standard labels, the data such as safety devices and safety labels are allocated to each data area of the device/label memory.
File size unit in memory The following table lists the unit of the file size (cluster size) of the SIL2 Process CPU memory. SIL2 Process CPU File size unit Program memory Device/label memory Data memory R08PSFCPU 128 bytes 512 bytes 2048 bytes R16PSFCPU 4096 bytes...
Files This section lists the files used by the SIL2 Process CPU. File types and storage memory The following table summarizes the types of files stored in the SIL2 Process CPU and storage memory. : Required, : Can be stored, : Cannot be stored File type CPU built-in memory SD memory...
Page 589
File operation available This section describes file operations which are available for each file type. ■In TEST MODE The following table lists file operations which are available for each file type in TEST MODE. : Available, : Not available, : N/A File type Operation using engineering tool Operation with SLMP and FTP...
Page 590
■In SAFETY MODE The following table lists file operations which are available for each file type in SAFETY MODE. : Available, : Not available, : N/A File type Operation using engineering tool Operation with SLMP and FTP Operation with server function instructions in standard programs Write...
Page 591
File size The following table lists the size of files that can be stored in the SIL2 Process CPU. File type File size Standard program Approx. 4248 bytes minimum (only END instruction + 500 steps reserved for online program change) Standard FB file Approx.
PROCEDURE FOR STARTING UP A SYSTEM USING THE SIL2 PROCESS CPU This chapter describes the procedures for starting up a system using the SIL2 Process CPU. 36.1 Overview This section describes the overview of the procedures for starting up a system using the SIL2 Process CPU. The procedures for starting up both systems at a time are shown in this section.
Page 593
Procedure for the remote head module side Powering on the system Check the system for the following and power on the system. • Wiring to the power supply module is correct. • The power supply voltage is within the range of specifications. •...
Page 594
Procedure for the SIL2 Process CPU side Powering on the systems Check each system for the following and power on the systems. • Wiring to the power supply module is correct. • The power supply voltage is within the range of specifications. •...
Page 595
Resetting the SIL2 Process CPUs Restart both systems with either of the following methods. • Powering off and on the systems • Resetting the SIL2 Process CPUs For starting up only one system, perform the following operation on the engineering tool to start up the system as the control system within the time period set in "Other system Start-up Timeout Setting".
Page 596
Enabling the modules Safety module operation Check that the systems on the SIL2 Process CPU side and remote head module side are powered on, and then enable the modules set to SIL2 mode with the "Safety Module Operation" of the engineering tool. ( Manual for the intelligent function module used, ...
Page 597
• Check the operation of safety programs and standard programs. Switching the safety operation mode Switch the safety operation mode to SAFETY MODE to run the system normally as a system using the SIL2 Process CPU. Set the SIL2 Process CPU to the STOP state before switching the mode. ( Page 655 Switching Safety Operation Mode) Setting the SIL2 Process CPU to the STOP state causes a continuation error due to the operating status mismatch and the error is detected in the standby system.
Page 598
Checking the LEDs on the SIL2 Process CPU side Check that the LEDs of each module are in the following states. The CARD READY LED status depends on whether an SD memory card has been installed to each CPU module or not. •...
36.2 Wiring Wiring the redundant function modules This section describes how to wire the redundant function modules. Wiring method Connect the tracking cables from the OUT connector of a redundant function module to the IN connector of the other redundant function module. For the specifications of the tracking cables connected to redundant function modules, refer to the following.
Wiring to the power supply modules in a system using the SIL2 Process CPU This section describes the wiring to the power supply modules. The terminal block of each power supply module has a screw size of M4. Wire cables to the terminal block with the applicable solderless terminal RAV1.25-4 or RAV2-4.
36.3 Creating a Project Start the engineering tool and create a project. [Project] [New] Select a SIL2 Process CPU to be used for "Type". The setting for "Mode" is fixed to "Redundant". Select a programming language to be used for "Programming Language" and click the [OK] button.
36.4 Connecting a Personal Computer and a CPU Module Connect the personal computer on which the engineering tool has been installed and a CPU module. Connection procedure The following describes the procedure for directly connecting a CPU module and the personal computer. Connect a CPU module to the personal computer with a USB Own system The other system...
36.5 System A/B Settings Set the system A or B with the engineering tool and write the system settings to the CPU module. [Online] [Redundant PLC Operation] [System A/B Setting] Setting procedure Set the CPU module to the STOP state. Select the setting to be written to the own system on the "System A/B Setting"...
Page 604
Check method Check the LED of each redundant function module to check the system status. Setting on the engineering tool LED of the redundant function module System A System B When the system setting is switched from system A to B When the system setting is switched to the system B with the engineering tool, the SYS B LED will flash.
36.6 Writing Data to the Programmable Controller Write the set parameters and created programs to the CPU module. [Online] [Write to PLC] Operating procedure Select system parameters, CPU parameters (standard/ safety), module parameters, and program files (standard/safety) on the "Online Data Operation" window.
36.7 Monitoring the Program Check the operation of a program on the engineering tool. Change the connection destination with the engineering tool and check the operating status of the system A or B. [Online] [Current Connection Destination] Select a system in "Specify Redundant CPU" on the "Specify Connection Destination Connection"...
FUNCTIONS This chapter describes the redundant functions and safety functions that can be used with the SIL2 Process CPU and the functions that are different (modified or restricted) from those described in Part 2. Functions not described in this chapter are the same as those described in Part 2.
Page 608
Function Description Reference Functions Constant scan • In the standby system, system switching when the system is powered off, a Page 662 Constant Scan different hardware failure has occurred, or a tracking cable has a failure may (modified or generate a continuation error due to the excess of constant scan time. restricted) from •...
Page 609
Function Description Reference Functions RAS function Scan • During system switching, scan time monitoring with the watchdog timer is different monitoring interrupted. Thus, no error is detected even if the scan time monitoring time (modified or function has elapsed. Therefore, a time taken for system switching does not need to restricted) from be considered in the scan time monitoring time setting.
Page 610
Function Description Reference Functions Process control function Process control function blocks and process control instructions can be used MELSEC iQ-R different only in standard programs. Programming Manual (modified or (Process Control restricted) from Function Blocks/ Part 2 Instructions) Label Label Safety labels and standard/safety shared labels are not applicable as only initialization...
37.1 System Switching This function switches the systems between the control system and the standby system to continue operation of the redundant system when a failure or an error occurs in the control system. The systems can also be switched manually by a user for debugging or maintenance.
Page 612
Automatic system switching A system judges whether system switching is required or not, and automatically switches the systems between the control system and the standby system as required. ■System switching due to power-off, reset, or hardware failure of the CPU module The standby system CPU module monitors the control system status.
Page 613
■System switching request from a network module A control system network module requests the CPU module to switch systems when a communication error or disconnection is detected. When the control system CPU module receives the system switching request from the network module, the systems are switched in the END processing.
Page 614
Manual system switching The user can manually switch the systems between the control system and the standby system. • After turning on SM1646 (System switching by a user), perform the manual system switching in the control system. • When the manual system switching is disabled by the DCONTSW instruction, execute the ECONTSW instruction.
Page 615
■System switching request from the engineering tool When the engineering tool sends a system switching request to the control system CPU module, the systems are switched in the END processing. Switch the systems from the "Redundant Operation" window of the engineering tool. [Online] ...
Operation at system switching The following table shows the operations of the CPU modules of when the control system and the standby system are switched. These operations are for when both systems are operating and the operating statuses of the CPU modules are the same. Item New control system CPU module New standby system CPU module...
Page 617
Item New control system CPU module New standby system CPU module Local device setting (standard/safety program) This setting is in accordance with the parameter settings. No operation is performed because the program does not operate. File register setting The file register setting before system switching is held. Direct access input (DX) In the program execution after system switching, data is fetched when an instruction using the direct access input...
Execution availability of system switching The following tables show the execution availability of system switching. : Switching possible, : Switching not possible Status of system using the Execution availability of system switching SIL2 Process CPU Automatic system switching Manual system switching Power-off or Hardware Stop error of the CPU...
Occurrence of a cause of the system switching failure The BACKUP LED flashes when a cause of the system switching failure has been generated. The cause of the BACKUP LED flashing can be checked in SD1642 (BACKUP/SEPARATE LED flashing cause). Check SD1642 and eliminate the cause to flash the LED. Check method of system switching information The following table lists the check methods of system switching information at system switching (automatic system switching and manual system switching).
Page 620
■Special relay The following table shows the special relay for system switching and the storage status of the CPU modules in the control system and standby system. : Stored, : Not stored Name Storage status at system switching number New control system New standby system CPU module CPU module...
Precautions The following table lists the precautions on system switching. Item Description Reference Error in the redundant function module • When an error has been detected on the redundant function module, the control Page 620 Error in the system and standby system continue operating without being switched. redundant function module •...
Page 622
Error in the redundant function module • When an error has been detected on a redundant function module, a continuation error occurs on the CPU module, and the control system and standby system continue operating without being switched. Check the error code, and perform online module change if the redundant function module has failed.
Page 623
When the cable for the network module is disconnected If a network module cable is disconnected, the systems may not be switched depending on the timing of error detection on the control system and the timing on the standby system. Control system Standby system Other station systems...
37.2 Tracking Transfer This function transfers the control data from the control system to the standby system and maintains the consistency of the data in the two systems to continue operation of the redundant system when a failure or an error occurs in the control system. Control system Standby system Sending tracking data...
Tracking data The following table lists the tracking data that can be transferred from the control system to the standby system. : Transfer possible, : Transfer not possible Item Transfer Reference Device data User device Page 624 Devices that can be specified ...
Page 626
Devices that can be specified The following table lists the data that can be specified for tracking transfer. : Specifiable, : Not specifiable, : Not settable as a local device Classification Device name Transfer Global device Local device User device Input (X) Output (Y)
Page 627
Auto tracking data The following tables list the data that is automatically transferred by the system regardless of parameter settings of tracking transfer. ■Special relay The following table lists the special relay areas that are automatically transferred by the system. SM number Name SM752...
Tracking block and tracking trigger The devices or labels of a specified range is transferred by setting a range of devices or labels to be transferred for each tracking block and turning on the tracking trigger which is assigned for each tracking block. Note that only standard devices/ labels can be transferred for each tracking block.
Tracking trigger By turning on a tracking trigger, the devices or labels of a range specified in the corresponding tracking block are transferred. Bits used as tracking triggers change depending on the CPU parameter setting, as shown below. ■When "Tracking Device/Label Setting" is set to "Transfer collectively" The bit 0 of SD1667 is used as a tracking trigger.
Tracking transfer setting The following describes the CPU parameters related to tracking transfer. [CPU Parameter] [Redundant System Settings] [Tracking Setting] Window Displayed items Item Description Setting range Default Signal Flow Memory Set whether to transfer the signal flow memory or not. ( Page 629 •...
Page 631
Tracking transfer setting for the signal flow memory By transferring the signal flow memory, operations of rising/falling instructions in the old control system are taken over to the new control system even after system switching. "Signal Flow Memory Tracking Setting" is set to "Transfer" by default. Transferring the signal flow memory is recommended.
Page 632
To transfer the annunciator (F), link special relay (SB), link special register (SW), file register (ZR), or refresh data register (RD), specify the corresponding data in "Device/Label Detailed Setting" of "Tracking Device/ Label Setting". ( Page 630 Detailed setting) After setting "Transfer collectively", perform a test operation in the system design phase and check if the size of tracking data is 1M words or smaller.
■Global device setting Set devices and their ranges for each tracking block No. [CPU Parameter] [Redundant System Settings] [Tracking Setting] [Device/Label Detailed Setting] [Global Device Setting] Window Displayed items Item Description Device Setting Reflection Reflects the device setting of "Device/Label Memory Area Setting" in the CPU parameter. (Except for the annunciator (F), link special relay (SB), and link special register (SW)) Tracking block No.
Tracking mode The following two modes are available for tracking. Item Description Synchronous tracking mode Tracking data is always transferred to the standby system once every scan of the control system. During a tracking transfer from the control system to the standby system, the next scan does not start in the control system. Asynchronous tracking mode When a tracking transfer from the control system is to be performed and the previous tracking is still in progress, the tracking transfer from the control system is canceled and the previous tracking continues.
Page 635
Effect on the scan time The following describes the effect on the scan time depending on the tracking mode. For the calculation method for an increase in the scan time due to tracking transfer, refer to the following. Page 926 Increase in the scan time due to tracking transfer ■Synchronous tracking mode In the synchronous tracking mode, tracking transfer is always performed once every scan during the END processing.
Page 636
■Asynchronous tracking mode In the asynchronous tracking mode, the control system starts the next scan without waiting for notifications of data reception/ reflection completion from the standby system. Unlike the synchronous tracking mode, the scan time is not affected by waiting time for data reception/reflection completion. When the standby system does not receive the tracking data from the control system, the standby system starts the next scan.
Precautions Operation at power-on When the RUN/STOP/RESET switch of the CPU module of each system is set to the RUN position and both systems are powered on, the control system CPU module starts in the STOP state and switched to the RUN state after reflecting the tracking data is completed in the standby system CPU module.
Page 638
Influence on tracking data due to safety cycle time Safety cycle processing is performed at the interval of the specified safety cycle time, and the tracking transfer is performed during the END processing. If the safety cycle time set in the parameter is shorter than the scan time, safety cycle processing may be performed multiple times in a single scan.
37.3 Memory Copy from Control System to Standby System This function transfers data such as parameters and programs in the CPU module of the control system to the CPU module of the standby system to maintain the consistency of the memory in the two CPU modules. Replacement of the standby system CPU module using the memory copy (1) Remove the standby system CPU module.
Page 640
Files copied by the memory copy function The following table lists the files to be copied by the memory copy function. : Memory copy possible, : Memory copy not possible, : Storage not possible File type Copy CPU built-in memory SD memory card Program memory Device/label Data memory...
Page 641
Execution method of memory copy The following methods are available for memory copy. Item Description Reference Memory copy with the engineering tool Executes the memory copy with an online operation of the Page 640 Memory copy with the engineering engineering tool that is connected to the standby system CPU tool module.
Memory copy with the engineering tool The following describes the execution procedure of memory copy using the engineering tool. Execution procedure Connect the engineering tool to the control system CPU module. Open the "Redundant Operation" window of the engineering tool. [Online] ...
Precautions The following describes precautions on the memory copy function. Automatic memory initialization The initialization operation for each memory differs. Memory Initialization operation Program memory, device/label memory Regardless of whether or not there are differences, execute the memory copy after the memory is initialized. Data memory Regardless of whether or not there are differences, the "$MELPRJ$"...
Errors during memory copy When the memory copy is completed with an error, the MEMORY COPY LED of the control system turns off and that of the standby system flashes (at 1s intervals). In this case, the memory copy has not been normally executed on the standby system CPU module.
Page 645
Execution timing The following table shows the execution timing of the system consistency check. Item Execution timing File • When both systems are simultaneously turned on or reset • When one system is turned on or reset while waiting for the start-up of the other system •...
File Whether both systems have the same files is checked. The following table shows whether or not to perform the check on each file type. : Checked, : Not checked, : Storage not possible File type Check target memory Built-in memory of CPU module SD memory card ...
Operating status Whether the CPU modules of the control system and standby system are in the same operating status (RUN/STOP/PAUSE) is checked. Operation of when a mismatch is detected If a mismatch between the operating statuses is detected, a continuation error occurs on the standby system CPU module. The BACKUP LEDs of the redundant function modules of the control system and standby system flash because a cause of the system switching failure has occurred.
SD memory card The system consistency check is performed to check the installation of the SD memory cards and the status of the write protect switch. The SD memory card type or capacity is not checked. The system checks if the SD memory card is inserted while the control system is running even in the case only the standby system is turned off and on or reset.
37.5 Program Execution in Both Systems This function detects an error in the external device or network of the systems (control system and standby system) by executing a program that diagnoses external devices or networks of both systems. The program set in "Both Systems Program Executions Setting" is executed on the CPU modules of both systems. When an error in the external device of the standby system is notified through a continuation error (1) The diagnostic program set as a both systems execution program is executed.
To enable the output (Y) from a standby system external device using a program executed in both systems, configure settings in "Standby System Output Setting" of the CPU parameter. ( Page 652 Redundant System Operation Setting) Operation of a program executed in both systems The following table shows the operation of a program executed in both systems.
Page 651
Operation at system switching The operation at system switching is different for a program executed in both systems. The following table shows the operation at system switching. Item New control system CPU module New standby system CPU module Program execution Initial execution When an initial execution type program has not been When an initial execution type program has not been...
Precautions The following lists the precautions for using a program executed in both systems. Item Description Reference Program execution time Set a program execution time of the standby system to be shorter than that of the Page 650 Program control system. execution time ...
Page 653
Tracking transfer • Do not set global devices used in a program executed in both systems as a tracking transfer target. Due to tracking transfer, the standby system data is overwritten with that of the control system, and the standby system program may operate in an unintended way.
37.6 Redundant System Operation Setting Set the redundant system operation of a system using the SIL2 Process CPU in the redundant settings of the CPU parameter. [CPU Parameter] [Redundant System Settings] Window Displayed items Item Description Setting range Default Watching Standby System Setting Set this item not to detect continuation errors when: •...
Standby system output setting Output timing When "Standby System Output Setting" has been set to "Enable", the output timing from the standby system is at the completion of the END processing or depends on the refresh group setting or refresh settings of each module. ( Page 65 Group setting for refresh) Therefore, when a program set in the refresh group setting is a program executed in the control system, the I/O refresh is not performed while the module is running because the program is not executed in the standby system.
37.7 Redundant Function Module Communication Test The hardware of the redundant function module is checked for an error when its communications are unstable. The following table shows the test items included in the module communication test. Test item Description Internal selfloopback test Checks whether the communication function of the redundant function module normally operates.
37.8 Switching Safety Operation Mode This section describes how to switch the safety operation mode. Safety operation mode transition timing The following table shows the timing at which safety operation mode switches. Safety operation mode switching direction Safety operation mode switch timing TEST MODE ...
Page 658
Safety operation mode state transition The SIL2 Process CPU retains the safety operation mode even in the event of a power failure, and therefore the current safety operation mode state will remain unchanged even if the CPU module is powered off and on or is reset. The SIL2 function module does not retain the safety operation mode in the event of a power failure, and the safety operation mode will be the same as that of the SIL2 Process CPU when the CPU module is powered off and on or is reset.
Page 659
Safety operation mode switching conditions The following table lists the conditions under which the safety operation mode can be changed. Safety operation mode Condition switching direction TEST MODE SAFETY MODE The user who operates the mode switching has "Developers" access level or higher, and is currently logged on. The safety operation mode is currently set to the TEST MODE.
37.9 Safety Diagnostic Function The following table lists the safety-specific diagnostic functions among the self-diagnostic functions for the SIL2 Process CPU. Item Description Diagnostic timing Error code Memory diagnosis RAM diagnosis Detects errors occurring at program memory, • At powering off and on 3C20H, 3C21H, 3C22H, device memory, and memory used by the system.
37.11 Safety Communication Function This function communicates data between the SIL2 Process CPU of the control system and modules supporting safety functions using safety protocols. Safety communication processing is not performed in the SIL2 Process CPU of the standby system. The SIL2 Process CPU performs safety communications between safety stations using the following network.
Safety I/O hold time The safety I/O hold time (Tioh) is the time until safety communications are disconnected (the safety output is turned off) after detection of a timeout for the safety refresh monitoring time of safety communications. Safety I/O Hold Time Setting The safety I/O hold status of each safety connection can be checked with SA\SD1600 to SA\SD1663 (safety I/O hold status of each safety connection).
Page 663
Setting method The following shows the setting method of the safety I/O hold time. [CPU parameter] [Safety Function Setting] Window Displayed items Item Description Setting range Default Safety I/O Hold Time Set the safety I/O hold time. If safety communications recovered 0.0 to 180.0s (in increments 10.0s successfully within the set safety I/O hold time, processing continues.
37.12 Online Change When the online change (ladder block) is performed on the CPU module in one system, the change is also reflected on the CPU module in the other system. Precautions During an online change, avoid the following conditions. •...
37.14 Remote Operation In a system using the SIL2 Process CPU, the behavior of a remote operation (with the engineering tool) differs for each operation. Operation Behavior Remote RUN /Remote STOP/Remote PAUSE The CPU module operating status of a system specified in the transfer setup of the engineering tool or both systems can be changed.
Remote RESET The CPU modules of both systems can be reset by performing the remote RESET operation on the control system CPU module. Only the standby system CPU module can be reset by performing the remote RESET operation on the standby system CPU module.
37.15 Device/Label Memory Area Setting The capacity of each area on the device/label memory can be specified. Default capacity The following table lists the default capacity of each area. Item R08PSFCPU R16PSFCPU R32PSFCPU R120PSFCPU Standard device area 40K words 40K words 40K words 40K words Safety device area...
Page 668
R16PSFCPU Area Setting range of capacity of each area Without an extended SRAM cassette With an extended SRAM cassette (8MB) Standard device area 2 to 854K words 2 to 4950K words Safety device area 1 to 40K words 1 to 40K words Safety label area 0 to 39K words 0 to 39K words...
Setting method The capacity in each data area of the device/label memory can be changed. [CPU Parameter] [Memory/Device Setting] [Device/Label Memory Area Setting] Operating procedure Set whether to use an extended SRAM "Device/Label Memory Area Setting" window cassette or not in "Extended SRAM Cassette Setting".
Page 670
Standard device area setting range The number of points of each device used in standard programs and capacity in which the total number of device points can be stored are set. Set the total number of device points within the device area range. Type Device name Symbol...
37.16 RAS Functions This section describes the RAS functions of the SIL2 Process CPU. Self-diagnostic function This section describes the self-diagnostic function of the SIL2 Process CPU module and SIL2 function module. As for the SIL2 Process CPU, only the parts that differ from the standard CPU are described. How to check errors Errors in the SIL2 Process CPU can be checked in the same way as for the standard CPU.
Page 672
CPU module operation setting at error detection The "Instruction Execution Error" setting under the "CPU Module Operation Setting at Error Detected" is applied only for standard programs. A stop error always occurs in safety programs. (Even if "Continue" is selected, a stop error occurs.) [CPU Parameter] ...
Error clear This function clears all the existing continuation errors occurring in the SIL2 Process CPU or SIL2 function module at once. However, for the SIL2 function module, errors in the other system cannot be cleared. Clear the errors separately in each system.
Page 674
Error name Error code Standby system CPU module error 1B60H, 1B61H Tracking communications disabled 1B70H Tracking communication error 1B71H, 1B78H Tracking transfer error 1B80H, 1B81H, 1B82H Redundant function module error 1BA0H System switching error 1BD0H, 1BD1H Memory card error 2120H, 2121H Module verification error 2400H, 2401H Fuse blown error...
Clearing errors on the standby system CPU module from the control system CPU module Errors on the standby system can be cleared from the control system CPU module by using SM1679 (Error reset (the other system)) in programs or external devices. Error clearing procedure Use SM1679 to clear errors.
37.17 SLMP Communications This section describes the precautions on communications using the SLMP. System switching There are the following notes when the system IP address matching function is not used. ■Re-setting of the connection destination When the relay CPU module is in the communication-disabled state (power-off, reset, or tracking cable disconnection) at system switching, the connection destination needs to be set again for communications using the SLMP.
SAFETY DEVICES, SAFETY LABELS, AND CONSTANTS This chapter describes the safety devices, safety labels, and constants. 38.1 Safety Devices A safety device is a device used in safety programs. The safety devices can be used only in the safety programs. •...
Safety user devices This section describes the safety user devices. Safety input (SA\X) Safety inputs are used to give instructions or data to the SIL2 Process CPU with external devices such as emergency stop buttons, safety plugs, door switches, and light curtains. Safety output (SA\Y) Safety outputs are used to output safety program control results to devices such as external relays and contactors.
Page 679
Safety timer (SA\T)/safety retentive timer (SA\ST) This device starts measurement when the safety timer coil is turned on. When the current value reaches a setting value, time is up and the contact is turned on. This safety timer is an up-timing type device and therefore the current value matches a setting value when the safety timer time is up.
Page 680
Safety counter (SA\C) This device counts the number of rising operation of the input condition in the program. The safety counter is an up-timing type device and therefore when the count value matches a setting value, the count reaches its upper limit and the contact is turned on.
Safety system devices This section describes the safety system devices. Safety special relay (SA\SM) This relay stores the SIL2 Process CPU status relating to safety control. ( Page 882 List of Safety Special Relay Areas) Safety special register (SA\SD) This register stores the SIL2 Process CPU status relating to safety control. ( Page 885 List of Safety Special Register Areas) 38 SAFETY DEVICES, SAFETY LABELS, AND CONSTANTS 38.1 Safety Devices...
38.2 Safety Global Devices A safety global device is a device that can be shared by all the safety programs. 38.3 Safety Local Devices A safety local device is a device used individually by each safety program. Devices that can be used as a safety local device The following devices can be used as a safety local device.
38.4 Safety Label A label used in safety programs is called a safety label. Information not described in this section is same as that of standard labels. ( Page 372 LABELS) Safety label types There are three safety label types. Only the following labels can be used in safety programs. •...
Page 684
■To use the annunciator (F) The safe state signal status can be controlled using the annunciator (F) in the standard program. The safe state signal status is passed from the safety program to the standard program via the standard/safety shared label (safe_state), and the status is controlled with the annunciator No.5.
Classes The following table lists the availability of the classes of safety global labels and standard/safety shared labels. : Applicable, : Not applicable Class Availability Safety global label Standard/safety shared label VAR_GLOBAL VAR_GLOBAL_CONSTANT VAR_GLOBAL_RETAIN The following table lists the availability of the classes of safety local labels.
Data types Primitive data type The following table lists the availability of primitive data types. : Applicable, : Not applicable Data type Availability BOOL Word [unsigned]/bit string [16 bits] WORD Double word [unsigned]/bit string [32 bits] DWORD ...
PRECAUTIONS ON PROGRAMMING This chapter describes the precautions on programming for a system using the SIL2 Process CPU. 39.1 Instructions Not Available in System Using SIL2 Process CPU This section describes the instructions not available in a system using the SIL2 Process CPU. Instructions that need to be executed again in a new control system For an instruction that requires several scans for completing the processing, the instruction will be continuously executed...
Page 688
Re-execution of instruction when systems are switched during instruction execution When the system switching is performed while an instruction that requires several scans is being executed, the instruction can be executed again in the new control system after the system switching by using the programs such as following. ■REMFR instruction When the system switching is performed while the instruction is being executed (M201 = ON), SM1643 (ON for only one scan after system switching (standby system to control system)) will turn on for one scan in the new control system and the REMFR...
Page 689
■REMTO instruction When the system switching is performed while the instruction is being executed (M101 = ON), SM1643 (ON for only one scan after system switching (standby system to control system)) will turn on for one scan in the new control system and the REMTO instruction will be executed again on the station number 10 of the network number 1.
Instructions whose operations vary depending on tracking of the signal flow memory This section describes the instructions whose operations after the system switching vary depending on whether the signal flow memory is tracked or not. The operations vary when one of the following instructions is executed among program organization units that have the signal flow memory, to which tracking can be performed.
Page 691
■When the signal flow memory is tracked When the system switching is performed, the execution condition of the SCJ instruction turns on while the signal flow memory remains off. In the new control system, the processing jumps to the pointer specified by the SCJ instruction in the second scan.
Instructions that affect the status of another instruction when executed When one of the following instructions is executed and the status of another instruction changes, the new status will not be tracked to the other system. When the system switching is performed during execution of an instruction, execute the instruction again as required.
Precautions for using the COM or ZCOM instruction When the network module link refresh is performed by using the COM or ZCOM instruction, output from the remote I/O station may change after system switching. To prevent this, do not perform the network module link refresh with the COM or ZCOM instruction.
39.2 Interrupt from Modules This section describes the precautions for interrupts from modules. When the old control system is switched to the new standby system The old control system retains the interrupt factors that have occurred even after the system is switched to the new standby system by system switching before execution of an interrupt program.
39.4 Precautions on Timers and Timer Function Blocks This section describes the precautions on timers and timer function blocks at system switching. Current values at system switching For the timer (T), retentive timer (ST), and a timer function block TIMER__M, the current values of the timers in the first scan of the CPU module of the new control system will not be updated after system switching.
39.5 Precautions on Access to Intelligent Function Module or External Devices Depending on the timing of system switching cause to be caused, such as power-off, tracking processing is suspended and device/label data may not be applied to the CPU module in the new control system after the system switching. Consequently, output data may differ from device/label data of the CPU module of the new control system.
Page 697
When output is returned to external input External input (X10) Output (Y10) In the following program, turning on M0 turns on the output (Y10) and turning on M10 turns off the output (Y10). [Without measures] [With measures] (2) PLS M1 delays SET Y10 by one scan. (9) PLS M11 delays RST Y10 by one scan.
39.6 Precautions on Writing Data from GOT or External Devices When data is written from the GOT or external devices, the tracking data may not be applied to the CPU module of the new control system depending on the timing of system switching cause to be caused, such as power-off. Consequently, data that is written from the GOT or external devices before system switching may be lost.
MAINTENANCE AND INSPECTION FOR A SYSTEM USING SIL2 PROCESS CPU This chapter describes the maintenance and inspection for a system using the SIL2 Process CPU. 40.1 Module Replacement in a System Using the SIL2 Process CPU This section describes the methods of replacing modules in a system using the SIL2 Process CPU while the system is operating.
Replacing a CPU module and SIL2 function module This section describes the procedure for replacing a CPU module and SIL2 function module. Check the system of the replacement target CPU module. Check the CTRL LED and SBY LED of the redundant function module in the system of the replacement target CPU module for the following.
Replacing a redundant power supply module Select the standby system or control system and power off and replace the redundant power supply module in the system. After that, power off and replace the module in the other system. Since the redundant power supply module that is not the replacement target supplies power to the modules on the base unit, controls can be continuously performed during replacement of the other redundant power supply module.
Replacing a main base unit This section describes the procedure for replacing the main base unit. Check the system of the replacement target power supply module. Check the CTRL LED and SBY LED of the redundant function module in the system of the replacement target module for the following.
APPENDICES Appendix 1 Error Codes The CPU module stores the corresponding error code in the special register (SD) upon detection of an error by the self- diagnostic function. If an error occurs when the data communications are requested from the engineering tool, intelligent function module, or network system connected, the CPU module returns the corresponding error code to the request source.
Page 704
Detailed information Upon detection of an error by the self-diagnostic function, the detailed information of the error cause is stored together with an error code. The detailed information can be checked using the engineering tool. The following detailed information is added to each error code.
Operation when an error occurs There are two types of errors: continuation errors and stop errors. Stop error If a stop error occurs, the CPU module stops its operation and the operating status changes to STOP. Modules can communicate with the CPU module even after the stop error occurs in the CPU module. The external output of each module is controlled in accordance with the output mode setting in error.
Page 706
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1030H Invalid power • An invalid power supply module Continue • Mount only applicable power supply System Always supply module has been mounted on the modules.
Page 707
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 112EH Connection • A connection could not be Continue • Check the operation of the external Always establishment established in the open device. failed processing.
Page 708
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1165H UDP/IP send • Data was not sent correctly with Continue • Check the settings for connection with Always failed UDP/IP. the external device. •...
Page 709
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 11A1H PID operation • A value outside the range ( < 0 Continue • Check and correct the input filter Error location At instruction or 100 ) was specified for the error constant () value.
Page 710
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 11B3H PID operation • A value outside the range (SHPV Continue • Check and correct the process value Error location At instruction error < 0) was specified for the auto threshold (hysteresis) width (SHPV) information execution...
Page 711
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1260H Multiple CPU • The execution interval of a Continue • Check the detailed information (time Time At interrupt synchronization synchronous interrupt program information) of the error by executing information occurrence processing error...
Page 712
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1900H Constant scan • The scan time exceeded the Continue • Check and correct the constant scan Time At END time error constant scan time set in the CPU time setting.
Page 713
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1A50H Parameter • The parameters written to the Continue ■SIL2 Process CPU System At interrupt mismatch in CPU module and to the safety • Check the detailed information (safety configuration occurrence safety...
Page 714
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1A51H Device • The model or production Continue ■SIL2 Process CPU System At interrupt mismatch in information on the safety • Check the detailed information (safety configuration occurrence safety...
Page 715
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1A52H Device version • The version of the device actually Continue ■SIL2 Process CPU System At interrupt occurrence mismatch in connected to perform safety • Check the detailed information (safety configuration safety communications and the version...
Page 716
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1A60H Timeout in • A timeout error occurred during Continue ■SIL2 Process CPU System At interrupt safety safety communications. • Check and correct the safety refresh configuration occurrence 1A66H...
Page 717
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1A70H Safety • The received data is abnormal. Continue ■SIL2 Process CPU System At interrupt communications • Check the detailed information (safety configuration occurrence 1A73H receipt data station system configuration information,...
Page 718
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1B20H System • The operating status of the CPU Continue • Set the same operating status to the Always consistency module differs between the CPU modules in both systems.
Page 719
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1B70H Tracking • Data communications with the Continue • If the standby system is powered off, Always communications other system cannot be performed power on the system. disabled even in backup mode.
Page 720
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1B81H Tracking • The file register capacity has been Continue • Check and correct the tracking transfer At END transfer error set in the CPU parameters of the settings in the CPU parameters so that instruction control system CPU module is...
Page 721
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2004H Module • Nine or more CC-Link IE Stop • Reduce the number of CC-Link IE System At power-on, configuration Controller Network modules and/ Controller Network modules and/or configuration at RESET error...
Page 722
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2022H Module • A power supply module other than Stop • Mount only the redundant power System At power-on, configuration the redundant power supply supply module. If the same error code configuration at RESET error...
Page 723
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2051H CPU module • A CPU module that does not Stop • Refer to the MELSEC iQ-R Online System At power-on, configuration support the online module change Module Change Manual, and correct configuration at RESET...
Page 724
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2100H Memory error • No extended SRAM cassette is Stop • Check that an extended SRAM Drive/file At power-on, inserted. cassette is inserted. Or, correct the information, at RESET •...
Page 725
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2121H Memory card • An error has been detected in the Stop/ • Format the memory card, re-insert the Drive/file Always error memory card. continue memory card, or replace the memory information card.
Page 726
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 21A1H File • The file specified in parameter Stop • Check the detailed information Drive/file At write, at specification cannot be created. (parameter information) of the error by information, power-on, at error...
Page 727
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2221H Parameter error • The set value is out of range. Stop • Check the detailed information Parameter At power-on, (parameter information) of the error by information at RESET, at STOP ...
Page 728
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2226H Parameter error • The SFC setting in the CPU Stop • Check the detailed information Parameter At power-on, parameters is incorrect. (Block 0 (parameter information) of the error by information at RESET, at STOP ...
Page 729
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2261H Parameter error • Different network types (CC IE Stop • Check the detailed information Parameter At power-on, (network) Control extended mode/normal (parameter information) of the error by information at RESET, at STOP ...
Page 730
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2280H Parameter error • The refresh setting is not set Stop • Check the detailed information Parameter At power-on, (refresh) correctly. (Data were refreshed (parameter information) of the error by information at RESET, at STOP ...
Page 731
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2320H Remote • The start I/O number of the Stop • Set the start I/O number of the remote System At power-on, password remote password target module is password target module within the configuration at RESET, at...
Page 732
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2441H Module major • An error has been detected in the Stop/ • Take measures to reduce noise. Error location At instruction error I/O module or intelligent function continue •...
Page 733
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 24C0H System bus • An error was detected on the Stop ■CPU module System At module error system bus. • Take measures to reduce noise. configuration access 24C1H...
Page 734
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 24C3H System bus • An error was detected on the Stop ■CPU module System At module error system bus. • Take measures to reduce noise. configuration access •...
Page 735
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 24D0H System bus • The extension level setting of the Stop • Check and correct the level setting of System Always error Q series extension base unit is the Q series extension base unit.
Page 736
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2520H Invalid interrupt • Even though an interrupt was Stop • Take measures to reduce noise. System At interrupt requested, there is no interrupt • Reset the CPU module and run it configuration occurrence factor.
Page 737
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2806H I/O number or • An I/O module or intelligent Stop/ • Check the detailed information (error Error location At instruction network number function module controlled by continue location information) of the error by information,...
Page 738
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2840H File name • The file specified in the instruction Stop/ • Check the detailed information (error Error location At instruction specification does not exist. continue location information) of the error by information,...
Page 739
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3010H Data restoration • The model of the restoration target Stop • Execute the data restoration function to CPU module At power-on, function CPU module differs from the the CPU module whose model is the data backup/ at RESET...
Page 740
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3100H Program error • The program includes any Stop • Check the detailed information (error Error location At instruction instruction that cannot be used or location information) of the error by information execution...
Page 741
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3140H END instruction • The END (FEND) instruction does Stop • Check the detailed information (error Error location At power-on, error not exist in the program. location information) of the error by information at RESET, at...
Page 742
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3170H SFC program • The number of SFC program Stop • Correct the program so that the Error location At power-on, block, step error steps exceeds the total number of number of SFC program steps does information at RESET, at...
Page 743
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 31B1H SFC program • A non-existent SFC program step Stop • Check the detailed information (error Error location At instruction block, step was specified. location information) of the error by information execution, at specification...
Page 744
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3200H Program ■Programmable controller CPU, Stop ■Programmable controller CPU, Process Drive/file At power-on, execution error Process CPU, SIL2 Process CPU CPU, SIL2 Process CPU information at RESET, at STOP ...
Page 745
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3205H Program • After the global label setting file Stop • Write all the sequence program file(s), Drive/file At power-on, execution error was modified, only the modified FB file(s), global label setting file, and information at RESET, at...
Page 746
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3208H Program • The label file is incorrect. Stop • Check the detailed information (drive/ Drive/file At power-on, execution error file information) of the error by information at RESET, at STOP ...
Page 747
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3302H Pointer setting • Multiple global pointers with the Stop • Check the detailed information (error Error location At power-on, error same number or pointer-type location information) of the error by information at RESET, at...
Page 748
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 33A1H Interrupt pointer • The IRET instruction does not Stop • Check the detailed information (error Error location At instruction execution error exist in the executed interrupt location information) of the error by information execution...
Page 749
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3421H Operation error • When writing data to the data Stop/ • Check the detailed information (error Error location At instruction memory by using the SP.DEVST continue location information) of the error by information...
Page 750
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3430H Operation error • An instruction has been executed Stop/ • Set parameters required to execute the Error location At instruction without setting parameters which continue instruction.
Page 751
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3610H Safety system ■SIL2 Process CPU Stop ■SIL2 Process CPU System At power-on, configuration • The SIL2 function module with a • Mount the safety function module with configuration at RESET error...
Page 752
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3641H Safety mutual ■SIL2 Process CPU, SIL2 function Stop • Take measures to reduce noise. System Always monitoring error module • Check the detailed information (system configuration •...
Page 753
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3683H Parameter error • The safety refresh monitoring time Stop • Check the detailed information Parameter At power-on, (safety function) in the safety communication (parameter information) of the error by information at RESET setting is shorter than the...
Page 754
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3701H System • The CPU module model names Stop • Mount the same CPU module, and At power-on, consistency differ between the systems A and restart the CPU module.
Page 755
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3741H Redundant • Both systems were set as system Stop • Set one system as system A and the At power-on, system error A or system B at start-up. other system as system B by at reset, at •...
Page 756
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3747H Redundant • The system cannot be started as a Stop • Eliminate the error cause, and restart At power-on, system error control system because the CPU the CPU modules in both systems.
Page 757
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3790H Parameter error • The redundant function module Stop • Set the CPU module to redundant System At power-on, (redundant was mounted next to the control mode, and restart the system.
Page 758
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 37C1H Program • In the CPU module which Stop • Check the detailed information (drive/ Drive/file At write, at execution error operates in redundant mode, an file information) of the error by information power-on, at...
Page 759
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3C10H Hardware failure • A hardware failure has been Stop ■CPU module Failure At power-on, detected. • Take measures to reduce noise. information at RESET •...
Page 760
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3C17H Hardware failure • A hardware failure has been Stop • Take measures to reduce noise. Failure Always detected. • Check the mounting status of the CPU information module, SIL2 function module, and 3C20H...
Page 761
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3E00H Operation circuit ■CPU module, SIL2 function Stop ■CPU module, SIL2 function module, Failure At power-on, error module, safety function module safety function module information at RESET •...
Page 762
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3E60H Safety mutual ■SIL2 Process CPU, SIL2 function Stop • Take measures to reduce noise. Failure At power-on, monitoring error module • Check the mounting status of the CPU information at RESET, at •...
Page 763
Codes of errors detected by other than the self-diagnostic function (4000H to 4FFFH) The following table lists the codes of errors, other than those detected by the self-diagnostic function of the CPU module. ■Error codes returned to request source during communications with the CPU module •...
Page 764
Error Error name Error details and cause Action code 4029H File related error • The specified file capacity cannot be obtained. • Review the specified file capacity, and execute the request again. 402AH File related error • The specified file is abnormal. •...
Page 765
Error Error name Error details and cause Action code 4051H Protect error • The specified drive (memory) cannot be accessed. Check the following and take action. • Is the drive (memory) the one that can be used? • Is the specified drive (memory) correctly installed? 4052H Protect error •...
Page 766
Error Error name Error details and cause Action code 4072H Verification error • The global label setting file or the program file with the target • Write the global label setting file or the program file with the program name differs from the one when the file was written. target program name.
Page 767
Error Error name Error details and cause Action code 40A2H SFC device • A step No. outside the range was specified. • Check the setting and correct it. specification error 40A3H SFC device • The number of steps exceeds the range. •...
Page 768
Error Error name Error details and cause Action code 40BDH SFC file related • Online change (SFC block) execution error • Read the program from the CPU module to match it with that error of the engineering tool, and then execute the online program change again.
Page 769
Error Error name Error details and cause Action code 40D0H Label • The target CPU module does not support "Access from • Disable "Access from External Device", and then write the communication External Device" of "Global Label Setting". data to the programmable controller again. error 4100H Any other error...
Page 770
Error Error name Error details and cause Action code 412AH File related error • The request cannot be executed since the specified drive • Execute again after changing the target drive (memory). (memory) is ROM. 412BH File related error • The specified drive (memory) is write-inhibited. •...
Page 771
Error Error name Error details and cause Action code 416AH Online • The specified execution conditions do not exist. (Device test • Check whether the execution conditions (program block, registration error with execution conditions) step No., and execution timing) specified for disabling settings are registered in the CPU module.
Page 772
Error Error name Error details and cause Action code 41D7H File related error • The format information data of the specified drive (memory) • The file information data may be corrupted. is abnormal. • Back up data in the CPU module, and then initialize the memory.
Page 773
Error Error name Error details and cause Action code 4202H Online module • The request cannot be executed because the specified • Execute the request again after the online module change change function module is being changed online. processing ends. error •...
Page 774
Error Error name Error details and cause Action code 424CH Redundant • The request cannot be executed because the online • Execute the request again after the online program change system related program change function is being executed. processing ends. error 424EH Redundant...
Page 775
Error Error name Error details and cause Action code 4272H Debug related • The trigger logging specifying the device as a trigger • Change the trigger condition. Or, stop the trigger logging function error condition is being performed (data logging status: RUN being performed (data logging status: RUN waiting (no waiting (no collection), Condition waiting (no collection), collection), Condition waiting (no collection), Start waiting...
Page 776
Error Error name Error details and cause Action code 4285H Debug related • A non-executable function has been executed during • Execute the function again after the completion of save in function error collection or save in memory dump. memory dump. 4286H Debug related •...
Page 777
Error Error name Error details and cause Action code 42B9H Safety related • The Safety CPU received a request from an unsupported • Send the request to the Safety CPU again from a supported error device. device. 42BAH Safety related •...
Page 778
Error Error name Error details and cause Action code 4309H Security function • The specified user name has not been registered in the CPU • Register user management information in the CPU module. error (user module. • Log in with a registered user name. authentication) 430CH Security function...
Page 779
Error Error name Error details and cause Action code 440BH Security function • Password authentication failed when access was required. • Set a correct password and perform password error authentication again 15 minutes later. 440CH Security function • Password authentication failed when access was required. •...
Page 780
Error Error name Error details and cause Action code 4803H iQ Sensor • The system file does not exist in the specified backup data, • Specify another backup data. Solution related or the system file is corrupted. error 4804H iQ Sensor •...
Page 781
Error Error name Error details and cause Action code 4902H Any other error • The communications have stopped because an error • Eliminate the error cause of the simple CPU communication occurred in another simple CPU communication function setting No. with an error. setting No.
Page 782
Error Error name Error details and cause Action code 4A23H • The CPU module on the path that IP packets travel does not • Replace the CPU module with the one supporting the IP communication support the IP packet transfer function. packet transfer function.
Page 783
Error Error name Error details and cause Action code 4B04H Target module • The specified connection destination (request destination • An invalid value is set as the start I/O number of the error module I/O number) is not supported. connection target module. Set the start I/O number of the target module correctly, and retry data communications.
Page 784
Error Error name Error details and cause Action code 4C0FH Data logging • The program file or global label setting file was changed • Do not change the program file or global label setting file function error while the data logging function specifying the label (global while the data logging function specifying the label (global label or local label) as the collection start condition, data label or local label) is being executed (data logging status:...
Page 785
Error Error name Error details and cause Action code 4C19H CPU module • The data restoration function was executed with backup files • The backup data may have been corrupted. Execute the data backup/ ($BKUP_CPU_INF.BSC and BKUP_CPU.BKD) not data restoration function using another backup data. restoration structured properly.
Page 786
Error Error name Error details and cause Action code 4C44H File transfer The file transfer function (FTP client) is executed while the • Execute the File transfer function (FTP client) again after the function (FTP following functions are being executed. mentioned function is completed.
Page 787
Error Error name Error details and cause Action code CFE8H Cyclic • There is no response from slave station. • Check the slave station disconnection detection setting in transmission master station parameter (Network Configuration Settings). error (slave • Check the existence status of slave station in network. station) •...
Page 788
■Error codes related to the online module change function The following table lists the codes of errors related to the online module change function. The code of an error detected during online module change is stored in SD1618 (Online module change error code). The code of an error when a disable request is executed during online module change is stored in SD1619 (Disable request error code during online module change).
Page 789
Codes of errors detected by other than the self-diagnostic function (6F00H to 6FFFH) The following table lists the codes of errors, other than those detected by the self-diagnostic function of the CPU module. Error Error name Error details and cause Action code 6F00H...
Appendix 2 Event List The CPU module collects information, such as errors detected by the module; operations performed for the module; and network errors, from modules, and stores the collected data into the data memory or an SD memory card. ( Page 136 Event History Function) When an event occurs, its event code and details can be read by using an engineering tool.
Page 791
Detailed Item Description information Detailed information 2 Communication speed and communication Information on the communication speed and the communication mode mode Communication status Information on the communication status Security key operation information Information on the corresponding security key Remote password information Information on the corresponding remote password File password information Information on the corresponding file password...
Event list The following table lists events related to the CPU module. Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 ■CPU module 00100 System Info Link-up Operation Communication The CPU module has entered into the source...
Page 793
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 ■CPU module 00800 System Warning Link-down Operation Communication The CPU module has entered into the source speed and link-down state as a result of an operation information communication such as disconnecting a network cable...
Page 794
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 00A00 System Warning Error detection in An error was detected in the other Error the other system system. description (the other system) 00C02...
Page 795
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 10100 Security Info Security key A security key was registered or deleted. Operation Security key registration/deletion source operation information information 10200 Remote password...
Page 796
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 10600 Security Info User authentication The user authentication function was Operation User function enabled/ enabled or disabled. source authentication disabled information information...
Page 797
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 20100 Operation Info Error clear The error was cleared. Operation Operation target source information information 20200 Event history clear The event history was cleared.
Page 798
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 24000 Operation Info Clock setting The clock data was set. Operation Clock Clock source information information information (before change) (after change) ...
Page 799
Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information 1 information 2 information 3 25200 Operation Info System A/B setting The system A/B setting was written to the Operation System A/B write CPU modules. source setting information...
Appendix 3 Troubleshooting by Symptom If any function of the CPU module does not operate as designed, perform troubleshooting by checking the following items. If the ERROR LED or USER LED is on or flashing, eliminate the error cause using the engineering tool. When the POWER LED of the power supply module turns off For troubleshooting, refer to the following: ...
When an error has occurred in a redundant function module When the RUN LED turns off When the RUN LED turns off after the redundant function module is powered on, check the following. Check item Action Check if the redundant function module has been properly mounted. If not, properly mount the module on the base unit.
When an error has occurred in a safety function module When the READY LED turns off When the READY LED of the safety function module turns off, check the following. Check item Action Check if the safety function module has been properly mounted. If not, properly mount the module on the base unit.
When data cannot be written to the programmable controller Check the following: Check item Action Check if password is not registered. Authenticate a password using the engineering tool. Check if the SD memory card is write-protected while the SD memory card is Clear the write-protect for the SD memory card.
When the CPU module database access function cannot be used When the data source name cannot be set Check the following: Check item Action Check if use prohibited characters are used in "Data Source Name". Set "Data Source Name" without using prohibited characters. Check if the number of use prohibited characters in "Data Source Name"...
Appendix 4 List of Special Relay Areas The following table lists items in the list. Item Description Special relay number Name Special relay name Data stored Data stored in the special relay and its meaning Details Detailed description of the data stored Set by (setting timing) Set side of data (system or user) and timing when data is set by the system <Set by>...
Diagnostic information The following is the list of special rely areas relating to the diagnostic information. Name Data stored Details Set by (setting timing) CPU Latest self-diagnostic error Off: No error • This relay turns on when the self- S (Error) (including annunciator ON) On: Error diagnostics returns an error (including the...
Page 807
Name Data stored Details Set by (setting timing) CPU SM80 Detailed information 1: Flag Off: Not used This relay switches to on if the detailed S (Status change) in use On: In use information n exists when SM0 switched to SM112 Detailed information 2: Flag in use...
System information The following is the list of special relay areas relating to the system information. Name Data stored Details Set by (setting timing) CPU SM203 STOP contact Off: Other than STOP state This relay is on in STOP state. S (Status change) On: STOP state SM204...
Page 809
Name Data stored Details Set by (setting timing) CPU SM240 No.1 CPU reset flag Off: CPU No.n not being • This relay switches to off when the CPU S (Status change) reset module of the CPU No.1 is not being On: CPU No.n in reset reset.
SFC information The following is a list of special relay areas relating to SFC information. Name Data stored Details Set by (setting timing) CPU SM320 Presence/absence of SFC Off: No SFC program • This relay switches to on if an SFC S (Initial) program On: SFC program...
Page 811
Name Data stored Details Set by (setting timing) CPU SM327 Output mode at execution Off: Hold step output off • When this relay switches to off, coil output of the end step On: Hold step output is turned off for steps (SC, SE, ST) for retained which transition is established and that are on hold reach the END step.
System clock The following is the list of special relay areas relating to the system clock. Name Data stored Details Set by (setting timing) SM400 Always On Always On Power-on to RUN or STOP to RUN SM401 Always Off Always Off S (Status change) SM402 After RUN, ON for 1 scan...
Page 813
Name Data stored Details Set by (setting timing) SM415 2n millisecond clock • This relay repeats on/off at regular S (Status change) n ms intervals specified in units of milliseconds n ms on the SD415. (When the value in SD415 is changed, the elapsed time count that has started when the ON/OFF state of SM415 last changed continues, and the...
Page 814
When a value in SD414 is changed from 10 to 3: SM414 SD414 (1) If the new interval in SD414 has already elapsed after the last change of the ON/OFF state of SM414, the ON/OFF state changes as soon as a value in SD414 is changed. (2) Value change APPX Appendix 4 List of Special Relay Areas...
Fixed scan function information The following is the list of special relay areas relating to the fixed scan function information. Name Data stored Details Set by (setting timing) CPU SM480 Cycle error flag for inter- Off: No error for the inter- •...
Drive information The following is the list of special relay areas relating to the drive information. Name Data stored Details Set by (setting timing) CPU SM600 Memory card usable flags Off: Disabled This relay is on when an SD memory card is S (Status change) On: Enabled enabled (This relay switches to on when a...
Page 817
Name Data stored Details Set by (setting timing) CPU SM634 Number of rewriting Off: The number of rewrite This relay switches to on when the number S (Writing) operations error to data operations is less than of data memory rewriting operations memory flag 100000 reaches 100000 (CPU module must be...
Instruction related The following is the list of special relay areas relating to the instruction-related items. Name Data stored Details Set by (setting timing) CPU SM699 Dedicated instruction skip Off: Instruction being • This relay indicates whether the built-in S (Status change) flag executed or completed Ethernet function instruction (the...
Page 819
Name Data stored Details Set by (setting timing) CPU SM752 Dedicated instruction End Off: Automatically This relay can be used to set whether the bit control flag controlled system automatically controls the on/off On: Not automatically operation of End bit being used for the controlled dedicated instruction and other (control of End bit which is registered in the End...
Page 820
Name Data stored Details Set by (setting timing) CPU SM796 Number of used blocks Off: The specified number • This relay switches to on when the S (Instruction execution/ information for the multiple of blocks is reserved number of remaining blocks in the During END) CPU dedicated instruction On: The number of blocks...
Latch area The following is the list of special relay areas relating to the latch area. Name Data stored Details Set by (setting timing) CPU SM922 Firmware update Off: Update completed This relay switches to on when the firmware S (Initial) completion with/without an without an error update function is completed with an error.
Data logging function The following is the list of special relay areas relating to the data logging function. Name Data stored Details Set by (setting timing) CPU SM1200 Auto logging setting file and Off: Mismatch • This relay is on when the auto logging S (Status change) registration status On: Matching...
Page 823
Name Data stored Details Set by (setting timing) CPU SM1213 Data logging setting No.1 Off: Not completed This relay switches to on when the data S (Status change) Data logging end On: Completed logging is completed. For continuous logging, the corresponding bit switches to RnSF on when writing reaches the maximum number of storage files and data logging is...
Page 824
Name Data stored Details Set by (setting timing) CPU SM1270 Data logging setting No.7 Same configuration as the Data configuration is the same as the Same configuration as the setting No.1 setting No.1 (SM1210 to SM1219). setting No.1 SM1279 RnSF SM1280 Data logging setting No.8 Same configuration as the...
CPU module data backup/restoration function The following is the list of special relay areas relating to the CPU module data backup/restoration function. Name Data stored Details Set by (setting timing) SM1350 CPU module data backup Off: Not being executed This relay turns on during the backup of the S (Status change) status flag On: Being executed...
Name Data stored Details Set by (setting timing) SM1364 iQ Sensor Solution OffOn:Restoration • This relay requests the iQ Sensor S (Status change)/U restoration request requested Solution data restoration. OnOff:Restoration • At the timing when this relay turns from off completed to on, the restoration of the set device(s) is executed.
Memory dump function The following is the list of special relay areas relating to the memory dump function. Name Data stored Details Set by (setting timing) SM1472 Memory dump in progress Off: Memory dump not Turns on if memory dump is in progress, S (Status change) executed and turns off if memory dump is not...
Ethernet function The following is the list of special relay areas relating to the Ethernet function. Name Data stored Details Set by (setting timing) SM1520 IP address storage area OffOn:Write request exists • When this relay is changed from off to on, S (Status change)/U write request OnOff:Writing completed...
Online module change function The following is the list of special relay areas relating to the online module change function. Name Data stored Details Set by (setting timing) SM1600 Module selection request OffOn:Requested This relay is turned on to select an online S (Status change)/U flag change target module.
Page 830
Name Data stored Details Set by (setting timing) SM1616 Online module change Off: Disabled This relay turns on when only the Process S (Initial) availability flag On: Enabled CPU is used in a single CPU system. In a RnPSF multiple CPU system, if any of the CPU modules other than the Process CPU does not support the online module change function, the relay turns off.
Redundant function The following is the list of special relay areas relating to the Redundant function. Name Data stored Details Set by (setting timing) SM1630 Operation mode Off: Redundant system in This relay turns on while a redundant system S (Every END) identification flag backup mode, stand- is operating in separate mode.
Page 832
Name Data stored Details Set by (setting timing) SM1653 Memory copy start Off: Not started • When this relay is turned from off to on, the On: Start memory copy from the control system to the standby system starts. Note that the memory copy does not start as long as the I/O number of the copy destination (standby system CPU module: 03D1H) is not stored...
Page 833
Name Data stored Details Set by (setting timing) SM1754 Waiting for the start-up Off: Started up (own • This relay turns on while waiting for the S (Status change) of the other system system) start-up of the other system after powered RnPSF On: Waiting for the start-up (the other system)
Safety information The following is a list of special relay areas relating to safety information. Name Data stored Details Set by (setting timing) SM1840 Allowed time over flag Off: Within the specified This relay turns on when the continuous RUN S (Error) RnSF for continuous RUN in...
Appendix 5 List of Special Register Areas The following table lists items in the list. Item Description Special register number Name Special register name Data stored Data stored in the special register Details Detailed description of the data stored Set by (setting timing) Set side of data (system or user) and timing when data is set by the system <Set by>...
Diagnostic information The following is the list of special register areas relating to the diagnostic information. Name Data stored Details Set by (setting timing) Latest self Latest self Error codes are stored in a hexadecimal value when the diagnostics detects S (Error) diagnostics error diagnostics error...
Page 837
Name Data stored Details Set by (setting timing) SD53 AC/DC DOWN The number of The value of this register increments by one and stored as a BIN code, each S (Error) AC/DC DOWN time input voltage drops to 85% (AC power)/65% (DC power) or less of the detections nominal value while the CPU module is carrying out an operation.
Page 838
Name Data stored Details Set by (setting timing) SD81 to Detailed Detailed • Detailed information 1 corresponding to the error code (SD0) is stored. S (Error) SD111 information 1 information 1 • The type of the detailed information 1 can be obtained using SD80 (the value of the "Detailed information 1 information category code"...
Page 839
Name Data stored Details Set by (setting timing) SD81 to Detailed Detailed (5) System configuration information S (Error) SD111 information 1 information 1 ■SD81: With or without specification b0: I/O number b1: Slot number b2: Base number b3: Power supply number b4: CPU number b5: Network number b6: Station number...
Page 840
Name Data stored Details Set by (setting timing) SD81 to Detailed Detailed ■SD92: Time (value set) (ms) S (Error) ■SD93: Time (value set) (s) SD111 information 1 information 1 ■SD94: Time (actual measurement value) (ms) ■SD95: Time (actual measurement value) (s) (24) Failure information Failure information is system information.
Page 841
Name Data stored Details Set by (setting timing) SD81 to Detailed Detailed (38) Tracking transfer trigger information S (Error) SD111 information 1 information 1 ■SD81: With or without specification b0: Block No. 1 to 8 b1: Block No. 9 to 16 b2: Block No.
Page 842
Name Data stored Details Set by (setting timing) SD81 to Detailed Detailed (50) Safety station system configuration information S (Error) ■SD81: With or without specification SD111 information 1 information 1 b0: Own station I/O number b1: Slot number on the own station base unit b2: Own station base number b3: Own station power supply number b4: Own station CPU number...
Page 843
Name Data stored Details Set by (setting timing) SD113 to Detailed Detailed • Detailed information 2 corresponding to the error code (SD0) is stored. S (Error) SD143 information 2 information 2 • The type of information can be checked in SD112. (The value of the "Detailed information 2 information category code"...
Page 844
Name Data stored Details Set by (setting timing) SD113 to Detailed Detailed ■SD114 S (Error) SD143 information 2 information 2 b8 b7 • b0 to b7: Parameter type (stored in the following value) 1: System parameter 2: CPU parameter 3: Module parameter 4: Module extension parameter 5: Memory card parameter 6: Safety system parameter...
Page 845
Name Data stored Details Set by (setting timing) SD113 to Detailed Detailed (25) Process control instruction processing information S (Error) SD143 information 2 information 2 ■SD113: With or without specification b0: Process control instruction processing information ■SD114: Processing description The following are processing blocks stored in SD114 (Processing details). 1: ...
Page 846
Name Data stored Details Set by (setting timing) SD113 to Detailed Detailed ■SD114: Program error code S (Error) SD143 information 2 information 2 (29) Error information of other stations (CC-Link IE Field) ■SD81: With or without specification ∙∙∙ b5 b4 b3 b2 b1 b0 ∙∙∙...
Page 847
Name Data stored Details Set by (setting timing) SD152 Momentary Momentary • This register counts the number of momentary power failures. S (Status power failure power failure • This register monitors the status of the power supply module mounted on change) detection count detection count...
System information The following is the list of special register areas relating to the system information. Name Data stored Details Set by (setting timing) SD160 Firmware version Firmware version The firmware version is stored. S (Initial) RnSF SD200 Status of switch Status of CPU The switch status of the CPU module is stored as follows: S (Switch...
Page 849
Name Data stored Details Set by (setting timing) SD228 Multiple CPU Number of CPU The number of CPU modules which constitute a multiple CPU system is S (Initial) system information modules stored (one to four, including those reserved). RnSF SD229 CPU module The number of this CPU No.
Page 850
Name Data stored Details Set by (setting timing) SD260 Number of points X (L) The number of points assigned to the X device is stored in 32 bits. S (Initial) assigned to bit SD261 X (H) devices SD262 Y (L) The number of points assigned to the Y device is stored in 32 bits.
Page 851
Name Data stored Details Set by (setting timing) SD308 Number of points RD (L) • The number of points assigned to the RD device is stored in 32 bits. S (Initial) assigned to refresh • The number of points is stored even when the number of points SD309 RD (H) devices...
SFC information The following is the special register area relating to SFC information. Name Data stored Details Set by (setting timing) SD329 Online change (SFC SFC block number • A target SFC block number is stored while the online change (SFC S (Status block) target block block) is being executed (SM329 = ON).
Page 853
Name Data stored Details Set by (setting timing) SD500 Execution program Execution program The program number which is currently executed is stored as a BIN S (Status number number value. change) SD518 Initial scan time Initial scan time (unit: • The initial scan time is stored into SD518 and SD519 (The time is S (Every END) measured in microseconds (s).) SD518: stores a value in the ms place (storage range: 0 to 65535)
Page 854
Name Data stored Details Set by (setting timing) SD530 Scan program Scan program • The execution time of the scan program for one scan is stored S (Every END) into SD530 and SD531 (it is measured in increments of s). execution time execution time (unit: SD530: stores a value in the ms place (storage range: 0 to 65535)
Drive information The following is the list of special register areas relating to the drive information. Name Data stored Details Set by (setting timing) SD600 Memory card SD memory card type This register indicates the type of mounted SD memory cards. S (Initial, card mounting status insertion/...
Page 856
Name Data stored Details Set by (setting timing) SD622 Data memory (drive Data memory (drive The capacity of the data memory is stored in increments of 1K byte S (Initial) 4) capacity 4) capacity: the lower (the amount of free space for a formatted memory card is stored). digits (unit: K bytes) SD623 Data memory (drive...
Page 857
Name Data stored Details Set by (setting timing) SD644 Internal buffer free Internal buffer free This register stores the following in K bytes: internal buffer free S (Status area space area space space that is not set in the internal buffer capacity setting of the change) Low-order (in K CPU parameters.
Instruction related The following is the list of special register areas relating to the instruction-related items. Name Data stored Details Set by (setting timing) SD757 Current interrupt Current interrupt The priority for the interrupt of the interrupt program currently S (Status priority priority executed is stored.
Page 859
Name Data stored Details Set by (setting timing) SD792 PID limit setting (for 0: Limit restriction The limit restriction for each PID loop is specified as follows: (for complete derivative) applied the PIDCONT instruction) SD793 1: No limit restriction SD792 SD793 1 to 32: Loop 1 to 32 SD794...
Firmware update function The following is the list of special register areas relating to the firmware update function. Name Data stored Details Set by (setting timing) SD904 Latest firmware update History Version after the The firmware version after the update S (Initial) information (network) information...
Page 861
Name Data stored Details Set by (setting timing) SD923 Previous firmware update History Execution time The year value (four digits) of the date/time S (Initial) information (CPU) information (year) when the firmware update was executed is stored as a BIN code. SD924 Execution time The month value of the date/time when the...
Latch area The following is the list of special register areas relating to the latch area. Name Data stored Details Set by (setting timing) SD940 Stop direction at file Stop direction at file Specify the operation for changing program files or the global label change on label change on label setting file.
Page 863
Name Data stored Details Set by (setting timing) SD954 Restoration function Restoration target Set the target data to be restored with the CPU module data of the CPU module data setting restoration function. data backup/ 0: All the target data restoration function 1: Device/label data only 2: All the target data except for the device/label data...
Data logging function The following is the list of special register areas relating to the data logging function. Name Data stored Details Set by (setting timing) SD1200 Data logging Data logging • The status of the data logging when the function memory is set S (Status Function memory use Function memory use...
Page 865
Name Data stored Details Set by (setting timing) SD1217 Data logging setting Data logging file An error cause that is detected last in the data logging file transfer S (Error) No.1 transfer error cause function or a transferring of data logging files to the data memory is Data logging file stored.
CPU module data backup/restoration function The following is the list of special register areas relating to the CPU module data backup/restoration function. Name Data stored Details Set by (setting timing) SD1350 Number of Number of This register indicates the number of folders/files where the S (Status uncompleted folders/ uncompleted folders/...
Page 867
Name Data stored Details Set by (setting timing) SD1364 Target setting for iQ Target setting for data Set the target module of the iQ Sensor Solution data backup/ Sensor Solution data backup/restoration restoration. backup/restoration (target module) I/O number. : Module (target module) 3FFH: Built-in Ethernet SD1365...
Page 868
Name Data stored Details Set by (setting timing) SD1376 Module error cause of Module error cause of • This register stores the error cause that is detected in the module S (Status iQ Sensor Solution data backup/ during the iQ Sensor Solution data backup/restoration. When change/Error) data backup/ restoration...
Page 869
Name Data stored Details Set by (setting timing) SD1381 Details on iQ Sensor Information of the • This register stores the information of a device (device 1) where S (Status Solution data backup/ device (device 1) an error of the iQ Sensor Solution data backup/restoration has change/Error) restoration error where an error has...
Interrupt pointer mask pattern The following is the list of special register areas relating to the mask pattern for interrupt pointers. Name Data stored Details Set by (setting timing) SD1400 Interrupt pointer mask Mask pattern The mask pattern for interrupt pointers is stored as shown in the S (at pattern following figure:...
Memory dump function The following is the special register area relating to the memory dump function. Name Data stored Details Set by (setting timing) SD1472 Memory dump error Memory dump error The cause of the error occurred during the memory dump function S (upon error) cause cause...
CPU module database access function The following is the special register area relating to the CPU module database access function. Name Data stored Details Set by (setting timing) SD1498 Start-up status of Start-up status of When the CPU module database access function is enabled with S (Status CPU module CPU module...
Ethernet function The following is the list of special register areas relating to the Ethernet function. Name Data stored Details Set by (setting timing) SD1504 Open completion In this register, open Open statuses of connection No.1 to 16 are stored. (0: Close/Open S (Status signal completion status is...
Page 874
Name Data stored Details Set by (setting timing) SD1520 IP address setting IP Address (lower) • Specify the IP address to be stored into the IP address storage S (Status area (system memory ). Range: 00000001H to DFFFFFFEH change)/U SD1521 IP Address (upper) (0.0.0.1 to 223.255.255.254) •...
CC-Link IE Field Network Basic function The following is the list of special register areas relating to the CC-Link IE Field Network Basic function. Name Data stored Details Set by (setting timing) SD1536 Cyclic transmission Cyclic transmission The cyclic transmission status of each station is stored using the S (Status status of each station status of each station...
Online module change function The following is the list of special register areas relating to the online module change function. Name Data stored Details Set by (setting timing) SD1600 Module selection Base unit No. where The base unit number where the online change target module is S (Status (base unit No.) the online change...
System information (Process CPU) The following is the list of special register areas relating to the system information. Name Data stored Details Set by (setting timing) SD1622 Process CPU Process CPU This register stores the operation mode of the Process CPU S (Initial) operation mode operation mode...
Page 878
Name Data stored Details Set by (setting timing) SD1644 Cause of system Cause number of • If a system switching is failed because a cause of system S (At system switching failure system switching switching failure has occurred, either of the following values is switching) RnPSF failure...
Page 879
Name Data stored Details Set by (setting timing) SD1649 System switching System switching System switching cause is stored. S (At system cause (when the cause (when the • System switching cause is stored in SD1649 of both systems switching) RnPSF systems are systems are when the system is switched.
Page 880
Name Data stored Details Set by (setting timing) SD1673 Tracking transfer Off: Transfer not • This flag is stored a result of the tracking transfer operated in the S (Status completion status completed preceding END processing. change) RnPSF SD1676 On: Transfer •...
Page 881
Name Data stored Details Set by (setting timing) SD1754 Cause of control Cause of start-up as This register stores the cause that one of the redundant system has S (Status system start-up the control system been started up as the control system. change) RnPSF •...
Safety information The following is the list of special register areas relating to the safety information. Name Data stored Details Set by (setting timing) SD1840 Continuous RUN time Continuous RUN time Continuous RUN time in TEST MODE is stored. (This register S (Every END) RnSF in TEST MODE...
Page 883
Name Data stored Details Set by (setting timing) SD1890 Current safety cycle Current safety cycle • The current safety cycle processing time is stored. (The time is S (Status RnPSF processing time processing time (unit: measured in microseconds (s).) change) RnSF SD1890: The ms part is stored.
Appendix 6 List of Safety Special Relay Areas The following table lists items in the list. Item Description Safety special relay number Name Safety special relay name Description Data stored in the safety special relay and its meaning Details Detailed description of the data stored Set by (setting timing) Set side of data (system or user) and timing when data is set by the system <Set by>...
System clock The following is the list of safety special relay areas relating to the system clock. Name Data stored Details Set by (setting timing) SA\SM400 Always on This relay is always on. S (Power-on to RnPSF RUN or STOP RnSF to RUN) SA\SM401...
Page 886
Name Data stored Details Set by (setting timing) SA\SM1064 Safety refresh Off: Normal The safety refresh communication status of the 8th S (Status RnPSF communication On: Communication error CC-Link IE Field Network module (the one whose change) RnSF status of each start I/O number is stored in SD1911) is stored.
Appendix 7 List of Safety Special Register Areas The following table lists items in the list. Item Description Safety special register number Name Safety special register name Description Data stored in the safety special register Details Detailed description of the data stored Set by (setting timing) Set side of data (system or user) and timing when data is set by the system <Set by>...
System information The following is the list of safety special register areas relating to system information. Name Data stored Details Set by (setting timing) SA\SD205 Safety operation Safety operation The safety operation mode is stored. (The applicable bit turns on.) S (Status RnPSF mode...
Page 889
Name Data stored Details Set by (setting timing) SA\SD1040 Safety refresh 0: Safety • The communication status of safety stations connected to the 5th S (Status RnPSF status of each communications CC-Link IE Field Network module (the one whose start I/O number is change) RnSF SA\SD1047...
Page 890
Name Data stored Details Set by (setting timing) SA\SD1104 Safety Safety • The safety communication status of safety connections of the S (Status RnPSF communication communication module stored in SA\SD1089 is stored. change) RnSF SA\SD1223 status of each status of safety •...
Page 891
Name Data stored Details Set by (setting timing) SA\SD1296 Interlock status of 0: Not interlocked After safety communication error is detected and the safety connection S (Status RnPSF each safety 1: Interlocked is interlocked, the bit corresponding to the safety connection turns on. change) RnSF SA\SD1303...
Page 892
Name Data stored Details Set by (setting timing) SA\SD1632 Safety I/O hold 0: Not holding The safety input/output hold status of safety stations connected to the S (Status RnPSF status of each safety input/ 5th CC-Link IE Field Network module (the one whose start I/O number change) SA\SD1639 safety connection...
Appendix 8 Buffer Memory The buffer memory is memory used with the following applications. Module Application CPU module Stores values such as Ethernet function setting values. SIL2 function module and Stores the status of the SIL2 function module and safety function module (such as diagnostics information and system safety function module information).
Page 894
SIL2 function module and safety function module The following table lists buffer memory addresses of the SIL2 function module and safety function module. Address Name Data stored Un\G0 Latest self-diagnostics error code Error codes are stored in a hexadecimal value when the self-diagnostics detects an error. Un\G1 Latest self-diagnostics error time The year value (four digits) for the date/time when Un\G0 data was updated is stored as a...
Page 895
Address Name Data stored Un\G113 to Un\G143 Detailed information 2 • Detailed information 2 corresponding to the error code (Un\G0) is stored. • The stored information contains the following six types. 0: N/A 2: Drive number and file name 3: Annunciator number 4: Parameter information 5: System configuration information 25: Process control instruction processing information...
Details on buffer memory addresses The following table lists items in the list. Item Description Address Buffer memory address of the CPU module Name Buffer memory name of the CPU module Data stored Data stored in the CPU module buffer memory and its meaning Details Detailed description of the data stored Set by (setting timing)
Page 897
CC-Link IE Field Network Basic function The following table lists buffer memory areas of the CPU module relating to the CC-Link IE Field Network Basic function. (Programmable controller CPU only) Address Name Data stored Details Set by (setting timing) Un\G1024 Total number of Total number of The total number of connected stations set in parameter is stored.
Page 898
Address Name Data stored Details Set by (setting timing) Un\G1051 Diagnostic request Diagnostic request Specify a slave station number whose diagnostic information is to be information information displayed. Range: 1 to 64 • For the programmable controller CPU with firmware version earlier than "28", the range is from 1 to 16.
Page 899
Address Name Data stored Details Set by (setting timing) Un\G1053 Diagnostic information 1 Diagnostic information 1 When 1 (valid) is stored in b0 to b7 of Un\G1052, the number of S (Status occupied stations, group number, IP address, the accumulated number change) Un\G1064 of timeouts, and the accumulated number of disconnection detection...
Appendix 9 Processing Time The scan time of the CPU module is the sum of the instruction execution time, the program execution time, and the END processing time. Each of the processing time that constitutes the scan time is as follows. For the availability of functions depending on the CPU module, refer to the description of each function.
Page 901
■Overhead time when executing the interrupt program The overhead time when executing the interrupt program includes the one before executing the interrupt program and the other when the interrupt program finished. • Overhead time before executing the interrupt program Interrupt factor Condition Overhead time Internal timer interrupt (I28 to I31)
Page 902
Overhead time when executing safety cycle processing The safety cycle processing execution time indicates the overhead time when executing safety cycle processing. ■Overhead time before starting safety cycle processing KM1 + Overhead time before starting safety cycle processing [s] = Total standard/safety shared label usage capacity *1 The capacity indicates the total usage capacity for labels defined in the standard/safety shared label setting file.
END processing time The END processing time includes the following: • Common processing time • I/O refresh processing time • Link refresh processing time for the network module • Link refresh processing time for CC-Link IE Field Network Basic • Intelligent function module refresh processing time •...
Page 904
I/O refresh processing time The I/O refresh processing time for module mounted on main base unit and extension base unit can be calculated by the following formula. KM1) + (Number of unit having number of input points I/O refresh processing time [s] = ((Number of input refresh points ...
Page 905
Link refresh processing time for the network module This section describes the link refresh processing time for the network module. ■Link refresh processing time for the CC-Link IE Controller Network module The link refresh processing time between the CC-Link IE Controller Network module and the modules mounted on the main base unit and on the extension base unit can be calculated by the following formula.
Page 906
■Link refresh processing time for the CC-Link IE Field Network module The link refresh processing time between the CC-Link IE Field Network module and the modules mounted on the main base unit and on the extension base unit can be calculated by the following formula. T, R [ms] = KM1 + KM2 ...
Page 907
■Link refresh processing time for the CC-Link module The link refresh processing time between the CC-Link module and the modules mounted on the main base unit and on the extension base unit can be calculated by the following formula. (Remote net Ver.1 mode, Remote net Ver.2 mode) T, R [ms] = KM1 + KM2 ...
Page 908
Link refresh processing time for CC-Link IE Field Network Basic The link refresh processing time for CC-Link IE Field Network Basic (the increase in END processing time for the CPU module) can be calculated by the following formula. T [s] = KM1 + KM2 (((RX + RY) 16) + RWw + RWr) + E E [s] = KM3 + KM4 ...
Page 909
Intelligent function module refresh processing time The following calculation formula shows the refresh processing time for the intelligent function module mounted on the main base unit and the extension base unit. The refresh processing time described in this manual is for the case when the "Target" is set to "Device" in the refresh setting.
Page 910
Multiple CPU refresh processing time This section describes the Multiple CPU refresh processing time. Refresh processing time [s] = Send refresh time + Receive refresh time Send refresh time [s] = KM1 + KM2 Number of points of send word Receive refresh time [s] = KM3 + KM4 ...
Page 911
Prolonged time of END processing when executing each function This section describes the prolonged time of END processing when executing each function. ■Latch processing time If the latch function is used and the range for the latch time setting is effective, the scan time becomes longer. Also when the time setting is configured for the latch time setting, the scan time may be prolonged in the next END processing after the specified time has passed.
Page 912
■Memory dump function The execution of the memory dump function results in an increase in the scan time. The increase in scan time can be calculated by the following formula. Increase in scan time [s] = (KM1 Number of points ) + KM2 Constant Setting of the internal buffer capacity...
Page 913
■Sequence scan synchronization sampling function When the sequence scan synchronization sampling function is executed, the scan time becomes longer. The increase in scan time can be calculated by the following formula. Increase in scan time [s] = (KM1 Number of processing times ) + (KM2 ...
Page 914
Device/label access service processing time This section describes the device/label access service processing time when "Processing time = One time" in the device/label access service processing setting. Condition Device/label access service processing time Connected via USB Ladder block change during 100 steps are inserted into the head of program of 40K 1.0ms maximum RUN (online program change)
Data logging function processing time This section describes the processing time taken to store the data when executing the data logging function. (The values shown in the tables below are the minimum time values that allow the CPU module to collect data without missing any data while the continuous logging is executed.) When the file format is Unicode text file ■When a global device or global label is specified...
Page 916
Number of points File transfer Collection interval at which data can be collected When the When the SD memory card is used function NZ1MEM-2GBSD NZ1MEM-4/8/16GBSD memory is Programmable Process CPU, Programmable Process CPU, used controller CPU Safety CPU controller CPU Safety CPU (128 points ...
Page 917
■When a local device or local label is specified The following table lists the collection intervals at which data can be collected under the following conditions. • Scan time = 1.5ms (up to 5ms) • Internal buffer capacity setting = 128K bytes per setting (default setting) •...
Page 918
Number of points File transfer Collection interval at which data can be collected When the When the SD memory card is used function NZ1MEM-2GBSD NZ1MEM-4/8/16GBSD memory is used (128 points 10 1280 Not performed 25.0ms 30.0ms points setting) ...
Page 919
When the file format is binary file ■When a global device or global label is specified The following table lists the collection intervals at which data can be collected under the following conditions. • Scan time = 1.5ms (up to 3ms) •...
Page 920
Number of points File transfer Collection interval at which data can be collected When the When the SD memory card is used function NZ1MEM-2GBSD NZ1MEM-4/8/16GBSD memory is Programmable Process CPU, Programmable Process CPU, used controller CPU Safety CPU controller CPU Safety CPU (128 points ...
Page 921
■When a local device or local label is specified The following table lists the collection intervals at which data can be collected under the following conditions. • Scan time = 1.5ms (up to 5ms) • Internal buffer capacity setting = 128K bytes per setting (default setting) •...
Page 922
Number of points File transfer Collection interval at which data can be collected When the When the SD memory card is used function NZ1MEM-2GBSD NZ1MEM-4/8/16GBSD memory is used (128 points 1280 Not performed 25.0ms 30.0ms points 10 setting) ...
Memory dump function processing time This section describes the time (unit: seconds) taken to save all of the data when the memory dump function is in execution. The following table shows the time taken for data save under the following conditions: •...
Database function processing time Database operation by database access instruction The table below lists the processing time under the following conditions: Condition 1 Condition 2 • Number of records: 10000 • Number of records: 10000 • Number of fields: 16 •...
Processing time of the CPU module database access (from external device) function The table below lists the processing time under the following conditions: Condition 1 Condition 2 • Number of records: 10000 • Number of records: 10000 • Number of fields: 16 •...
SFC program processing time This section describes the time required for SFC program processing. For details on the SFC program, refer to the following. MELSEC iQ-R Programming Manual (Program Design) SFC program processing performance The SFC program execution time can be calculated with the following formula. •...
SFC program switching This section describes the processing time required to switch the SFC program from the standby status to the scan execution type. • Switching time [s] = (Number of blocks created Km) + (Number of steps created Kn) + (SFC program capacity Kp) + Constant Constant value R00CPU, R01CPU, R02CPU...
Redundant function processing time This section describes the redundant function processing time in the Process CPU (redundant mode) or SIL2 Process CPU. Increase in the scan time due to tracking transfer The following describes the increase in the scan time of the CPU module due to tracking transfer. The increase in the scan time determined by the following calculation formula is a rough standard for a system start-up.
Page 929
■Waiting time for completion of the previous tracking data reflection The following describes the waiting time (Twr) for completion of the previous tracking data reflection in the CPU module of the control system. Twr = 1 + Tdrm - Toth [ms] •...
Page 930
D2 is determined as follows. Item Size Global device (other than the refresh data Follows the tracking transfer settings. ( Page 460 Tracking transfer setting) register (RD)) Total size of local devices of the device/label memory area detailed setting the number of programs on the Local device program setting Global label...
Page 931
■Waiting time for completion of tracking data reception The following describes the waiting time for completion of tracking data reception (Tca) in the CPU module of the control system. Tca = 2[ms] ■Other extended times The following describes other delay time () in the CPU module of the control system. ...
Page 932
■Tracking data reflection time The following describes the tracking data reflection time (Trc) in the CPU module of the standby system. The calculation method differs depending on whether an extended SRAM cassette is inserted or not. CPU module Extended SRAM Tracking data reflection time cassette inserting status...
Page 933
Time required for system switching The following describes the time required for the CPU module in the new control system to start operating as the new control system after the detection of a system switching cause in the control system. The time required for system switching determined by the following calculation formula is a rough standard for a system start- up.
Page 934
*1 The standby system scan time is the total of "Execution time of the standby system program after a system switching cause is received + Tracking data reflection time". *2 When the CC-Link IE Field Network module has not been mounted, the systems may not be switched depending on the state of the power supply module failure.
Page 935
■Safety control Item Calculation formula Tso = (Msw or Lsw) + Tsc + 1.5 TM + 4.5 RM + Tsio[ms] Normal value Tso = (Msw or Lsw) + Tsc + 2 TM + 9 RM + Tsio[ms] Maximum value •...
Appendix 10 Parameter List This section lists parameters. System parameters The following is the list of system parameters. Item Parameter No. I/O Assignment Base/Power/Extension Cable Setting Slot 0201H Base, Power Supply Module, Extension Cable 0203H I/O Assignment Setting Points, Start XY, Module Status Setting 0200H Control PLC Settings 0202H...
CPU Parameters The following is the list of CPU parameters. Item Parameter No. Name Setting Title Setting 3100H Comment Setting 3101H Operation Related Setting Timer Limit Setting 3200H RUN-PAUSE Contact Setting 3201H Remote Reset Setting 3202H Output Mode Setting of STOP to RUN 3203H Module Synchronous Setting 3207H...
Appendix 11 Target List and Operation Details of the Device/Label Access Service Processing Setting Target list This section describes the targets of the device/label access service processing setting. Applicable function Description Functions to perform read/write to files accessed by programs When read/write is performed to the relevant files during execution of a program, file inconsistency may occur.
Communication function using an engineering tool Of the communication functions using an engineering tool, the functions targeted for the setting of the Device/Label access service processing are indicated. Function Writing data to the programmable controller File register file Device data (Local device also included) Global label and local label data Reading data from the programmable controller File register file...
Page 941
(1) Synchronization with program is unnecessary. (2) Multiple requests are processed until the specified device/label access service processing ratio (10%) is exceeded. When the specified device/label access service processing ratio is exceeded, the remaining requests are processed in the END processing of the next scan. Also, for scan which has the device/ label access service processing time shorter than 0.1ms, it is assumed as "The device/label access service processing time per scan = 0.1ms".
Page 942
Set Processing Counts This setting is useful to stably execute the device/label access service processing in a system where requests come from multiple peripherals. It provides stable communication in a system where multiple peripherals exist because the CPU module can execute the device/label access service processing based on the number of request sources. When "Processing counts = 2"...
Page 943
Execute END Processing between Programs This setting is useful to give priority to the device/label access service processing in a system with a large number of programs. Because operations such as access to devices are performed between program executions and during the END processing, requests as many as the number of programs can be processed during a single scan.
Appendix 12 Program Restoration Information Write Selection RnPCPU RnPCPU RnPSFCPU RnPSFCPU RnSFCPU RnSFCPU RnCPU RnENCPU (Process) (Redundant) (Standard) (Safety) (Standard) (Safety) • If using the setting for the programmable controller CPU (except for the R00CPU, R01CPU, or R02CPU), Process CPU, or Safety CPU, check the versions of the CPU module and engineering tool.
Page 945
FUNCTION LED The FUNCTION LED indication follows the priority order shown below. Priority Description Remarks High When program restoration information is not written, when the external input/output forced Same priority on/off function is executed (in registration), when the device tests with execution conditions are registered Page 131 LED display setting Functions set in "Function to use FUNCTION LED"...
■Procedures for returning the FUNCTION LED to the flashing state The following describes the procedures for returning the FUNCTION LED to the flashing state when program restoration information is not written. Check that SM386 (Program restoration information write status LED control setting mode) is turned on (without LED flashing).
Appendix 13 How to Use CPU Module Logging Configuration Tool This section describes the system configuration and specifications, and operation/configuration procedures with CPU Module Logging Configuration Tool when using the data logging function. System configuration This section describes the system configuration when using the data logging function. Overall system configuration CPU module Personal computer...
Page 948
■Display language change CPU Module Logging Configuration Tool supports multiple languages, and can be used by changing the display language for menus and other items on the same personal computer. *1 CPU Module Logging Configuration Tool with version "1.46Y" or later supports this function. Operating procedure [View] ...
Page 949
■Connection through an Ethernet port • Connection via a hub Connect the CPU module via a hub to a personal computer on the same local network. Note that IP address of the CPU module must be specified. Also the personal computer should have the same network address as the CPU module. *1 If the CPU module is RnENCPU, use the RnENCPU (CPU part) Ethernet port to connect.
Specifications This section describes the specifications of the data logging function. Functional specifications The following table lists functional specifications. Item Specifications Number of data logging settings Data storage location • SD memory card • Data memory • CPU built-in memory (function memory) Logging type •...
Page 951
Item Specifications Operation settings when entering into RUN mode This function sets data logging operations when entering into RUN mode after the data logging setting is registered. Data logging file transfer function This function automatically transfers data logging files to the FTP server. SD memory card replacement SD memory cards can be replaced using the SD memory card forced disable function even when the data logging is in progress.
Page 952
Data output type This section describes each of file output types. ■Unicode text file output type This section describes the format specifications of the Unicode text file output type and output content of each data. • Format specifications Item Description Delimiter Return code CRLF (0x0D, 0x0A)
Page 953
• Output content for each data <File information row> File-related information is displayed. Item Description Size File type [LOGGING] is output. 14 bytes Model information_file version When the version of CPU Module Logging Configuration Tool is "1.82L" or later and local 12 bytes devices or labels are specified, "RCPU_2"...
Page 954
<Data type information row> The data type for each column is displayed. This information is output in the following format: (Data type)[(Additional information)]. Item "Data type" output content Size "Additional information" output Size content Date column DATETIME 16 bytes Format is output. 6 to 68 bytes [YYYY/MM/DD hh:mm:ss.sss] Data collection interval column...
Page 955
<Program name row> The program name row for each column is displayed. (This row appears when the version of CPU Module Logging Configuration Tool is "1.82L" or later and local devices or labels are specified. If the version is "1.76E" or earlier, or the version is "1.82L"...
Page 956
<Data row> The collected data value is displayed. All the data items collected during a single collection is displayed in a single row. Item Description Size Date column Information is output according to the data row output character string specified in the 2 to 64 bytes format.
Page 957
■Binary file output format The following figure shows the configuration of the binary format and details of each data. • Configuration figure of binary format (when the version of CPU Module Logging Configuration Tool is "1.82L" or later and local devices or labels are specified) (9) Data information size: 2 bytes (1) Identification code: Fixed to 4 bytes (fixed to "MRDB")
Page 958
• Configuration figure of binary format (when the version of CPU Module Logging Configuration Tool is "1.76E" or earlier, or the version is "1.82L" or later and only global devices are specified) (9) Data information size: 2 bytes (1) Identification code: Fixed to 4 bytes (fixed to "MRCB") (10) Data type: 2 bytes (11) Output type: 2 bytes...
Page 959
• Details of each data Item Description Size (byte) Identification code When the version of CPU Module Logging Configuration Tool is "1.82L" or later and local devices or labels are specified, "MRDB" is always output to identify the file. When the version of CPU Module Logging Configuration Tool is "1.76E" or earlier, or the version is "1.82L"...
Page 960
Item Description Size (byte) (16) Device comment The length of the device comment name specified in the setting is output. name length (17) Device comment The device comment name specified in the setting is output in Unicode. 0 to 2048 name When "Output each program device comment"...
Page 961
Numerical value range for each output type This section describes the numerical value ranges that can be output for each output type. ■Integer type The following table lists the numerical value ranges that can be expressed for each integer type. Output format Lower limit Upper limit...
Data logging procedure This section describes the data logging procedure. Install CPU Module Logging Configuration Tool. ( CPU Module Logging Configuration Tool/GX LogViewer Installation Instructions (BCN-P5999-0506)) Launch CPU Module Logging Configuration Tool. ( Page 960 Launching CPU Module Logging Configuration Tool) When specifying a label as the target data, import the project of the engineering tool to CPU Module Logging Configuration Tool.
Launch GX LogViewer. Help Open Manual e-Manual Viewer opens and its manual is displayed. Connection to MITSUBISHI ELECTRIC FA Global The Mitsubishi Electric Corporation FA website is displayed. Website About Configuration tool The product information is displayed. APPX Appendix 13 How to Use CPU Module Logging Configuration Tool...
Page 964
Project management This function creates and saves the project, and reads/writes it from/to an SD memory card. ■Creating new project Create a new project. [Project] [New] Window Displayed items Item Description PLC series Select "RCPU". ■Opening project Open a stored project file. [Project] ...
Page 965
■Reading the logging setting from SD memory card The following procedure is to read the data logging setting written in an SD memory card attached to the personal computer. Operating procedure Attach an SD memory card to the personal computer. Open the following window.
Page 966
■Writing the logging setting to SD memory card The following procedure is to write the settings being edited in a format with which the CPU module can operate. Once writing the settings directly into an SD memory card attached to the personal computer and attaching the card to the CPU module, the data logging starts.
Page 967
■Reading a GX Works3 project The following window is used to import a project of the engineering tool which is the read source for the label. Window Displayed items Item Description Read Source Project Path The full path of the read source project is displayed. When no project is read, this field is blank. [Edit] button Clicking this button displays the "Open"...
Page 968
Setting data logging This menu item launches a wizard that helps users to configure the required settings for using the data logging function. Edit item tree [RCPU] [Data Logging Setting] [Edit] button ■Logging type The following window is used to set the data logging type, file format, storage destination of the data logging file, and target data (device or label) of data logging.
Page 969
■Sampling The following window configures the collection interval and/or collection start conditions ( Page 173 Data Collection Conditions) Window Displayed items Item Description Setting range Default Each scanning cycle Select this item to collect data on every scan. Time Collection time value Specify the collection interval value.
Page 970
Item Description Setting range Default Page 175 Device/label Condition Device specification Specify this item for collecting data at the END Checked specification processing where the specified device condition specification has been satisfied. If both the step No. and device are specified as conditions, the data is collected when the both conditions are satisfied.
Page 971
■Data The following window is used to set the target data to be collected. • To paste a device/label which is copied in another application (such as Watch window of GX Works3 or GX Works2, a spreadsheet, or a text editor), use "Paste device/label copied in other application software" or "Insert device/label copied in other application software".
Page 972
Displayed items Item Description Setting range Default In this column, the data setting numbers from 001 to 128 are displayed. Device Head Specify the start device number. Page 171 Data to be To specify a local device, use "Program name/#Device name". (Example: collected "MAIN/#M1") Last...
Page 973
■Pasting/Inserting a device or label copied in another application A device/label which is copied in another application (such as Watch window of GX Works3 or GX Works2, a spreadsheet, or a text editor) can be pasted to any line in the setting window of "Data". *1 CPU Module Logging Configuration Tool with version "1.70Y"...
Page 974
■Batch insertion of data The following window is to insert data items into the data list at once. Data is inserted into blank rows in the list of the "Data" setting window in order from the top (when a setting already exists in the target insertion row, the row is skipped without overwriting it).
Page 975
■Trigger The following window specifies the trigger condition when the trigger logging is selected ( Page 179 Trigger Condition) Window Displayed items Item Description Setting range Default Page 179 Device/label change Condition Device change Configure the trigger condition based on the device data Checked specification specification...
Page 976
■Number of logging lines The following window specifies the number of records to be output before and after trigger occurrences when the trigger logging is selected ( Page 182 Number of records) Window Displayed items Item Description Setting range Default No.
Page 977
■Output The following window specifies the items to be output into the file. ( Page 950 Data output type) Window APPX Appendix 13 How to Use CPU Module Logging Configuration Tool...
Page 978
Displayed items Item Description Setting range Default *1*2 Date Output date Add a time stamp to data for the data logging. Checked The date/time format to be output can be specified by clicking the [Set Date Line Format] button. Trigger information Output trigger information Add a mark to data items that are associated 256 characters or less...
Page 979
■Save The following window configures the storage destination of data logging files and the switching timing of storage files. ( Page 190 Switching to a storage file) Window APPX Appendix 13 How to Use CPU Module Logging Configuration Tool...
Page 980
Displayed items Item Description Setting range Default Logging File save destination Specify the storage folder for the data logging file. 60 characters or less LOG (setting file save (double-byte character not No.) setting allowed) Folder to store file to be saved Select information to be added to the name of the folder Not checked which stores the storage file.
Page 981
■File transfer The following window specifies the destination when data logging files are sent to the FTP server. ( Page 194 Data Logging File Transfer (Auto Transfer to FTP Server)) Window APPX Appendix 13 How to Use CPU Module Logging Configuration Tool...
Page 982
Displayed items Item Description Setting range Default Transferring files to the FTP server Select this item to transfer files to the FTP server. Checked/Not Not checked checked [Server Setting] FTP Server Name Specify the FTP server with an IP address or server name. •...
Page 983
■Movement The following window specifies the data logging operation when the operating status of the CPU module is switched to RUN state. ( Page 205 Behavior of auto logging at the time of a transition to RUN) Window Displayed items Item Description Setting range...
Page 984
■Finish The following window is to give the data logging setting a name. Window Displayed items Item Description Setting range Default Data logging name Give the data logging setting being configured a name. 32 characters or less LOG (setting No.) ...
Page 985
Common setting The common settings include the auto logging common setting. ■Auto logging common setting The following window configures the required settings for using the auto logging function. ( Page 204 Auto Logging) Window Displayed items Item Description Setting range Default Enable the auto logging function Select this item to use auto logging.
Page 986
Online operation The online operation enables users to read/write/delete the data logging settings, view the data logging status, and operate the data logging file. ■Transfer setup The following window specifies the communication route between the CPU module and a personal computer. [Online] ...
Page 987
■Reading the logging setting The following procedure reads the data logging setting from the target memory. Operating procedure Open the "Read Logging Setting" window. [Online] [Read Logging Setting] Select the memory where the data to be read is stored from the "Target Memory" list. Select the checkbox corresponding to the data item to be read in the "Target logging setting data"...
Page 988
■Writing the logging setting The following procedure is to write the data logging setting to the target memory. Operating procedure Open the "Write Logging Setting" window. [Online] [Write Logging Setting] Select the memory where the data to be written is stored from "Target Memory" list. Select the checkbox corresponding to the data item to be written in the "Target logging setting data"...
Page 989
■Deleting the logging setting The following procedure deletes the data logging setting on the target memory. Operating procedure Open the "Delete Logging Setting" window. [Online] [Delete Logging Setting] Select the memory where the data to be deleted is stored from the "Target Memory" list. Select the checkbox corresponding to the data item to be deleted in the "Target logging setting data"...
Page 990
■Logging status and operation The following procedure is to execute or stop the data logging. Also the data logging status can be checked through this procedure. Operating procedure Open the "Logging Status and Operation" window. [Online] [Logging Status and Operation] Specify the target memory (either data memory or SD memory card) where the effective setting data is stored.
Page 991
Window Displayed items Item Description Monitor Status [Start (Stop)] button Start or stop monitoring. SD memory card data Free space View the amount of free space of the SD memory card. Logging status Target Memory Select the memory used for this operation. [Select All] button Select all the checkboxes in the setting data list.
Page 992
■Logging file operation The following procedure is to save or delete data logging files in an SD memory card or the data memory from/to the personal computer. Operating procedure Open the "Logging File Operation" window. [Online] [Logging File Operation] Select the memory where the data to be operated is stored from "Target Memory".
Page 993
■Data Logging File Transfer Status The following window is used to check the file transfer status of data logging files. Operating procedure The file transfer status can be checked on the "Data Logging File Transfer Status" window. [Online] [Data Logging File Transfer Status] Window Displayed items Item...
Page 994
■File Transfer Error Log The following window displays the error history of the data logging file transfer function. Up to 20 errors are displayed. When the number of errors exceeds 20, records are deleted in order from the oldest one. The error history is retained after the power is off and on or the reset operation is performed.
Page 995
■Connection to MITSUBISHI ELECTRIC FA Global Website Access Mitsubishi Electric Corporation FA site home page. Operating procedure [Help] [Connection to MITSUBISHI ELECTRIC FA Global Website] ■Checking version information Check the version of CPU Module Logging Configuration Tool. Operating procedure [Help] ...
Page 996
Supported characters This section describes the supported characters. ■Supported characters for CPU Module Logging Configuration Tool Any characters that can be expressed by Unicode are supported. However, the supported characters vary for each position as shown in the following table. Note that if attempting to input an unsupported character, the entry is rejected or a message window appears in response to the improper entry.
Page 997
Installing a USB driver To communicate with the CPU module via USB, a USB driver needs to be installed. This section describes the installation procedure of a USB driver. If multiple MELSOFT products are installed, refer to their installed location. ...
Appendix 14 List of Available SQL Commands for CPU Module Database Access Function This section describes the available SQL commands for the CPU module database access function. Data Definition CREATE TABLE This command creates a table in the database. Syntax CREATE TABLE [table name] ([field name] [data type] [option], [field name] [data type] [option], , [field name] [data type] [option]);...
Page 999
CREATE INDEX This command creates an index in the specified field of the specified table in the database. Index names must be up to 16 single-byte alphabetical characters and are case sensitive. Syntax CREATE INDEX [index name] ON [table name] (field name); ■Application example •...
Data Operation INSERT This command adds a record to the specified table in the database. *1*2 Syntax • To add records to all fields INSERT INTO [table name] VALUES (field 1 value, field 2 value, , field X value); • To add records to the specified fields INSERT INTO [table name] (field specification 1, field specification 2, , field specification X) VALUES (field 1 value, field 2 value, , field X value);...
Page 1001
UPDATE This command updates the value of the specified record of the specified table in the database. Syntax UPDATE [table name] SET [field name = assigned value], [field name = assigned value], , [field name = assigned value] [option]; *1 When the field value is a character string, enclose it in single quotation marks ('). ■Option Item Description...