5-26
Writing the User Program
CLM01.4-LAP-01VRS
DOK-CONTRL-CLM01.4LAP1-FK01-EN-P
Example:
Convert the content of a variable to a BCD bit pattern
V600 = -87654321.654321
CVT V600 M2.00 0 0
Marker
Flag
Bit Number
7654 3210
Value
Comment
M2.00
0010 0001
2 1
After decimal point
M2.01
0100 0011
4 3
After decimal point
M2.02
0110 0101
6 5
After decimal point
M2.03
0010 0001
2 1
Before decimal point M2.03.0 indicates if
value is even or
odd.
M2.04
0100 0011
4 3
Before decimal point
M2.05
0110 0101
6 5
Before decimal point
M2.06
1000 0111
8 7
Before decimal point
M2.07
1111 1111
Operational sign
Fig. 5-8: Marker Use According to CVT Command
Example:
Loading the Decade Switch
So1_bef_AE.WMF
Fig. 5-9: Loading the Decade Switch
Commands
Comment
APE Q1.01 22220001
Select decade 4 10
0
WAI 00.02
Wait until level is stable
CIO I1.01.0 M2.03.0 04
Load value of the 1
st
decade switch
APE Q1.01 22220010
Select decade 3 10
1
WAI 00.02
Wait until level is stable
Summary of Contents for CLM1.4
Page 117: ...7 20 Functions CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 205: ...9 42 Interfaces CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 213: ...10 8 Command Communications CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 233: ...11 20 Diagnostic Messages CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Page 272: ......
Page 273: ...Printed in the U S A Barcode...