The text of a manual · part 23 of 27
SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual: Appendix, pages 180 to 187
Pages 180 to 187 of 211, from SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual
The original document is the PDF (2.2 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 Omron C28P
Page 180
Appendix C
Programming Console Operations Monitoring and Data Changing Operations Operation/Description
Modes*
Bit/Word Monitor Up to six memory addresses, with either words or bits, or a combination of the two, can be monitored at once. Only three, however, can be displayed at any one time. If operated in RUN or MONITOR Mode, the status of monitored bits will also be displayed. The operation can be started from a cleared display by entering the address of the first word or bit to be monitored and pressing MONTR, or from any address in the program by displaying the address of the bit or word to be monitored and pressing MONTR.
RPM
Key sequence
CLR
SHIFT
CONT
[Address]
# LR
SHIFT
SHIFT
LD
OUT
(Monitor Clear)
TIM
DM
3-word Monitor RPM Monitors three consecutive words simultaneously. Specify the lowest valued address of the htree words, press MONTR, and then press EXT to display the data contents of the specified word and the two words that follow. Pressing CLR will change the three-word monitor operation into a single-word display.
174
HR
CLR
CNT
Force Set/Reset If a bit, timer, or counter address is leftmost on the screen during a bit/word monitor operation, pressing PLAY/SET will turn ON the bit, start the timer, or increment the counter. Pressing REC/RESET will turn OFF the bit, or reset the timer or counter. Timers will not operate in PROGRAM mode. SR bits are not affected by this operation.
MONTR
HR
PM
Bit/Hex monitor in progress
Bit/Hex monitor in progress
EXT
PLAY SET
REC RESET
Page 181
Appendix C
Programming Console Operations Operation/Description
Modes*
Hex/BCD Data Change PM Used to edit the leftmost BCD or hexadecimal value displayed during a Bit/Word Monitor operation. If a timer or counter is leftmost on the display, the PV will be the value displayed and affected by this operation. It can only be changed in MONITOR mode and only while the timer or counter is operating. SR words cannot be changed using this operation. Binary Data Change PM This operation is used to change the value of 16-bit IR, HR, AR, LR, or DM words bit-by-bit. The cursor can be moved left by using the up key, and right using the down key. The position of the cursor is the bit that will be overwritten. There are two types of changes, tem-porary and permanent. Temporary changes result if 1 or 0 is entered. Permanent changes are made by pressing SHIFT and SET, or SHIFT and RESET. (These are only avail-able on the C200H PC.) The former will result in an S being displayed in that bit position. Similarly, SHIFT and RESET will produce an R in the dis-play. During operation of the PC, the bits having 1 or 0 values will change according to the conditions. Bits with S or R will, however, always be treated as a 1 or 0, respectively. NOT cancels S and R settings and the bits will become 1 or 0, respectively. Pressing WRITE transfers the changes made on the display to the memory.
SV Change, PM SV Reset M There are two ways of modifying the SVs for timers and counters. One method is to enter a new value. The other is to increment or decrement the existing SV. In MONITOR mode the SV can be changed while the program is being executed. Incrementing and decrementing can only be carried out if the SV has been entered as a constant.
Key sequence Bit/Hex monitor in progress
Binary monitor in progress
[New Data]
CHG
WRITE
WRITE
CHG
B
1 A
0 PLAY
SHIFT
SET REC
SHIFT
RESET
NOT
Timer/Counter currently displayed
CHG
EXT
[New SV]
WRITE
*Modes in which the given instruction is applicable: R = RUN, M = MONITOR, P = PROGRAM
175
Page 182
Appendix C
Programming Console Operations Operation/Description
3-word Change This operation changes the value of a word displayed during a 3-word monitor operation. The blinking cursor indicates the word that will be affected by the operation. The cursor can be moved by using the up and down keys. When the cursor is at the desired location, press CHG. After entering the new data, pressing WRITE causes the original data to be overwritten.
Modes*
PM 3-word Monitor in progress
Scan Time Display RM This operation should be performed after all syntax errors have been corrected. The scan time can only be checked in RUN or MONITOR mode and while the program is being executed. The scan time displayed after pressing CLR and MONTR is that for the current scan. Pressing MONTR again will display a new scan time. The difference between the displayed scan times is due to the different execution conditions that exist during each scan. Hex–ASCII Display Change Converts 4-digit hexadecimal DM data to ASCII and vice-versa.
Key sequence
CLR
MONTR
CHG
[Data]
WRITE
MONTR
RPM Word currently displayed
TR
Binary Monitor RPM The contents of a monitored word can be specified to be displayed in binary by pressing SHIFT and MONTR after entering the word address. Words can be scrolled by pressing the up and down keys to increment and decrement the displayed address. To terminate the binary display, press CLR.
[Word Address]
Binary monitor clear All monitor clear
176
Page 183
Appendix C
Programming Console Operations Operation/Description
Program Read Protect/Clear
Modes*
Key sequence
RPM [Mode changed]
REC
[4–digit number]
WRITE
Cleared
RESET PLAY SET
Clear Forced Set/Reset Simultaneously clears all forced bits within the word currently displayed.
PM
PLAY
REC
SET
RESET
CLR
WRITE
Protected
NOT
*Modes in which the given instruction is applicable: R = RUN, M = MONITOR, P = PROGRAM
177
Page 184
Appendix C
Programming Console Operations Cassette Tape Operations Operation/Description
Modes*
Program Memory Save P This operation copies data from the Program Memory to tape. The file no. refers to an identifying address for the information within the tape. For ease of information retrieval, the file number and data information should be written clearly on the tape. File numbers should not be used more than once on one tape. If only a part of the Program Memory is to be stored, the appropriate start and stop addresses must be entered. Due to limited memory capacity, each C60 tape can only store apporximately 16K words on each side of the tape. When the start address is entered, the maximum stop address is set as the default. Do not set a stop address past this one. If you wish to record past this address the additional information will need to be recorded either on the flip side of the tape or on a separate tape. After starting the tape recorder, wait about 5 seconds before pressing REC/RESET to allow the leader tape to pass before the data transmission starts. Program Memory Restore To read Program Memory data which has been recorded on a cassette tape, the keystrokes are as given here. The file no. should be the same as the one entered when the data was recorded. The read operation will proceed from the specified start address up to the end of the tape, unless halted by a CLR command. The instruction must be completed before the leader tape has been played, i.e., before the data is reached on the tape.
P
Program Memory Compare The procedure to compare Program Memory data on a tape with the Program Memory in the Program Memory area is the same as that for reading it (see above), except that after starting the tape playback, VER should be pressed instead of SHIFT and PLAY/SET.
P
178
Key sequence A CLR
0
EXT
[Stop address]
WRITE
[File no.]
WRITE
Start recording with the tape recorder.
[Start address]
SHIFT
REC RESET
After about 5 seconds (Cancel with the CLR key.)
A CLR
0
EXT
[File no.]
WRITE
Start tape recorder playback.
[Start address]
SHIFT
PLAY SET
Within about 5 seconds
A CLR
EXT
0
[File no.]
WRITE
Start tape recorder playback.
[Start address]
VER
Within about 5 seconds
Page 185
Appendix C
Programming Console Operations Operation/Description
DM Data Save, Restore, Compare The procedures for transferring DM area data to and from tape, and for comparing it, are basically the same as for the Program Memory, given above. The exceptions are that start and stop addresses are not required, and the DM area is specified instead of the Program Memory. Each operation will continue through to the end of the tape unless cancelled by pressing clear.
Modes*
Key sequence
P EXT
CLR
5 second leader tape
B
1
[File no.]
Start tape recorder recording.
SHIFT
Start tape recorder playback.
SHIFT
REC RESET PLAY SET
VER
PROM Writer Operations Operation/Description
Modes*
PC to PROM Writer Outputs Program Memory to the RS–232C interface for writing to a commercial PROM writer.
P
PROM Writer to PC Read Program Memory data from a commercial PROM writer into the PC via the RS–232C interface.
P
Key sequence Start PROM writer reception
Start PROM writer transmission
*Modes in which the given instruction is applicable: R = RUN, M = MONITOR, P = PROGRAM
179
Page 186
Appendix D Error and Arithmetic Flag Operation The following table shows which instructions affect the ER, CY, GT, LT and EQ flags. In general, ER indicates that operand data is not within requirements. CY indicates arithmetic or data shift results. GT indicates that a compared value is larger than some standard, LT that it is smaller; and EQ, that it is the same. EQ also indicates a result of zero for arithmetic operations. Refer to subsections of Section 5 Instruction Set for details. Vertical arrows in the table indicate the flags that are turned ON and OFF according to the result of the instruction. Although TIM, CNT, and CNTR are executed when ER is ON, other instructions with a vertical arrow under the Er column are not executed if ER is ON. All of the other flags in the following table will also not operate when ER is ON. Instructions not shown do not affect any of the flags in the table. Instructions END(01)
SR 1907 (LE) OFF
SR 1906 (EQ) OFF
SR 1905 (GR) OFF
SR 1904 (CY)
SR 1903 (ER)
OFF
OFF
STC(40)
ON
ON
CLC(41)
OFF
OFF
TIM TIMH(15) CNT CNTR(12) WSFT(16) CMP(20) MOV(21) MVN(22) BIN(23) BCD(24) ADD(30) SUB(31) MUL(32) DIV(33)
MLPX(76) DMPX(77) SFTR(84) SBS(91) Note:
means that the flag is affected by the result of instruction execution.
181
Page 187
Appendix E Binary–Hexadecimal–Decimal Table Decimal
BCD
Hex
Binary
00
00000000
00
00000000
01
00000001
01
00000001
02
00000010
02
00000010
03
00000011
03
00000011
04
00000100
04
00000100
05
00000101
05
00000101
06
00000110
06
00000110
07
00000111
07
00000111
08
00001000
08
00001000
09
00001001
09
00001001
10
00010000
0A
00001010
11
00010001
0B
00001011
12
00010010
0C
00001100
13
00010011
0D
00001101
14
00010100
0E
00001110
15
00010101
0F
00001111
16
00010110
10
00010000
17
00010111
11
00010001
18
00011000
12
00010010
19
00011001
13
00010011
20
00100000
14
00010100
21
00100001
15
00010101
22
00100010
16
00010110
23
00100011
17
00010111
24
00100100
18
00011000
25
00100101
19
00011001
26
00100110
1A
00011010
27
00100111
1B
00011011
28
00101000
1C
00011100
29
00101001
1D
00011101
30
00110000
1E
00011110
31
00110001
1F
00011111
32
00110010
20
00100000
183