Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 15 of 18

SYSMAC Programmable Controllers C200H (CPU01-E/03-E/11-E) Installation Guide, pages 134 to 143

Pages 134 to 143 of 173

The original document is the PDF (1.3 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 C200H-CPU01-E

Page 134

Appendix D

Programming Console Operation Operation SV Increment/ Decrement, SV Reset

RUN

Mode MON. PROG.

NO NO

YES YES

YES NO

Key Sequence

Timer/Counter currently displayed

CHG

EXT

[New SW] 3-Word Change

NO

YES

Cycle YES Time Read

YES

HEX-ASCII Display Convert

YES

120

YES

YES

3 Word Monitor in progress

[Data]

CHG

NO CLR

YES

MONTR

Word currently displayed

MONTR

TR

WRITE

WRITE

Page 135

Appendix D

Programming Console Operation

Cassette Tape Operations Operation

Mode RUN

Key Sequence

MON. PROG. A

Cassette Tape Write

NO

NO

YES

0

EXT

CLR

[Stop address]

WRITE

[File no.]

[Start address]

WRITE

Start recording with the tape recorder.

REC

SHIFT

RESET

Wait for about 5 seconds. (Cancel with the CLR key.) A EXT

CLR

Cassette Tape Read

NO

NO

0

YES

[File no.]

[Start address]

WRITE

Start tape recorder playback.

REC

SHIFT

RESET

Wait for about 5 seconds.

A EXT

CLR

Cassette Tape Verify

NO

NO

0

YES

[File no.]

[Start address]

WRITE

Start tape recorder playback.

VER

Wait for about 5 seconds.

EXT

CLR

5 second tape leader

DM<–> Cassette Tape

B

1 NO

NO

YES

[File no.]

Start tape recorder recording.

SHIFT

Start tape recorder playback.

SHIFT

REC RESET

PLAY SET

VER

121

Page 136

This page is a scan with no text; see it in the PDF.

Page 137

Appendix E Programming Instructions Basic Instructions Name Mnemonic

Symbol

AND AND

Function

Operand Data Areas

Logically ANDs the status of the desig- B: nated bit with the current execution condi- IR SR tion. HR AR LR TC

B

AND LOAD AND LD

Logically ANDs the resultant execution None conditions of the preceding logic blocks.

AND NOT AND NOT

Logically ANDs the inverse of the desig- B: nated bit with the current execution condi- IR SR tion. HR AR LR TC

B

COUNTER CNT CP

A decrementing counter. SV: 0 to 9999; N: CP: count pulse; R: reset input. The TC bit TC is entered as a constant.

CNT N

R

SV

LOAD LD

SV: IR HR AR LR DM #

Defines the status of bit B as the execution B: condition for subsequent operations in the IR SR instruction line. HR AR LR TC TR Defines the status of the inverse of bit B as B: the execution condition for subsequent op- IR SR erations in the instruction line. HR AR LR TC

B

LOAD NOT LD NOT B

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

123

Page 138

Appendix E

Programming Instructions Name Mnemonic

Symbol

Function

OR OR

Operand Data Areas

Logically ORs the status of the designated B: IR bit with the current execution condition. SR HR AR LR TC

B

OR LOAD OR LD

Logically ORs the resultant execution con- None ditions of the preceding logic blocks.

OR NOT OR NOT

Logically ORs the inverse of the desig- B: IR nated bit with the execution condition. SR HR AR LR TC

B

OUTPUT OUT

Turns ON B for an ON execution condition; B: turns OFF B for an OFF execution condi- IR SR tion. HR AR LR TR

B

OUTPUT NOT OUT NOT

Turns OFF B for an ON execution condi- B: tion; turns ON B for an OFF execution con- IR SR dition. HR AR LR

B

TIMER TIM

ON-delay (decrementing) timer operation. N: Set value: 000.0 to 999.9 s. The same TC TC bit cannot be assigned to more than one timer/counter. The TC bit is entered as a constant.

TIM N SV

SV: IR HR AR LR DM #

Special Instructions Name Mnemonic

Symbol

Function

NO OPERATION NOP(00)

Operand Data Areas

Nothing is executed and program opera- None tion moves to the next instruction. None

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

124

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

Page 139

Appendix E

Programming Instructions Name Mnemonic

Symbol

END END(01)

Function

Required at the end of each program. In- None structions located after END(01) will not be executed.

END(01)

INTERLOCK IL(02) INTERLOCK CLEAR ILC(03)

If an interlock condition is OFF, all outputs None and all timer PVs between the current IL(02) and the next ILC(03) are turned OFF or reset, respectively. Other instructions are treated as NOP. Counter PVs are maintained. If the execution condition is ON, execution continues normally.

IL(02) ILC(03)

JUMP JMP(04) JUMP END JME(05)

JMP(04)

N

JME(05)

N

FAILURE ALARM (@)FAL(06) FAL(06)

SEVERE FAILURE ALARM FALS(07)

N

N: 00 to 99 (not applicable for CjjP, CjjK, or C120 PCs)

A fatal error is indicated by outputting N to N: the FAL output area and the CPU is 01 to 99 stopped. The same FAL numbers are used for both FAL(06) and FALS(07).

STEP DEFINE STEP(08)

STEP START SNXT(09)

When the execution condition for the JMP(04) instruction is ON, all instructions between JMP(04) and the corresponding JME(05) are to be ignored or treated as NOP(00). For direct jumps, the corresponding JMP(04) and JME(05) instructions have the same N value in the range 01 through 99. Direct jumps are usable only once each per program (i.e., N is 01 through 99 can be used only once each) and the instructions between the JUMP and JUMP END instructions are ignored; 00 may be used as many times as necessary, instructions between JMP 00 and the next JME 00 are treated as NOP, thus increasing cycle time, as compared with direct jumps.

Assigns a failure alarm code to the given N: execution condition.When N can be given 00 to 99 a value between 01 and 99 to indicate that a non-fatal error (i.e., one that will not stop the CPU) has occurred. This is indicated by the PC outputting N (the FAL number) to the FAL output area. To reset the FAL area, N can be defined as 00. This will cause all previously recorded FAL numbers in the FAL area to be deleted. FAL data sent after a 00 will be recorded in the normal way. The same code numbers can be used for both FAL(06) and FALS(07).

FALS(07) N

STEP(08)

Operand Data Areas

B

SNXT(09) B

When used with a control bit (B), defines the start of a new step and resets the previous step. When used without B, it defines the end of step execution.

B: IR HR AR LR

Used with a control bit (B) to indicate the end of the step, reset the step, and start the next step which has been defined with the same control bit.

B: IR HR AR LR

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

125

Page 140

Appendix E

Programming Instructions Name Mnemonic SHIFT REGISTER SFT(10)

Symbol

Function Creates a bit shift register for data from the starting word (St) through to the ending word (E). I: input bit; P: shift pulse; R: reset input. St must be less than or equal to E. St and E must be in the same data area.

I P R

SFT(10) St E

15

00

15

KEEP(11)

REVERSIBLE COUNTER CNTR (12)

B

Increases or decreases the PV by one N: whenever the increment input (II) or decre- TC ment input (DI) signals, respectively, go from OFF to ON. SV: 0 to 9999; R: reset input. Each TC bit can be used for one timer/counter only. The TC bit is entered as a constant.

II DI R

DIFFERENTIATE UP DIFU(13) DIFFERENTIATE DOWN DIFD(14)

IN

Defines a bit (B) as a latch, controlled by B: IR the set (S) and reset (R) inputs. HR AR LR

S

R

St/E: IR HR AR LR

00 St

E

KEEP KEEP(11)

Operand Data Areas

CNTR(12) N SV

DIFU(13) B

DIFU(13) turns ON the designated bit (B) for one cycle on reception of the leading (rising) edge of the input signal; DIFD(14) turns ON the bit for one cycle on reception of the trailing (falling) edge.

SV: IR SR HR AR LR DM #

B: IR HR AR LR

DIFD(14) B HIGH-SPEED TIMER TIMH(15)

A high-speed, ON-delay (decrementing) N: timer. SV: 00.02 to 99.99 s. Each TC bit can TC be assigned to only one timer or counter. The TC bit is entered as a constant.

TIMH(15) N SV

WORD SHIFT (@)WSFT(16)

The data in the words from the starting word (St) through to the ending word (E), is shifted left in word units, writing all zeros into the starting word. St must be less than or equal to E, and St and E must be in the same data area.

WSFT(16) St E

SV: IR SR HR AR LR HR #

St/E: IR HR AR LR DM

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

126

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

Page 141

Appendix E

Programming Instructions Name Mnemonic

Symbol

REVERSIBLE WORD SHIFT (@)RWS(17) (CPU11)

Function

RWS(17) C St E

CYCLE TIME (@)SCAN(18) (CPU11)

SCAN(18) Mi ––– –––

MULTI-WORD COMPARE (@)MCMP(19) (CPU11)

MCMP(19) S1 S2 D

COMPARE (@)CMP(20) CMP(20) Cp1 Cp2

MOVE (@)MOV(21)

Operand Data Areas

Creates and controls a reversible non-synchronous word shift register between St and E. Exchanges the content of a word containing zero with the content of either the preceding or following word, depending on the shift direction. Bits 13, 14, and 15 of control word C determine the mode of operation of the register according to the following: The shift direction is determined by bit 13 (OFF shifts the non-zero data to higher addressed words; ON to lower addressed words). Bit 14 is the register enable bit (ON for shift enabled). Bit 15 is the reset bit (if bit 15 is ON, the register will be set to zero between St and E when the instruction is executed with bit 14 also ON). St and E must be in the same data area. Sets the minimum cycle time, Mi, in tenths of milliseconds. The possible setting range is from 0 to 999.0 ms. If the actual cycle time is less than the time set using SCAN(18), the CPU will wait until the designated time has elapsed before starting the next cycle.

C: IR SR HR AR LR TC DM #

St/E: IR SR HR AR LR TC DM

Mi: IR SR HR AR LR TC DM #

–––: Not used.

Compares the data within a block of 16 words of 4-digit hexadecimal data (S1 to S1+15) with that in another block of 16 words (S2 to S2+15) on a word-by-word basis. If the words are not in agreement, the bit corresponding to unmatched words turns ON in the result word, D. Bits corresponding to words that are equal are turned OFF. Compares the data in two 4-digit hexadecimal words (Cp1 and Cp2) and outputs result to the GR, EQ, or LE Flags.

S1/S2: IR SR HR AR LR TC DM

D: IR SR HR AR LR TC DM

Cp1/Cp2: IR SR HR AR LR TC DM #

Transfers data from source word, (S) to S: IR destination word (D). SR HR AR LR TC DM #

MOV(21) S D

D: IR HR AR LR DM

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

127

Page 142

Appendix E

Programming Instructions Name Mnemonic

Symbol

Function

MOVE NOT (@)MVN(22) MVN(22) S D

BCD-TO-BINARY (@)BIN(23) BIN(23) S R

BINARY-TO-BCD (@)BCD(24)

Operand Data Areas

Transfers the inverse of the data in the S: IR source word (S) to destination word (D). SR HR AR LR TC DM #

D: IR HR AR LR DM

Converts 4-digit, BCD data in source word S: (S) into 16-bit binary data, and outputs IR SR converted data to result word (R). HR AR LR S R TC (BCD) (BIN) DM 0 0 x16 x10

R: IR HR AR LR DM x101 x161 x102 x162 x103 x163

Converts binary data in source word (S) S: into BCD, and outputs converted data to IR SR result word (R). HR AR S R LR (BIN) (BCD) DM 0 0 x16

BCD(24) S R

R: IR HR AR LR DM x10

ARITHMETIC SHIFT LEFT (@)ASL(25)

x101 x162 x102 x163 x103

Each bit within a single word of data (Wd) Wd: is shifted one bit to the left, with zero written IR HR to bit 00 and bit 15 moving to CY. AR 00 15 LR CY 0 DM Wd

ASL(25) Wd

ARITHMETIC SHIFT RIGHT (@)ASR(26)

x161

Each bit within a single word of data (Wd) Wd: is shifted one bit to the right, with zero writ- IR HR ten to bit 15 and bit 00 moving to CY. AR 15 00 LR 0 Wd CY DM

ASR(26) Wd

ROTATE LEFT (@)ROL(27)

Each bit within a single word of data (Wd) Wd: is moved one bit to the left, with bit 15 mov- IR ing to carry (CY), and CY moving to bit 00. HR AR 15 00 LR DM CY Wd

ROL(27) Wd

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

128

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

Page 143

Appendix E

Programming Instructions Name Mnemonic

Symbol

Function

ROTATE RIGHT (@)ROR(28)

Each bit within a single word of data (Wd) is moved one bit to the right, with bit 00 moving to carry (CY), and CY moving to bit 15.

ROR(28) Wd

15

CY

COMPLEMENT (@)COM(29)

Adds two 4-digit BCD values (Au and Ad) Au/Ad: R: IR and content of CY, and outputs the result to IR SR HR the specified result word (R). HR AR AR LR Au + Ad + CY R CY LR DM TC DM #

ADD(30) Au Ad R

BCD SUBTRACT (@)SUB(31)

Subtracts both the 4-digit BCD subtrahend (Su) and content of CY, from the 4-digit BCD minuend (Mi) and outputs the result to the specified result word (R).

SUB(31) Mi Su R

Mi – Su – CY

BCD MULTIPLY (@)MUL(32)

R CY

Multiplies the 4-digit BCD multiplicand (Md) and 4-digit BCD multiplier (Mr), and outputs the result to the specified result words (R and R + 1). R and R + 1 must be in the same data area.

MUL(32) Md Mr R

BCD DIVIDE (@)DIV(33)

00

Wd

Wd: IR HR AR LR DM

Inverts bit status of one word (Wd) of data, Wd: IR changing 0s to 1s, and vice versa. HR AR Wd Wd LR DM

COM(29) Wd

BCD ADD (@)ADD(30)

Operand Data Areas

Md x Mr

R+1

R

Divides the 4-digit BCD dividend (Dd) by the 4-digit BCD divisor (Dr), and outputs the result to the specified result words. R receives the quotient; R + 1 receives the remainder. R and R + 1 must be in the same data area.

DIV(33) Dd Dr R

Dd ÷ Dr

LOGICAL AND (@)ANDW(34)

R+1

R

Logically ANDs two 16-bit input words (I1 and I2) and sets the bits in the result word (R) if the corresponding bits in the input words are both ON.

ANDW(34) I1 I2 R

Mi/Su: IR SR HR AR LR TC DM #

R: IR HR AR LR DM

Md/Mr: IR SR HR AR LR TC DM #

R: IR HR AR LR DM

Dd/Dr: IR SR HR AR LR TC DM #

R: IR HR AR LR DM

I1/I2: IR SR HR AR LR TC DM #

R: IR HR AR LR DM

Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515

SR

HR

TR

AR

LR

TC

DM

#

23600 to 25507

HR 0000 to 9915

TR 0 to 7

AR 0000 to 2715

LR 0000 to 6315

TC 000 to 511

Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999

0000 to 9999 or 0000 to FFFF

129