LG G3F-AD4A User Manual page 83

Programmable logic controller
Table of Contents

Advertisement

Chapter 8. MK PROGRAMMING
(4) Programming example
P0000
0
Initial setting
P0001
A/D conversion value
Store command
P0002
A/D conversion value output command
Error code output command
00003
00000
[PUTP
00003
00001
[PUTP
00003
00020
[PUTP
00003
00022
[PUTP
00003
00038
[PUTP
[GET
00003
00039
[GET
00003
00056
[ DBCD
D0039
P0003
[ BCD
D0056
8 - 6
Channel 0 enabled
00001
h0001
]
00002
Input type setting to current input and
00000
]
data out type setting to 0 to 16000
00002
00001
]
Average processing setting of channel 0
and time average processing of channel 0
00001
00100
]
Set time average to 100ms of channel 0
00001
00001
]
Set data specification of channel 0
D0039
00001]
Store A/D conversion value on D39
D0056
00001]
Store error code of channel 0 to 3 on D56
Convert data of D39 into P0010 to P0023
P001 ]
on BCD display
Convert data of D56 into P0030 to P0037
P003 ]
on BCD display
[ END ]

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G3f-ad4bG4f-ad2a

Table of Contents