The text of a manual · part 26 of 29
AnS(H) CPU User's Manual: APPENDICES, pages 207 to 216
Pages 207 to 216 of 242, from AnS(H) CPU User's Manual
The original document is the PDF (3.1 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 Mitsubishi A1S38
Page 207
APPENDICES
MELSEC-A
Appendix 2 Special Relay, Special Register List Appendix 2.1 Special Relay List (1)
Special relay list Special relays are internal relays whose uses are determined inside the PC. Therefore, they cannot be turned ON/OFF as coils is a program. (Except for *1 and *2 in the table) Table 2.1
Number
Name
Special relay list
Description
Details
*1 M9000
Fuse blown
OFF : Normal ON : Presence of fuse blow module
• Turned on when there is one or more output modules whose fuse has blown. Remains on if normal status is restored.
*1 M9002
I/O module verify error
OFF : Normal ON : Error
• Turned on if the status of I/O module is different from entered status when power is turned on. Remains on if normal status is restored.
*1 M9005
AC DOWN detection
OFF : AC is good ON : AC is down
• Turned on if power interruption no longer than 20msec occurs. Reset when POWER switch is moved from OFF to ON position.
M9006
Battery low
OFF : Normal ON : Battery low
• Turned on when battery voltage falls to less than specified voltage. Turned off when battery voltage becomes normal.
*1 M9007
Battery low latch
OFF : Normal ON : Battery low
• Turned on when battery voltage falls to less than specified voltage. Remains on if battery voltage becomes normal.
*1 M9008
Self-diagnostic error
OFF : Normal ON : Error
• Turned on when error is found as a result of self-diagnosis.
M9009
Annunciator detection
OFF : Normal ON : Error
• Turned on when OUT F or SET F instruction is executed. Switched off when D9124 value is set to 0.
M9010
Operation error flag
OFF : Normal ON : Error
• Turned on when an operation error occurs during execution of an application instruction. Turned off when the error is eliminated.
*1 M9011
Operation error flag
OFF : Normal ON : Error
• Turned on when an operation error occurs during execution of an application instruction. Remains on when normal status is restored.
M9012
Carry flag
OFF : Carry off ON : Carry on
• Carry flag used in application instruction.
M9016
Data memory clear flag
OFF : No processing ON : Output clear
• Clears all data memory (except special relays and special registers) in remote run mode from a computer, for example, when M9016 is 1.
M9017
Data memory clear flag
OFF : No processing ON : Output clear
• Clears all unlatched data memory (except special relays and special registers) in remote run mode from a computer, for example, when M9017 is 1.
M9020
User timing clock No.0
M9021
User timing clock No.1 n2 scan
M9022
User timing clock No.2
M9023
User timing clock No.3
M9024
User timing clock No.4
*2 M9025
Clock data set request n2 scan
• Relay which repeats on/off at intervals of the predetermined scan. • When the power is turned on or reset is performed, the clock starts with off. • Set the intervals of on/off [DUTY] instruction.
n1 scan DUTY
OFF : No processing ON : Data set request n1 n2
M9020
• Writes clock data from D9025-D9028 to the clock devices after the END instruction is executed in the scan in which M9025 is switched on.
APP - 51
Page 208
APPENDICES
MELSEC-A Table 2.1
Number
Name
Special Relay List (Continued)
Description
Details
M9026
Clock data error
OFF : Normal ON : Error
*2 M9028
Clock data read request
OFF : No processing ON : Read request
M9030
0.1 second clock 0.05 sec.
0.05 sec.
0.1 sec.
0.1 sec.
0.5 sec.
0.5 sec.
M9031
0.2 second clock
M9032
1 second clock
M9033
2 second clock
1 sec.
1 sec.
M9034
1 minute clock
30 sec.
30 sec.
M9036
Normally ON
M9037
M9038 M9039
ON OFF ON Normally OFF OFF ON On only for 1 scan after run OFF RUN flag (off only for 1 ON scan after run) OFF OFF : ON : OFF : ON :
• Switched on when a clock data (D9025 to D9028) error occurs. • Reads clock data in BCD to D9025-D9028 when M9028 is switched on.
• 0.1 second, 0.2 second, 1 second, 2 second, and 1 minute clocks are generated. • Not turned on and off in synchrony with the scan cycle but even during a scan if the corresponding time has elapsed. • Starts when power is turned on or reset is performed.
1 scan 1 scan
PAUSE disabled PAUSE enabled During pause Not during pause
• Used as dummy contacts for initialization and application instructions in sequence program. • M9036 and M9037 are switched on/off independently of the CPU RUN/STOP switch position. M9038 and M9039 are switched on/off in accordance with the RUN/STOP switch position, i.e. switched off when the switch is set to STOP. When the switch is set to a position other than STOP, M9038 is only switched on during 1 scan and M9039 is only switched off during 1 scan.
M9040
PAUSE enable coil
M9041
PAUSE status contact
M9042
Stop status contact
OFF : During stop ON : Not during stop
• Switched on when the RUN/STOP switch is set to STOP.
M9043
Sampling trace completion
OFF : During sampling trace ON : Sampling trace completion
• Turned on upon completion of sampling trace performed the number of times preset by parameter after STRA instruction is executed. Reset when STRAR instruction is executed.
M9046
Sampling trace
OFF : Except during trace ON : During trace
• On during sampling trace.
M9047
Sampling trace preparation
OFF : Sampling trace stop ON : Sampling trace start
• Sampling trace is not executed until M9047 is turned on. By turning off M9047, sampling trace is stopped.
M9049
Number of characters output switching
OFF : Characters up to NULL • When M9049 is off, characters up to NULL (00H) code are output. code output • When M9049 is on, ASCII codes for 16 characters are output. ON : 16 characters output
*2 M9052
SEG instruction switching
OFF : 7SEG display ON : I/O partial refresh
• Serves as an I/O partial refresh instruction when M9052 is on. • Serves as a 7SEG display instruction when M9052 is off.
*2 M9053
EI/DI instruction switching
OFF : Sequence interrupt control ON : Link interrupt control
• Switch on to execute the link refresh enable, disable (EI, DI) instructions.
M9054
STEP RUN flag
OFF : Not during step run ON : During step run
• Switched on when the RUN/STOP switch is in the STEP RUN position.
M9055
Status latch completion flag
OFF : Uncompleted ON : Completed
• Turned on when status latch is completed. Turned off by reset instruction.
• When RUN key switch is at PAUSE position or remote pause contact has turned on and if M9040 is on, PAUSE mode is set and M9041 is turned on.
APP - 52
Page 209
APPENDICES
MELSEC-A Table 2.1
Number
Name
Special relay list (Continued)
Description
Details
OFF : Error checked *2 M9084
Error check setting ON : Error unchecked
• Used to set whether or not the following error checks are made on execution of the END instruction. (To shorten the END instruction processing time.) • Fuse blown, I/O module verify error, battery error
POINTS (1)
(2)
(3)
All special relays are switched off by the power-off, latch clear and reset operations. The special relays remain unchanged when the RUN/STOP switch is set to STOP. The above relays with numbers marked *1 remain "on" if normal status is restored. To turn them "off", use the following method: 1)
Method using a user program
2)
Insert the circuit shown at right into the program and turn on the reset execution command contact to clear the special relay M. Method using a peripheral device.
Reset execution command RST
M9000
Enter the number to be reset
Cause forced reset by the test function of peripheral equipment. For the operating procedure, refer to the manual for each peripheral device. 3) By moving the RESET key switch at the CPU front to the RESET position, the special relay is turned "off". Special relays marked *2 are switched on/off in the sequence program.
APP - 53
Page 210
APPENDICES
MELSEC-A
Appendix 2.2 Special Registers D The special registers are data registers used for specific purposes. Therefore, do not write data to the special registers in the program (except the ones with numbers marked *2 in the table). Table 2.2 Number
Stored data
Explanation
Fuse blown
Number of module with blown fuse
• When modules with blown fuses are detected, the lowest module number among the detected modules is stored in hexadecimal. (Example : When the fuses of Y50 to 6F output modules have blown, "50" is stored in hexadecimal) The module number monitored by the peripheral is hexadecimal. (Cleared when all contents of D9100 are reset to 0.)
D9002
I/O module verify error
• If I/O modules whose data is different from data entered are detected when the power is turned on, the first I/O number of the I/O module verify error module lowest module number among the detected modules is stored in number hexadecimal. (Storing method is the same as that of D9000.) The module number monitored by the peripheral is hexadecimal. (Cleared when all contents of D9116 of D9123 are reset to 0.)
*1 D9005
AC DOWN counter
AC DOWN time count
• 1 is added each time the input voltage becomes 80 % or less of the rating while the CPU module is performing an operation, and the value is stored in BIN code.
*1 D9008
Self-diagnostic error
Self-diagnostic error number
• When error is found as a result of self-diagnosis, the error number is stored in BIN code.
D9000
Name
Special registers list
D9009
Annunciator detection
F number at which external failure has occurred
• When one of F0 to F255 is turned on by [OUT F] or [SET F], the F number, detected earliest among the F numbers which have turned on is stored in BIN code. • D9009 can be cleared by the [RST F] or [LEDR] instruction. If another F number has been detected, the clearing of D9009 causes the next number to be stored in D9009.
D9010
Error step
Step number at which operation error has occurred
• When an operation error has occurred during execution of an application instruction, the step number at which the error has occurred is stored in BIN code. Thereafter, each time an operation error occurs, the contents of D9010 are renewed.
D9011
Error step
Step number at which operation error has occurred
• When an operation error has occurred during execution of an application instruction, the step number at which the error has occurred is stored in BIN code. Since storage into D9011 is executed when M9011 changes from off to on, the contents of D9010 cannot be renewed unless M9011 is cleared by the user program.
D9014
I/O control mode
I/O control mode number
• The set mode is represented as follows : 0 = I/O in direct mode 3 = I/O in refresh mode
APP - 54
Page 211
APPENDICES
MELSEC-A Table 2.2
Number
Name
Special registers list
Stored data
Explanation The operating states of CPU as shown below are stored in D9015. B15 ... B12
B11 ... B8
B7 ... B4
CPU RUN/STOP switch :
D9015
CPU operating states
0
RUN
1
STOP
B3 ... B0
Remains unchanged in remote run/stop mode.
Remote RUN/STOP by parameter setting
Operating states of CPU
0
RUN
1
STOP
2
PAUSE *1
Status in program 0
Other than below
1
[STOP] instruction execution
Remote RUN/STOP by computer 0
RUN
1
STOP
2
PAUSE *1
*1 When the CPU is in RUN mode and M9040 is off, the CPU remains in RUN mode if changed to PAUSE mode.
D9016
0 : 1 : ROM/RAM setting 2 :
ROM RAM E.MDSU/2.MDNM/P ROM
• Indicates the setting of memory select chip. One value among 0 to 2 is stored in BIN code.
D9017
Scan time
Minimum scan time (per 10msec)
• If the scan time is shorter than the contents of D9017, the value is newly stored at each END. Namely, the minimum value for scan time is stored in D9017 in BIN code.
D9018
Scan time
Scan time (per 10msec)
• The scan time is stored in BIN code at each END and always rewritten.
D9019
Scan time
Maximum scan time (per 10msec)
• If the scan time is longer than the contents of D9019, the value is newly stored at each END. This means that the maximum value of the scan time is stored in D9019 in BIN code.
APP - 55
Page 212
APPENDICES
MELSEC-A Table 2.2
Number
*2 D9020
Name
Constant scan
Special registers list (Continued)
Stored data
Explanation • Sets user program execution intervals in 10msec increments. 0 : Constant scan function not used 1 to 200 : Constant scan function used,, program executed at intervals of (set value) 10msec.
Constant scan time (User specified in 10msec increments)
• Stores the year (least significant digits) and month in BCD. B15 ... B12
*2 D9025
Clock data
B11 ... B8
B7 ... B4
B3 ... B0
Clock data (Year, month) Year month
Example : 1987, July H8707
• Stores the day and hour in BCD. B15 ... B12
*2 D9026
Clock data
B11 ... B8
B7 ... B4
B3 ... B0
Clock data (Day, hour) Day hour Example : 31st, 10 O,clock, H3110
• Stores the minute and second in BCD. B15 ... B12
*2 D9027
Clock data
B11 ... B8
B7 ... B4
B3 ... B0
Clock data (Minute, second) Minute second
Example : 35 minutes, 48 seconds, H3548
• Stores the day of the week in BCD. B15 ... B12
B11 ... B8
B7 ... B4
B3 ... B0
0 must be set.
*2 D9028
Clock data
Clock data (0, day of the week)
Day of the week 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday
APP - 56
Page 213
APPENDICES
MELSEC-A Table 2.2
Number
Name
Special registers list (Continued)
Stored data
Explanation • Set the error item numbers in the ERROR LED display (flashing) priority setting registers (1 to 4 at D9038 and 5 to 7 at D9039).
*2 D9038
B15 ... B12
B11 ... B8
B7 ... B4
B3 ... B0
__
__
__
5
B15 ... B12
B11 ... B8
B7 ... B4
B3 ... B0
4
3
2
1
Priority 1 to 4
Priority • Even when "0" is set, the ERROR LED display is given for those errors which stop CPU operation (parameter setting errors are also included).
LED display priority
*2 D9039
Error item No.
Content
0.
No display is given.
1.
3.
I/O verify and fuse break errors Special function module, link parameterk, SFC parameter, and SFC operation errors CHK instruction error
4.
Annunciator (F)
6.
Battery error
2.
Priority 5 to 7 Default : D9038 = H4321 D9039 = H0006
• The numbers of output modules whose fuses have blown or whose external power supply is OFF are input as a bit pattern (in modules of 16 points). (If the module numbers are set by parameter, the output is in the form of the parameter-set numbers.) 15 14 13 12 11 10
*1 D9100 D9101
Fuse blown module
Bit pattern in units of 16 points, indicating the modules whose fuses have blown.
0
0
1 0 YC0
1 0 D9101 Y1F0
0
0
D9100
0
0
9
8
7
6
5
4
3
2
1
0
0
1 0 Y80
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1 0 0 Y1A0
0
Indicates "fuse blown"
(The pattern is not cleared even if the module recovers. Therefore, it must be cleared using a program.) • The module numbers of the I/O modules whose information differs from the I/O module information registered when the power was turned ON are set (in modules of 16 points). (If the I/O module numbers are set by parameter, the output is in the form of the parameter-set numbers.)
*1 D9116 D9117
Input/Output module verification error
Bit pattern in units of 16 points, indicating the modules with verification errors.
15 14 13 12 11 10
9
8
7 6
5
4
3
2
1
D9116
0
0
0
0
0
0
0
0
0
0
0
0
0
1 0 X/Y 0
D9117
0
0
0
0
1 0 X/Y 0
0
0
0
0
0
0
0
0
0
190
Indicates "I/O module verification error"
(The pattern is not cleared even if the module recovers. Therefore, it must be cleared using a program.)
APP - 57
0
0
Page 214
APPENDICES
MELSEC-A Table 2.2
Number
D9124
Name
Special registers list (Continued)
Stored data
Explanation
• When one of F0 to 255 is turned on by [OUT F] or [SET F], 1 is added to the contents of D9124. When the [RST F] or [LED R] Anunciator instruction is executed, 1 is subtracted from the contents of Annunciator detection quantity detection quantity D9124. The quantity which has been turned on by [OUT F] or [SET F] is stored into D9124 in BIN code. The maximum value of D9124 is 8. • When one of F0 to 255 is turned on by [OUT F] or [SET F], the F number which has turned on is entered into D9125 to D9132 in due order in BIN code. The F number which has been turned off by [RST F] is erased from D9125 to D9132, and the contents of data registers succeeding the data register, where the erased F number was stored, are shifted to the preceding data registers. When the [LED R] instruction is executed, the contents of D9125 to D9132 are shifted upward by one.
D9125 D9126 D9127 D9128 D9129 D9130 D9131 D9132
When there are 8 annunciator detections, a 9th one is not stored in D9125 to 9132 even if detected. Annunciator detection number
Annunciator detection number SET SET SET SET SET SET SET SET SET SET SET LED R F50 F25 F19 F25 F15 F70 F65 F38 F110 F151 F210 D9009 D9124 D9125 D9126 D9127 D9128 D9129 D9130 D9131 D9132
APP - 58
0 0 0 0 0 0 0 0 0 0
50 50 50 50 50 50 50 50 50 50 50 99 1 2 3 2 3 4 5 6 7 8 8 8 50 50 50 50 50 50 50 50 50 50 50 99 0 25 25 99 99 99 99 99 99 99 99 15 0 0 99 0 15 15 15 15 15 15 15 70 0 0 0 0 0 70 70 70 70 70 70 65 0 0 0 0 0 0 65 65 65 65 65 38 0 0 0 0 0 0 0 38 38 38 38 110 0 0 0 0 0 0 0 0 110 110 110 151 0 0 0 0 0 0 0 0 0 151 151 210
Page 215
APPENDICES
MELSEC-A POINTS (1)
(2)
All special register data is cleared by the power-off, latch clear and reset operations. The data is retained when the RUN/STOP switch is set to STOP. For the above special registers with numbers marked *1, the contents of the register are not cleared if the normal status is restored. To clear the contents, use the following method: 1)
Method using a user program. Insert the circuit shown at right into the program and turn on the clear execution command contact to clear the contents of the register.
2)
Clear execution command RST
D9005
Enter the number to be cleared
Method using peripheral equipment. Set the register to "0" by changing the present value using the test function of a peripheral device or set it to "0" using forced reset. For the operation procedure, refer to the manual for each peripheral device.
3) (3)
By moving the RESET key switch at the CPU front to the RESET position, the special register is set to "0". Data is written to the special registers marked *2 by the sequence program.
APP - 59
Page 216
APPENDICES Appendix 3
MELSEC-A
Precautions when Switching from AnSCPU to AnSHCPU
Appendix 3.1
Dissimilarities between A1SHCPU and A1SCPU The dissimilarities between the A1SHCPU and A1SCPU are as follows : Item
A1SHCPU
A1SCPU
0.33 µs
1 µs
2048 points *2
256 points
Max. 8192 points (R0 to 8191)
Max. 4096 points (R0 to 4095)
1
CPU processing speed *1
2
I/O points
3
File register capacity (R)
4
Memory capacity
64 k bytes
32 k bytes
5
Comment points
Max. 3648 points
Max. 1600 points *3
6
CC-Link dedicated instruction
11
None
7
Startup model
A3
A1S
8
Memory write protect range
First half, 32 k bytes
First half, 20 k bytes
9
10
There are some restrictions.
There is no restrictions.
Conventional memory cassette A1SMCA-2KE/8KE/8KP
Microcomputer program
×
ϒ
New-type memory cassette A1SMCA-2KE/8KE/8KP
ϒ
ϒ
Year, month, day, hour, minute, day of week (Automatic leap year calculation) 11
Clock precision
Precision -3.1 to +5.3 s(TYP. +1.7 s)/d at 0 °C -1.6 to +5.3 s(TYP. +2.4 s)/d at 25 °C -9.6 to +3.6 s(TYP. -2.1 s)/d at 55 °C
Precision -2.3 to +4.4 s(TYP. +1.8 s)/d at 0 °C -1.1 to +4.4 s(TYP. +2.2 s)/d at 25 °C -9.6 to +2.7 s(TYP. -2.4 s)/d at 55 °C
*1 : I/O processing: during refresh and LD instruction execution *2 : Actual I/O points are the same as the AnS series, but this model has 2048 points of I/O device for each CPU (X/Y0 to 7FF). The added I/O device can be used for MELSECNET (/B), MELSECNET/MINI, or CC-Link. *3 : The comment points for comments that can be stored in the CPU is 1600 points, while up to 3648 points of comment can be created using the GPP function.
APP - 60