LG G3F-AD3A User Manual page 72

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 MK Programming
4) Programming
P0000
M0000
M0000
P0001
Slot
Buffer
number
memory
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
Slot
Buffer
number
memory
GET
0000 00008 D0008 00001
GET
0000 00013 D0013 00001
P0002
BCD
8 - 6
No. of
Data
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
Set M0000 to execute
SET M0000
above program block
only one time
Destination
No. of
of data
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
Convert digital value to
BCD format and output it
D0010 P001
to P001 (7 segment
display)
END

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents