5-2
<Toc> <Ind>
<5. Sample Programs >
IM 34M6H54-01E
5.1
Sample Program Using Ladder Application
Instructions
(0002)
Input:rising,ring maximum value $FFFF,continue on return to $0,no filter
(0001)
*** Setting CH1 ***
Program name: xs04
slot 4 of XS04
Title:
Perform setting for each channel and start counting
Date: 95/09/29 18:21:20 Page : 1
(0003)
Output:counter
Input:Rising,ring maximum value = Preset value 2-1,stop on returning to zero,with filter
Output:Counter value = Preset value
(0004)
00001
(0013)
00014
(0005)
(0006)
(0007)
(0008)
(0009)
(0010)
(0011)
*** Setting CH2 ***
(0012)
(0014)
(0015)
(0016)
(0017)
(0018)
(0019)
(0020)
Preset value 1
Preset value 2
Input function
Output function
Initialize 32 bit
region
Preset value 1
Preset value 2
Input function
Output function
M0035
$40
D1004
MOV
$0
D1003
MOV
17
4
4
0
D0011
MOV
$8000
D1002
MOV
WRITE D1001
$4000
D1001
MOV
M0035
$1000
D2004
MOV
$E
D2003
MOV
21
4
4
20000
D2002
MOV
WRITE D2001
10000
D2001
MOV
Input:Falling,rising maximum value $FFFF,continue on return to zero,with filter
Out:Counter stopped ON
*** Setting CH3 ***
(0021)
00025
(0022)
(0023)
(0024)
Preset value 1
Preset value 2
Input function
M0035
$2080
D3004
MOV
$9
D3003
MOV
0
D3002
MOV
0
D3001
MOV
FC0501_1.EPS
1st Edition : Feb.01,1999-00
Содержание FA-M3 Series
Страница 2: ...Blank Page...
Страница 8: ...Blank Page...
Страница 10: ...Blank Page...
Страница 56: ...Blank Page...
Страница 66: ...Blank Page...