LG G3F-AD3A User Manual page 70

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 MK Programming
4) Programming
F0012
F0010
= D0021 00000
= D0023 00000
= D0025 00000
number
PUT
0000 00000 h0015 00001
PUT
0000 00001 00000 00001
PUT
0000 00002 h0014 00001
PUT
0000 00005 00100 00001
PUT
0000 00007 00050 00001
PUT
0000 00011 00001 00001
number
GET
0000 00012 D0012 00001
GET
0000 00014 D0014 00001
GET
0000 00016 D0016 00001
GET
0000 00021 D0021 00001
GET
0000 00023 D0023 00001
GET
0000 00025 D0025 00001
> 02000 D0012
< 03600 D0014
<= 02000 D0016
>= 03600 D0016
= 02800 D0016
8 - 4
Slot
Buffer
Data
memory
Slot
Buffer
Destination
memory
of data
P0010
P0011
P0012
P0013
END
No. of
words
Channel to be used
(use channel 0, 2, and 4)
Assign analog input
range (DC4 ~ 20mA)
Assign average
processing channel
(channel 2 and 4)
Set Averaging count of
channel 2 (100 times)
Set Averaging count of
channel 4 (50 times)
Validate the new setting
value
No. of
words
Read the A/D converted
value of channel 0, and
store it into D0012
Read the A/D converted
value of channel 2, and
store it into D0014
Read the A/D converted
value of channel 4, and
store it into D0016
Read the error code of
channel 0, and store it
into D0021
Read the error code of
channel 2, and store it
into D0 023
Read the error code of
channel 4, and store it
into D0025
Turn on P0010 when
D0012 is greater than 2000
and no error at Ch 0
Turn on P0011 when
D0014 is less than 3600
and no error at Ch 2
Turn on P0012 when
D0016 is 2000~3600 and
no error at Ch 4
Turn on P0013 when
D0016 is 2800 and no
error at Ch 4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents