
Chapter 8. MK PROGRAMMING
8 - 3
8.2.1 Programming for Distinction of A/D Conversion Value.
1) System Configuration
2) Initial Settings
3) Descriptions of the Program
(1) Digital value less than 12000 of channel 0 turns P0010 on.
(2) Digital value more than 13600 of channel 2 turns P0011 on.
(3) Digital value 12000 or more and 13600 or less of channel 4 turns P0012 on.
(4) Digital value 12800 of channel 4 turns P0013 on.
Remark
- In the Initial setting
1) At the part of (3), if channel 0 is enabled to the filter processing, channel 0 to 3 will be enabled to the filter processing in block.
2) At the part of (4), if channel 0 is enabled to the filter constant, channel 0 to 3 will be enabled to the filter constant of 50 in block.
3) At the part of (5), if channel2 and 4 are enabled to the average processing, channel 0 to 3 and 4 to 7 will be enabled to the average
processing in block.
4) At the part of (6),if channel 2 is enabled to the number average value of 100, channel 0 to3 will be enabled to the number average value of
100 in block.
5) At the part of (7), if channel 4 is enabled to the time average value of 200ms, channel 4 to 7 will be enabled to the time average value
of 200 ms in block.
No.
Item
Initial setting
Buffer
memory
address
The value of
words to write
Remark
1
Available channel
Channel 0,2,4
0
h0015 or 00021
2
Data output type
- 192 ~ 16191
1
h0000 or 00000
3
Filter processing
enable/disable specification
Channel 0
2
h0001 or 00001
4
Filter constant setting
50
3
h0032 or 00050
5
Average processing
enable/disable specification
Channel 2,4
7
h0003 or 00003
Ch2 : bit0 On
Ch4 : bit1 On
6
Number/time average
specification
Average number : ch2
Average time : ch4
8
h0002 or 00002
Ch2 : bit0 Off
Ch4 : bit1 On
Average number : 100
9
h0064 or 00100
7
Number/time average
processing specification
Average time : 200ms
10
h00C8 or 00200
8
Analog input
Input current
(DC –20 ~ 20mA)
-
-
Other
Set data specification
-
13
h0015 or 00021
8.2 Application Programming
GM3- K7P- G3F - G3Q-
PA1A 30AS AD4A RY4A