PCA2 D1x Out of 26 737 E
PCA2 D1x Out of 26 737 E
PCA2 D1x Out of 26 737 E
General
To control the D12 module 3 digital PCD outputs are required. For every
additional D12 module only 1 additional output is needed.
4-digit display
0V
PCA2.D12
+24V
screw terminals M3
(Vp)
EN
D
Clk
Depth : 90 mm
Technical data
Digit height 10 mm
Current at 24 VDC 60 mA
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420
Programming example
Clock PCD-output O 45
Data PCD-output O 46
Enable PCD-output O 47
Flags F 401 - 420
Register R 500
For instruction list programming ( IL ) this task can be written in the form
shown below, where the main emphasis is on program block PB 10.
PCD program :
CSB 1
ECOB
; --------------------------------------------------------
SB 1 ; GRAFTEC program
(0) ()
3
BA equ O 45 ; Basisadresse
DIGOR 4
R 500
F 405
MOV R 0 ; ¦
N 0 ; ¦ delay
R 0 ; ¦ instruction
N 0 ; ¦
INI K 19
JR H LOOP
ACC H
SET BA+2 ; ENABLE
EPB
Notes :
Upper display
Lower display
General
Dimension
Frame : 52 x 52 mm
Panel cutout : 48.5 x 48.5 mm
Depth : 120 mm
Voltage supply 0V → 0V
Technical data
500 523
F o o o o o o o o o o o o o o o o o o o o o o o o upper
MSB LSB MSB LSB display
100'000 10'000 1'000 100 10 1
524 547
F o o o o o o o o o o o o o o o o o o o o o o o o lower
MSB LSB MSB LSB display
100'000 10'000 1'000 100 10 1
Programming example
Using a PCA2.D14 display module, show time of day in the upper display
and date on the lower. The data is taken from the PCD hardware clock.
Clock PCD-output O 45
Data PCD-output O 46
Enable PCD-output O 47
Flags F 500 - 547
Registers R 200 et R 201
Counter C 999
For instruction list programming ( IL ) this task can be written in the form
shown below, where the main emphasis is on program block PB 20.
ECOB
; --------------------------------------------------------
ACC H
RES BA+2 ; ENABLE
SEI K 0
L1: ACC H
SET BA+1 ; DATA
LDL C 999
4
L2: SET BA+0 ; CLOCK
RES BA+0 ; CLOCK
MOV R 0 ; ¦
N 0 ; ¦ delay
R 0 ; ¦ instruction
N 0 ; ¦
DEC C 999
STH C 999
JR H L2
ACC H
LDL C 999
16
L3: STHX F 500
OUT BA+1 ; DATA
ACC H
SET BA+0 ; CLOCK
RES BA+0 ; CLOCK
MOV R 0 ; ¦
N 0 ; ¦ delay
R 0 ; ¦ instruction
N 0 ; ¦
INI K 47
JR L L4
DEC C 999
STH C 999
JR H L3
JR L L1
L4: ACC H
SET BA+2 ; ENABLE
EPB