The text of a manual · part 6 of 44
Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual: 3. Initial Setting, pages 34 to 42
Pages 34 to 42 of 387, from Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual
The original document is the PDF (16 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Toyopuc OUT-15 and Toyopuc OUT-18
Page 34
3. Initial Setting 3.1. CPU setting before shipping 3.1.1. Program and parameters The CPU is set as follows before shipping. Program Before shipping, the CPU operation mode is initially set to " PC3J Separate mode 1". Further, the circuit as illustrated below is written in the sequence program before shipping.
3
Parameters The written parameters are set up per the table below. Items
Setup values
CPU operation mode
PC3J Separate mode 1 Initial program 10 ms Scan time value on timer Overall 100 ms I/O table reference error Stop Run status against error Scan time over Stop Applied command error continue External mask All points mask *1 Interrupt Interrupt at periodic cycle All points 0 (no interrupt) *1 Rack No.0,Slot No.0 : 3F I/O module identification Other slots: 7F (no module) Allocation of I/O Module (0 to E racks, 0 to 7 slots ) Rack No.0,Slot No.0 : 64 points I/O points allocation Other slots : 0 points (no allocation) Rack No.0,Slot No.0 : DLNK-M2 Other slots : Clear (no module )
Link parameters
*1 No INTERRUPT function available. Hence, these parameter values are all ineffective.
3-1
Page 35
3.1.2. Battery The PCJ3 is provided with a battery to back up data memory (data area for keep-relay, data register, etc.) against power interruption and to back up the built-in clock. The battery connector is removed before CPU is shipped. Hence, the data memory and built-in clock are both not backed up. Before using the clock, preset it properly according to peripheral equipment ( PCwin, etc.) . User programs (sequence program and parameters) and equipment information memory data (comments, etc.) are never cancelled even after removal of the battery, because they are stored in a flash memory wherein memory data are all held. (1) Mounting procedure of battery connector 4) Lithium rechargeable battery (TIP-5426)
5) Battery replaced seal
1) Set screw
2) Battery fixing plate
3) Battery connector
87654321 x1 x10
Mounting procedure of battery connector 1) Mount battery side connector on main unit side connector. Connector shall be mounted keeping front side of connector kept blank as shown figure below. Be sure to pay attention not connector forcing in or pulling lead wire of battery strongly. Otherwise failure should occur. Black Red
Blank
Front side
2) Enter date in battery replaced seal. Although standard service life of battery is five years but actual service life will vary depending on actual service condition. Be sure to replace with dedicated battery (Chargeable dry cell for PC3J-CPU: TIP-5426). Replacing procedure is referred to paragraph “6-1 Battery replacing”.
3-2
Page 36
(2) Lithium rechargeable battery (TIP-5426) The PC3J CPU uses an exclusive lithium battery(*1). This battery is always kept full charged by about 4 hours' current feed per day. If kept full charged, this battery can back up (*2) for one year or more under normal temperature (25°C). If "Battery voltage low" is detected, BATTERY ALARM ( error code 0022) is output. (special relays V03 and VF0 turn ON) If BATTERY ALARM fails to turn OFF even after charged 8 hours or more or if it turns ON immediately after charged, the possible cause is expiry of the battery life. In such a case, replace with new battery. The battery replacement cycle is 5 years though depending on the actual operating conditions. In replacing, use the specific battery (Charge type battery for PC3J-CPU: TIP-5426) without fail. For the replacing sequence, see "6-1 Battery Replacement".
*1 Appearance of lithium rechargeable battery (TIP-5426)
Lead wire, black (-) (Front side: vacant)
Lead wire, red (+) Connector (CPU side)
*2
3-pin connector
This lithium charge battery backs up the data memory (data area for keep relay, data register, etc.) and the built-in clock. The guaranteed back-up period subject to full charge is 6 months (environmental temperature: 25°C). User programs (sequence program and parameters) and equipment information memory data (comments, etc.) are never cancelled even after removal of the battery, because they are stored in a flash memory wherein memory data are all held.
3-3
Page 37
(3) Data memory back-up A lithium battery is provided to back up the data memory (data areas such as keep relay, data register, etc.) against power failure and to drive the built-in clock. Should the PC is left with no current across it throughout more than 6 months, the battery life expires with consumption, which may disable to retain the data in the data memory. In this case, this PC system incorporates the function to restore the content of the data memory, but the function is unable to restore 100% of the memory content. On the other hand, The contents (sequence program and parameters) of user program and equipment information memory (comments, etc.) are never cancelled even against power failure, because they are stored in "flash memory" which can retain the stored data unchanged even in the case of power failure. Two different data back-up functions are provided to restore the contents of the data memory. Automatic Back-up :
The function to automatically back up after power throw-in, requiring no further special operation.
User Command Back-up :
The function to back up the memory data in "ON->OFF" timing of special relay [V5F] for Program 1. This function can back up in any optional timing in accordance with sequence program or peripheral equipment, etc.
3-4
Page 38
(3-1) Automatic Back-up This is an automatic back-up function which starts simultaneously with power throw-in, requiring no further special operation. Back-up timing : Content of processing :
Simultaneously with power throw-in Data is stored in the flash memory, provided that the content thereof is backed up correctly. The data at the time of previous power break is backed up. Long term
Power ON OFF
Data memory
In varying
Battery back-up In varying abcdef fghijk
Back up Flash memory a
Battery back-up
Data cancel In varying ??????fghIjk
Back up
Restore f f
Data at time of previous power break is backed up.
Data before twice breaks is restored.
power
In the case of this function, data restored after once cleared (where cleared) is the data before twice power breaks. All-time varying data, ex. present values on keep relay and counter which show equipment status can not be restored into the status immediate before data cancellation. Hence, this function is effective to back up the data of constants (ex. non-variable data) which are stored in data register, etc. Should the power be switched OFF during data back-up run, the back-up data in the flash memory become ineffective, existing no longer therein. Note)
This function is out of application to the buffer register area (EB register) and, therefore, It does not act for back-up to the flash memory. Other areas are backed up. Where the power is broken on midway of writing in the flash memory after sequence program and equipment and, thereafter, writing in the flash memory is further continued after power throw-in, those data are not backed up automatically. Writing sequence program and equipment information is unavailable while back-up data is being written in the flash memory.
3-5
Page 39
(3-2) User Command Back-up This function backs up data in "ON ->OFF" timing of special relay [V5F] for Program 1. This function can back up in any optional timing in accordance with sequence program or peripheral equipment, etc. Back-up timing:
This function starts backing-up, irrespective of CPU operation mode, whenever "ON->OFF" (fall differentiation) of special relay [V5F] for Program 1 is detected. [V5F] keeps OFF when the power is switched ON.
Content of processing:
Data is stored in the flash memory upon detection of "ON->OFF" (fall differentiation) of special relay [V5F] for Program 1. Special relay [V3A] for Program 1 keeps "ON" while writing in the flash memory.
Long term Power ON OFF V5F
ON OFF
In varying Data memory a b c d e f
In varying
Battery back-up fghIjk a
Data cancel
In varying ??????klmnop
User Command Back up
Automatic back up Flash memory
Battery back-up f k
Restore k
Data as of detection of [V5F] "ON->OFF" is restored.
Data are backed up in the order of extended register, data memory in each program, and extended bit area. About 5 to 10 seconds is needed for writing in the flash memory.
! Attention: The scan time extends several 10 ms while back-up data is being written in the flash memory. When using the User Command Back-up function, consider inverse affect on the scan time in advance. Should the power be switched OFF during data back-up, back-up data in the flash memory are invalidated, hence no back-up data exists no longer therein.
Therefore, never switch
OFF the power (for about 5 to 10 seconds) until completion of the back-up processing. Special relay [V3A] for Program 1 keeps "ON" during data back-up processing. or not of the back-up processing can be checked by this [V3A] relay.
3-6
Completion
Page 40
When designating the back-up timing in accordance with sequence program, execute backing up in such timing that the data vary no longer with shutdown of the equipment. Sequence program (EX.) detection of "ON->OFF" (fall differentiation) of special relay [V5F] for
Equipment shuts down and data vary no longer, when this relay turns OFF.
On
Program 1, data is stored in the flash memory.
Pre-operation Data back-up
When designating the timing in accordance with peripheral equipment, turn OFF special relay [V5F] for Program 1 after once turned ON, by the force ON/OFF function.
Note) Where edit and write of sequence program and equipment information write are executed when user command (ON->OFF of V5F ) was executed, data back-up is in queue until complete write of sequence program and equipment information in the flash memory. Writing sequence program and equipment information is unavailable while back-up data is being written in the flash memory. This function is out of application to the buffer register area (EB register) and, therefore, It does not act for back-up to the flash memory. Other areas are backed up.
3-7
Page 41
(3-3) Back-up data restoring Where data memory ( data areas such as keep relay, data register, etc.) is deemed as cleared upon initial check, the data memory is restored by the flash memory. In this case, the back-up data must exist in the flash memory. In such a case that the power is switched OFF during data back-up processing, back-up data in the flash memory is in effectuated and, hence, the data exists therein no longer. Thus, when no back-up data exists in the flash memory, the data memory is cleared to 0. If restoration of sequence program and data memory is executed, error code "AD Data Error" is alarmed. RUN against data error can be set up, e.g. RUN stop and RUN can be set up. ( Under PC2 Compatible Mode, setup RUN STOP is fixed.) When data error "Error code AD" is alarmed, don't operate the equipment until right restoration of sequence program and data is confirmed. After error occurrence, "Error code AD Data Error" is cleared by power re-throw in or RESET operation. And "Error code AE Data Error Non-check" is alarmed. Furthermore, conduct time check on the built-in clock, too, and reset the time from peripheral equipment when deemed as necessary.
3-8
Page 42
3.2 CPU Setting Procedure 3.2.1 CPU operation mode setting Initially set CPU mode by peripheral equipment *1. " Data area separate mode", " Data area single mode", and "PC2 compatible mode" are available as CPU operation mode. And program capacity and data capacity can be selected as necessary. Data area separate mode : has independent data area every each program. Data area single mode : data area in each program is common to other programs. PC2 compatible mode : Use of PC2 Series peripheral devices is allowed. However, the number of available programs is limited to one 32K words program (Program-1). Any function extended in PC3J is unable to be used under this mode. *1The PC2 Series peripheral equipment (GL1,etc.) are available for use only when CPU operation mode is in PC2 compatible mode. Under PC3 mode the PC2 series peripheral equipment can write sequence program (program + parameters). After written by PC2 series peripheral equipment, PC2 compatible mode is automatically selected as CPU operation mode. The PC3 Series peripheral equipment (Hellowin) is available for CPU operation modes except PC3JG mode. The PC3 Series peripheral equipment (PCwin before Ver4.* ) is available for CPU operation modes except PC3JG mode. The PC3 Series peripheral equipment (PCwin Ver5.* or later) are available for all modes. Relationship of CPU operation mode to program capacity and data capacity : Program capacity KW Basic area data capacity KW Extended area data capacity KW Mode relay PRG.1 PRG.2 PRG.3 PRG.1 PRG.2 PRG.3 data buffer register Separate mode 1 Separate mode 2 Separate mode 3 Separate mode 4 Separate mode 5 PC3JG PC3 Single mode 1 Single mode 2 Single mode 3 Single mode 4 Single mode 5 Single mode 6 PC2 compatible
16
16
16
8
8
8
8
-
-
32
-
16
16
-
8
8
-
-
16
32
-
8
16
-
8
-
-
16
16
-
8
16
-
8
16
-
16
-
16
16
-
8
8
16
-
60
60*3
60*3
8
8
8
16
32
128
2
8
-
-
16
16
16
24*
32
-
16
24*2
8
-
-
16
32
-
24*2
8
-
-
-
24*
2
8
16
-
2
8
32
-
8
16
-
-
-
-
32
-
16
-
-
24*
16
16
-
24*2
32
-
-
24
-
-
*2 The basic area data in single mode is common to each program. *3 It is possible to use the standard library and the user library that exists in PC3JL by a combination with FB Library since ver.2.00 However, there are capacity limits in program 2 and program 3 when the standard library and user library are used by PC3JG mode. The user library can mount if the program capacity in P2 is 32KW or less. The standard library can mount if the program capacity in P3 is 32KW or less. It is possible to use 60Kw as usual if you don’t use the standard library or the user library. (Please refer to “10.5 library information” for details.) Please refer to the library manual (T-315) about the standard library and the user library. Note: Change of operation mode would cause sequence programs and data hitherto to be canceled. Caution it ! 3-9