Example Programming - LG G3F-AD3A User Manual

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 MK Programming

8.2 Example programming

8.2.1 A program for comparison of A/D converted value
1) System configuration
GM3-
K7P-
PA2A
30AS
2) Initial setting for A/D module
No
1
Channel to be used
2
Analog input type and range
3
Averaging processing enable
4
5
3) Description of program
① Turns on P0010 bit when the digital value of channel 0 is less than 2000
② Turns on P0011 bit when the digital value of channel 2 is greater than 3600
③ Turns on P0012 bit when the digital value of channel 4 is in the range of 2000 ~ 3600
④ Turns on the P0013 bit when the digital value of channel 4 is 2800.
G3F-
G3I-
G3Q-
AD3A
D22A
RY4A
Item
Averaging count
Validate setting
G3Q-
(A/D module is mounted on slot 0)
RY4A
Buffer memory
Setting
address
Ch 0, 2, 4
DC4~20mA
Ch 2, 4
Ch2 : 100 times
Ch 4 : 50 times
8 - 3
Data to be
written
0
h0015
1
h0000
2
h0014
5
h0064
7
h0032
11
h0001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents