Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-314
BTAN(P)
Program Example
(1) The following program calculates the tangent of the data stored in the 3 BCD digits from X20
to X2B, and stores the integer part of the results in the 4 BCD digits from Y50 to Y53, and
the decimal fraction part in the 4 BCD digits from Y40 to Y4F.
Y60 is turned ON if the results of the operation are negative.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2B designate a value of 390]
1
2
3
4
5
Processes so that the input
angle is within 360° ( )
Step Instruction Device
X2B
BCD value
390
X20
B/ operation
B/
BTAN
operation
BTAN
OUT
D10
BCD value
(quotient)
0001
D11
BCD value
(remainder)
0030
D20
Transfer
MOV
D21
Transfer
MOV
D22
BCD value
0000
BCD value
0000
BCD value
5774
Y4F
BCD value
5774
Y40
Y53
BCD value
0
Y50
Y60 OFF
1
2
3
4
5