Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-318
BACOS(P)
Program Example
(1) The following program performs a COS
-1
operation on the sign (positive when X0 is OFF,
and negative when X0 is ON), the BCD 1-digit integer part from X30 to X33 and the BCD
4-digit decimal fraction part from X20 to X2F, and outputs the calculated angle in 4 BCD
digits from Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved if X0 and X20 to X33 designate a value of 0.7650]
Turns M0 ON when D1>1 or D1=1 and D2 0
Sets the decimal fraction part of a COS value ( )
Sets the sign of a COS value ( )
Sets the integer part of a COS value ( )
Executes COS
-1
operation and outputs
the result of operation to Y40 to Y4F ( )
1
2
3
4
Step Instruction Device
BCD value
D0
Transfer
MOV
D1
Transfer
MOV
D2
BCD value
1
00
0
BCD value
0000
BCD value
0567
X20
BCD value
0567
X2F
X30
BCD value
X33
X0 ON
0
BACOS operation
Y40
0410
Y4F
BACOS
4
1
2
3