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

The text of a manual · part 16 of 21

CNC Systems OSP-U100M, OSP-U10M, MX-V Series Maintenance Manual, pages 151 to 160

Pages 151 to 160 of 208

The original document is the PDF (22 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 Okuma FUB-DR3

Page 151 read from a scan by OCR; it may hold reading errors

4194-E P-140

SECTION 7 PLC PROGRAM INSTRUCTIONS

(5) Logical Operation Instructions

H Ft P3

Name Symbol Remark Logical product (AND) LF YL PO AND P1 -> P2 4j-4 |- The instruction performs Pg arithmetic operation. Logical sum (OR) H1Fit Po on pi -> p2 1-4 P3 Exclusive logical sum FI PO XOR Pi -> P2 ] (Exclusive OR) M1 7 Logical inversion HEY PO INV 3°) TS P2 Logical right shift HLH Fy P1 SHR P2 Po j- P3 Logical left shift i aa P1 SHL pP2 Po ] | P3 Right rotation shitt | ai Pt ROR P2 Po ] i P3 Left rotation shift Ky P1 ROL p2 Po j- P3 Test bit HEI Pi TBIT Po P6394 P3 P2 Set bit HH FI Pt. sit p2 Po jf P3 Reset bit Pt RBIT P2 Po j4

Page 152 read from a scan by OCR; it may hold reading errors

4194-E P-141 SECTION 7 PLC PROGRAM INSTRUCTIONS

(6) Comparison Instructions

Name Symbol Remark > HH FI PO > P4 1 -( )4 |- The instruction performs P3 p2 arithmetic operation. = HI Poe Pt (aoe ee a P3 P2 < tL} Fi, po < PI ‘ee ee | P3 P2 < tL} Fr pos PI oe ae P3 P2 = HHrr Po = PI "fom ee ca P3 P2 = H{ FL PO < Pt y-t 4 P3 P2 (7) Transfer Instructions Name Symbol Remark Logical block transfer L{ by P1 LBT Po : po }j- |- The instruction performs P3 arithmetic operation. Logical transfer HH FY PO LMOV P14 1-4 P2 Pattern clear | ial P2 PC PIs: PO 44 P3 Search HL [pi sRCHP2: P3: PO }-( )7 P5 P4 Switch LHF, po; pi :P2 SW Ps 174 P4

Word swap tif, Po wswp P4 iq P2

Page 153 read from a scan by OCR; it may hold reading errors

4194-E P-142

SECTION 7 PLC PROGRAM INSTRUCTIONS

(8) Conversion Instructions

Name Symbol Remark

Binary/BCD conversion HH Er po scp Pi 1-4 P2

BCD/binary conversion HY PO BIN P14 14 P2

Single precision/double

Se H Ft Po psc pt 4

(arithmetic operation) Re

Double precision/single viidickon g HHEE Po spic Py 174

(logical operation) ne

Double precision/single apsoietin . or [ PO SDAC Pi 14

(arithmetic operation)

Page 154 read from a scan by OCR; it may hold reading errors

4194-E P-143

SECTION 7 PLC PROGRAM INSTRUCTIONS

(9)

Selective Construction Instructions

Name

Symbol

LIF

I Conditional expression PO, 4 THEN t - THEN expression P14 t+ ELSE t+ - ELSE expression P2 bk ENDIF

Function

Condition No

PO

Yes

THEN ELSE

Expression Pi

Expression P2

ENDIF

Page 155 read from a scan by OCR; it may hold reading errors

4194-E P-144 SECTION 7 PLC PROGRAM INSTRUCTIONS

Name Symbol

COND

H{ conp Condition PO

+ - Expression Pm, ELSEIF Condition P1, t - Expression Pm+1, t+ ELSEIF Condition Pk

- - Expression Pn =

ENDCOND |

Function

ELSEIF ELSEIF f COND

Condition Pk

Condition P1

Condition PO

Expression Expression Expression Pm Pm+1 Pn, ENDCOND

Page 156 read from a scan by OCR; it may hold reading errors

4194-E P-145

SECTION 7 PLC PROGRAM INSTRUCTIONS

Name Symbol CASE

CASE Key 0 = CASEIF a (P1) =

CASEIF b (P2) | |_| CASEIF c (P3) - - Expression Pj =

CASEIF d (Pk - 1) |_| CASEIF e (Pk) LY ' - Expression Pj+1 al i+ OTHERW = - - Expression Pt, Lt ENDCASE =

Function CASE Key PO OTHERWISE, - - aVbVc, - dVe (P1 V P2 V P3) (Pk - 1 V Pk) Expression Expression Expression Pj Pj+1 Pt

ENDCASE

Page 157 read from a scan by OCR; it may hold reading errors

4194-E P-146

SECTION 7 PLC PROGRAM INSTRUCTIONS

(10) Loop Construction Instructions

Name Symbol REPEAT REPEAT ma, Expression PO, 4 UNTIL Condition P1 ENDREP _ Function REPEAT Expression PO Condition P41 Yes ENDREP Name Symbol! WHILE WHILE Condition Po Expression P1 ENDWHIL Function

Condition PO

Expression P4 aes

Page 158 read from a scan by OCR; it may hold reading errors

4194-E P-147

SECTION 7 PLC PROGRAM INSTRUCTIONS

(11) Program Control Instructions

Name Symbol Function Function module call - The instruction calls a f PME. 29 ] function module by passing [ DATA Po } arguments PO - Pn. [ DATA P41 ] | Ly DATA Pn ] =| (12) Index Register Instructions Name Symbol Function Load effective address - The instruction acquires the H+, LEA Po PI 14 address of an identifier and P2 stores it in the index regisier.

Page 159 read from a scan by OCR; it may hold reading errors

4194-E P-148 SECTION 7 PLC PROGRAM INSTRUCTIONS

1-3. System Function Module

The system function module is a function module (functions like a sburoutine) provided by Okuma, that executes the function which is difficult to program using a ladder or requires a complicated program. System function modules (system FM) are allocated to system areas having FM numbers 256 and on.

The following system function modules are provided:

SFM256 Inverse gray code, binary conversion SFM257 Parity check

SFM258 Byte data transfer

SFM263 Gray code, binary conversion SFM264 Alarm request

SFM270 Revolving body control SFM272 Code, bit development SFM275 M code development (8/16) SFM276 Logic table initialization SFM277 Logic table control

SFM278 Magazine data calculation SFM279 Word table search

Page 160 read from a scan by OCR; it may hold reading errors

4194-E P-149 SECTION 7 PLC PROGRAM INSTRUCTIONS

[SFM256] [SFM263]

Inverse gray code, binary conversion

Gray code, binary conversion

- The function module converts an inverse gray code into binary to output (SFM256).

- The function module converts gray code into binary to output (SFM263).

|

| ti a eying ees aps ee Le

FMC SFM256 DATA WMo000 (number of digits of inverse L gray code) DATA WI0001 (inverse gray code) i; DATA woo002 (binary code) H FMC SFM263 H DATA WMo0000 (number of digits of gray code) H DATA WI10001 (gray code) b DATA woo0002 (binary code) +