Chapter 8 mk programming – LG G4F-AD3A User Manual
Page 72
Chapter 8 MK Programming
8 - 6
4) Programming
PUT 0002 00000 h0001 00001
PUT 0002 00001 00000 00001
PUT 0002 00002 h0001 00001
PUT 0002 00003 00010 00001
PUT 0002 00007 00001 00001
GET 0000 00008 D0008 00001
GET 0000 00013 D0013 00001
Slot
number
Buffer
memory
Data
No. of
words
Channel to be used
(use channel 0)
Assign digital output
range (-48 ~ 4047)
Assign average
processing channel
(channel 0)
Set Averaging count of
channel 0 (10 times)
Validate the new setting
value
Slot
number
Buffer
memory
Destination
of data
No. of
words
Read the A/D converted
value of channel 0, and
store it into D0008
Read the error code of
channel 0, and store it
into D0013
P0001
P0000
SET M0000
M0000
M0000
Set M0000 to execute
above program block
only one time
P0002
BCD D0010 P001
Convert digital value to
BCD format and output it
to P001 (7 segment
display)
END