Panasonic FP-E Programming Manual page 1004

Fp series
Table of Contents

Advertisement

High−level Instructions
Specifying the integer device with [S], the integer data is internally converted to real numbers before
operations continue.
R0
F338 DEG, % DT 0, DT 4
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
R0
F338 DEG, DT 0, % DT 4
When the constant K is specified in S, the operations are the same as when a integer device is specified.
Program example
The "f30.00000" is stored to DT20 and DT21 when the R0 turns on.
R0
F338 DEG, f0.5235987, DT20
Precautions during programming
When the constant or integer device is specified in S, the integer device cannot be set in D.
For FP0, this instruction F338 (DEG) cannot be programmed in the interrupt program.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
・= flag (R900B):
・Carry flag (R9009): Turns on for an instant when the result is overflowed.
3 − 740
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− If data other than real number data is specified in S+1 and S.
− If result of processing is outside integer range when integer device specified
in D+1 and D.
Turns on when result of processing is recognized as "0."

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents