Chapter 3 Programming
3 – 14
I/O address example of 64 points output module
Bit number
BOOL
BYTE
WORD
DWORD
LWORD
Bit 0
%QX7.0
Bit 1
%QX7.1
Bit 2
%QX7.2
Bit 3
%QX7.3
Bit 4
%QX7.4
Bit 5
%QX7.5
Bit 6
%QX7.6
Bit 7
%QX7.7
%QB7
Bit 8
%QX6.0
Bit 9
%QX6.1
Bit 10
%QX6.2
Bit 11
%QX6.3
Bit 12
%QX6.4
Bit 13
%QX6.5
Bit 14
%QX6.6
Bit 15
%QX6.7
%QB6
%QW3
Bit 16
%QX5.0
Bit 17
%QX5.1
Bit 18
%QX5.2
Bit 19
%QX5.3
Bit 20
%QX5.4
Bit 21
%QX5.5
Bit 22
%QX5.6
Bit 23
%QX5.7
%QB5
Bit 24
%QX4.0
Bit 25
%QX4.1
Bit 26
%QX4.2
Bit 27
%QX4.3
Bit 28
%QX4.4
Bit 29
%QX4.5
Bit 30
%QX4.6
Bit 31
%QX4.7
%QB4
%QW2
%QD1
Bit 32
%QX3.0
|
|
Bit 39
%QX3.7
%QB3
Bit 40
%QX2.0
|
|
Bit 47
%QX2.7
%QB2
%QW1
Bit 48
%QX1.0
|
|
Bit 55
%QX1.7
%QB1
Bit 56
%QX0.0
|
|
Bit 63
%QX0.7
%QB0
%QW0
%QD0
%QL0 LSB
MSB
Following 5 different programs in ST are the same meaning.
%QX7.0:=1;
%QB7 :=1;
%QW3 :=1;
%QD1 :=1;
%QL0 :=1;