
Chapter 8. MK PROGRAMMING
8 - 5
8.2.2 Programming for Display of A/D Conversion Value and Error Code on BCD Display.
(1) System Configuration
P0000
)
P0001
A/D conversion value storage P0030~P0037 Digital BCD display(Error code)
P0002
A/D conversion on BCD
P0003 P0010 ~ P0023
Error code on BCD
(2) Initial settings
①
Enabled channel: channel 0
②
Time average processing specification:100ms
③
Data output type setting: 0 to 16000
④
Analog input: current input( DC 4 to 20 mA)
(3) Descriptions of the program
①
A/D conversion module is initialized when P0000 turns on.
②
A/D conversion value is stored to D39 and error code is stored to D56 when P0001 turns on.
③
A/D conversion value is displayed on the digital BCD display when P0002 turns on.(P0030 ~ P0037)
④
Error code is displayed on the digital BCD display when P0003 turns on.(P0010 ~ P0023)
GM3 - K7P - G3I - G3Q - G3Q - G3F –
PA2A 30AS D22A RY4A RY2A AD4B
I/O Word P0001 Slot 3
No. P000 ~ P002 P003 P004
Digital BCD display
(A/D conversion value)
Channel 0 (DC 4 ~ 20 mA)
Initial setting