<Toc> <Ind>
<5. Sample Programs >
5-3
IM 34M6H54-01E
1st Edition : Feb.01,1999-00
(0027)
Input:Falling,ring maximum value = 10,continue on return to 0,with filter
(0026)
*** CH4 ***
(0028)
Output:Normally OFF
(0029)
00036
(0030)
(0031)
(0032)
(0033)
(0034)
(0035)
Set to eliminate pulses below 32.7 ms.
(0037)
(0038)
(0043)
(0044)
(0045)
Preset value 1
Output function
Preset value 2
Input function
Output function
Input filter constant
Enable CH1
Enable CH2
Enable CH3
Enable CH4
M0035
$4100 D4004
MOV
$B
D4003
MOV
29 4
4
11 D4002
MOV
*** Setting filter constant ***
WRITE D4001
0 D4001
MOV
25
4
4
WRITE D3001
M0035
14 D5001
MOV
33 1
4
WRITE D5001
D0001 4
1
READ
4
*** Start all CH count ***
(0036)
00047
(0039)
00052
(0040)
00054
(0041)
00056
(0042)
00058
00060
*** Read all CH counter values ***
*** CH1 data 16-bit
→
32-bit conversion ***
(0047)
(0048)
Store as 32-bit data into D00011/D00012
Read all counter values in D0001 to D0004
When counter value returns to 0,add 1 to upper word
(0046)
Y00449
SET
M0035
M0033
Y00453
SET
M0035
Y00457
SET
M0035
Y00461
SET
M0035
(0025)
Program name:XSO4
Title:
Date:95/09/29 18:21:2 Page: 2
Processing carry
Reset input relay
M0033
(0049)
00062
(0050)
00064
(0051)
D0001
D0011
MOV
X00403
INC
D0012
Y00435
↑
FC0501_2.EPS
Summary of Contents for F3XS04-3N
Page 2: ...Blank Page ...
Page 8: ...Blank Page ...
Page 10: ...Blank Page ...
Page 56: ...Blank Page ...
Page 66: ...Blank Page ...