Special Functions
6-5. Frequency g
Testin
Function and Action
16 bits instruction: 32 bits instructionFRQM -
Suitable Model:
XC3、XC5
Suitable device
Word
Device
Bit
Device
X
Y
M
S
T
C
Dn.m
S3·
D FDDM
FRQM K20 D100 K1 X003
X000
D·S1·
S2· S3·
S1: Pulse cycle number (The sampled pulse cycle number in one scan cycle.)
perands: D, CD, TD
D: Testing result. Operands: D, CD, TD
S2: Frequency division choice. Bound: K1 or K2;
Whe 1, the bound is: no less than 9Hz, precision bound: 9~18KHz.
When the frequency division is K2, the bound: no less than 300Hz, precision bound:
300~400KHz。
S3: pulse input X number
z In frequency testing, if choose frequency division as K2, the frequency testing precision is
z
O
n the frequency division is K
higher than frequency division K1.
When X000 is ON, FRQM will test 20 pulse cycles from X003 every scan cycle. Calculate
the frequency’s value and save into D100. Test repeatedly. If the tested frequency’s value is
smaller than the test bound, then return the test value as 0.
DX DY DS TD CDK/H
S1·
S2·
D·
S1·
The correspond X number with the pulse output of frequency testing:
Model X
14 points X2、X3
24/32 points X1、X11、X12
XC3 series
48/60 points X4、X5
32 points X3
XC5 series
48/60 points X1、X11、X12
14