Professional Documents
Culture Documents
Users MANUAL
Authored By:
Programming
Software
creator for
Hitachi PLC
products
Produced by:
INDEX:......................................................................................................................................... 282
L serie H
MANUA
This manual contains information which is common for all PLC types in the H family.
The differences between the different PLC types are described in separate parts.
- Addition to H20-H64 (page 161)
The different hardware units that belong to H20-H64 are described here as
INPUT 0 1 2 3 4 5 6 7 8 9 10 11 8 9 10 11 8 9 10 11 8 9 10 11
POW
RUN
ERR INPUT 0 1 2 3 4 5 6 7 8 9 10 11 8 9 10 11 8 9 10 11 8 9 10 11
R.CL POW
RUN
ERR INPUT 0 1 2 3 4 5 6 7 8 9 10 11
well as the specific programming instructions for H20-H64 and the addressing
R.CL POW
RUN
ERR INPUT 0 1 2 3 4 5 6 7 8 9 10 11
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111 106 107 108 109 110 111
R.CL
POW
RUN
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111 106 107 108 109 110 111 ERR
R.CL
in detail.
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111
General:
For programming procedure, start with the common parts of the manual and refer to the additional part
when references are given. For description of the special modules (hardware, connection, addressing and
programming) go directly to the special additional chapter.
References to the different PLC types are often made, e.g. H302-H2002. (which refers to the CPUs H302,
H702, H1002 and H2002) or e.g. HB-H250 (which refers to the CPU:s H20, H28, H40, H64, H200 and
H250) as the following order is valid:
H20, H28, H40, H64, H200, H250, H252, H300, H700, H2000, H302, H702, H1002, H2002.
H20-H64 are also called HB (for H Board type)
Example The grey field in the bottom of the table says that it is only valid for some CPUs, while the
instructions in the white field are common for all PLC-types in the H-family and it is described on page 20
in the common part of the manual.
d=S1 == S2 Comparison If S1 = S2 then d=1 66
equal else d=0
d=S1 S == S2 -"- with If S1 = S2 then d=1 Not valid for 66
+/- sign else d=0 HB-H200
A dynamic leader is important, but a company is only as good as the people it employs (and
empowers). Lighthouse PLCs, Inc. is fortunate to be able to draw on the resoures of some very
talented people, essential to meeting customer needs.
One important thing has always remained a constant; the company's committment to people and
conviction to provide extraordinary service and quality products through knowledge and
teamwork.
Lighthouse PLCs, Inc. is proud to be the sole authorized distributor for Hitachi programmable logic
controllers and Actron programming software for North America.
In the beginning these products only took care of logic combinations, as the relay technique.
Therefore the word Logic was placed in-between "Programmable" and "Controller".
As the micro processor technique itself offered more possibilities than to handle pure logic it
was natural to introduce arithmetic instructions. Many countries decided therefore to delete
the word Logic in the name. (this happened in the beginning of the 1980s). The
abbreviation PC very soon came into a conflict with another abbreviation. That was PC
for personal computer. Therefore most countries returned to PLC even if this abbreviation
is not perfect.
The PLC systems are built around standardised modules. These are manufactured in very
large quantities. Often it is an advantage economically to use this technique instead of
special designed products even if it is possible to optimise the amount of components in the
special solution.
The units are well tested and the failure frequency is low. The documentation is standardised
and it can be understood by many people. There are also spare parts available in most
countries.
PROGRAM
X002 X013 R034 Y102
Y102 M002
16 outputs
in a row
16 inputs
e.g. an
in a row
analog
M-memories/ output
e.g. an
WM-memories WR-memories R-memories
analog
input
INPUTS
OUTPUTS
3.2 Abbreviations:
b bit In-/Output or memory ("1" or "0")
X Input (The inputs can be treated as WX- Words, see below)
Y Output (The outputs can be treated as WY- Words, see below)
W Word (16 bits in a row) *1
D Double words (32 bits in a row). Not valid for HB-H200 *2
M Bit memory, which is inside the area shared between Bits and Words
(M-memories and WM-memories are in the same memory area.)
R Memory bit in an area with only bit memories.
WR Memory word in an area with only word memories
L Memory area, which are shared between two or more Link connected
CPUs.
(L-memories and WL-memories are in the same memory area.)
TC Timers and Counters current values.
TD,CU etc Different types of Timers and Counters
*1 16 bits in a row gives a decimal value 0-65,535. The value in Hexadecimal is 0-FFFF
*2 32 bits in a row gives a decimal value 0-4,294,967,295. The value in Hexadecimal is 0-FFFFFFFF
3.4 Addressing:
etc.
CPU
etc. etc.
Example: The start addresses on a HB type with expansion are described below.
The inputs on the base unit corresponds to slot 0 (X0 - X39) and the outputs correspond to slot 1
(Y100 -Y123).
An expansion unit corresponds to Unit no. 1.
The inputs on the expansion unit get the slot no. 0 on unit 1 and become therefore number X1000 -X1039.
The outputs on the expansion unit get the slot no. 1 on unit 1 and become therefore number Y1100 -Y1123.
When expansion units are used these X300- or Y300- X400- or Y400-
correspond to correspond to
slots get no. 3 and upwards. X0- correspond to slot no. 0 slot no 4
slot no 3
(Slot no. 2 is reserved on the basic unit
for usage on the Link version of the
HB called HL)
Example: The start addresses on a H200 are shown below. The bit addresses give the connection on the board. The
third digit from the end gives the slot no. and the forth from the end gives the unit no. (0 for the base unit, 1 for the
first expansion etc.). For a word address, e.g. an analog input the word no. is given as the last digit and the slot no. as
number two from the end etc.
Input Output
Unit no. Unit no.
Slot no. Slot no.
Input no. Output no.
Memory address
HB/H200 H250-H252, H300-H2000
Bits /Words Bit M 0-FFF 0-3FFF
common Word WM 0-FF 0-3FF Hexa-
memory Double- DM - 0-3FE deci-
word
Bits /Words Bit R 0-7BF 0-7BF mal
Separate Word WR 0-3FF 0-3FF (1024 ) RAM-04H, RAM-08H
memory 0-43FF (17408 ) RAM-16H, ROM-16H
0-C3FF (50176 ) RAM-48H, ROM-48H
Double- DR - 0-3FE (512 ) RAM-04H, RAM-08H
word 0-43FE (8704 ) RAM-16H, ROM-16H
0-C3FE (25088 ) RAM-48H, ROM-48H
Special Bit R 7C0-7FF 7C0-7FF (64 )
memory Word WR F000-F1FF F000-F1FF (512 )
DR0-DR3FE and DR400-DR43FE are different areas. Therefor DR3FF is not possible.
Memory areas
where the CPU Link
reads memory
information, area:
which can be
overwritten Bit (L)
other CPUs
or
Word (WL)
Memory areas
where the CPU
writes
information,
which can be
read by other
CPUs Link connected
CPUs
Start and end addresses for the write area of the PLCs are defined during the programming. You will do
this definition under <Setup-PLC>, see page 94 ,. See also under the additional part for HB page 161,
H200 page 188, H300-H2002 page 264.
CPU Status
WRF015
The most important special memories (Complete list, see appendix page 278)
Normal scan R7C0 Stop of RUN when maximum "1" Stop if the maximum time is exceeded
time is exceeded in a normal "0" No stop if the maximum time is exceeded
program scan
Periodic scan R7C1 Stop of RUN when maximum "1" Stop if the maximum time is exceeded
time is exceeded in a periodic "0" No stop if the maximum time is exceeded
program scan
Interrupt scan R7C2 Stop of RUN when maximum "1" Stop if the maximum time is exceeded
time is exceeded in an interrupt "0" No stop if the maximum time is exceeded
program scan
!!
R7C8 Severe error on the processor
R7E9 STOP or RUN "1" stops the CPU, "0" makes RUN possible
R7F3 Error in calculation during RUN See detailed information in the word WRF015
R7F4 100110101 Data Error Register (DER) Discovered during execution of arithmetic
100011101 instructions.
R7F8 Transfer of the clock to the preset When the flag goes high, the clock values are
registers transferred to WRF01B-WRF01F
R7F9 Flag, which presets the real time When the flag goes high, the values in WRF01B-
clock WRF01F are transferred to the real time clock.
R7FA 30 s adjustment of the real time When the flag goes high the clock is adjusted
clock. forward 30 s
4 Programming :
Y102 M002
natural way of programming therefore is to draw ladder diagram in Actsip-H (or on the
graphic hand programmer).
The other main alternative is Grafcet programming with ActGraph. This generates
ladder diagram automatically, which is interpreted by the PLC.
It is also possible to symbolise the logic with instruction code. But as the internal storage in the PLC is
ladder code the instruction code causes limitations as in other PLC brands, which utilise instruction code as
the internal program storage.
Therefore ladder- or grafcet programming is recommended.
When programming in ladder it is enough to draw closing or breaking contacts and to connect these with
lines.
4.2 Symbols:
4.2.1 Block
With "block" is meant a Ladder Block, which is a complete unit and ended by one or more output
functions or an arithmetic box.
The program consists of a number of such blocks. Normally you can regard these blocks as they are
working in parallel with each other. There are of course exceptions to this rule.
There are two examples of blocks below.
Block 1
Block 2
4.2.2 Branch
A block can consist of one or more branches.
Branch 1 Branch 3
Branch 2 Branch 4
AND OR
For further comparisons with Logic boxes and Boolean algebra, see appendix.
Y102 M002
Y102 M002
4.2.4 Inverting:
Inverting.
Changes the logic condition. NOT
ON becomes OFF /
OFF becomes ON
Y102 M002
The memory, which is addressed as the SET output is OFF as long as the condition is
OFF. When the condition is TRUE the memory is set ON and remains ON until the
corresponding RST- output is active.
A B C
M066 is OFF and the condition The SET-input (X002) goes ON The SET- input (X002) goes OFF
(or SET-input) X002 is OFF. and M066 is set ON. but M066 remains ON.
X002 M066
SET
A B C
M066 is ON and the condition (or The RESET-input (X002) goes The RESET-input (X002) goes
RESET-input) X003 is OFF. ON and M066 is reset to OFF. OFF but M066 remains OFF.
X003 X003 M066 X003 M066
RST RST
If both SET and RESET are active, then the last executed instruction decides the status.
Instead of repeating the same condition, which is in common for several blocks you can create the common
condition and let it end with a MCS-output. the condition will be valid as a super condition for all
following blocks until a MCR-output is found.
The common logic condition for a part of a program is written before the MCS-output. Every MCR has to
correspond to a MCS with the same number.
The MCR-output shall be given without logic condition.
MCS and MCR can be programmed in up to 8 levels (a MCS-MCR pair within another MCS-MCR pair).
Copyright Actron, A.B. 1994 27
Programming
The same number of MCS-MCR can be used again later in the program (when the previous usage is ended
with a MCR)
Positive Negative
edge edge
DIF contact
ON
DFN contact
ON
Example
Y102 2 Y102 5
Y102 3 Y102 6
X002
X013
DIF10
Y102
1 23 4 5 6
The address on the DIF- (DFN-) function is unique and it must not be used more than once.
Comparisons can be a part of the block in the same way as contact symbols. The result of a comparison
will always be true (ON) or false (OFF).
(see also Comparison instructions page 44.)
X002 R034
S1 WR010 = WM000 + 45
= WM000 = WR100 (WM001)
S2 SHL ( WM20 , 4 )
X002 TD15
3.5 S
TD15 Y102
X014 CL16
CU16 Y102
R014
Self hold memory
The self hold can also be generated with a SET and a RESET function, see page 26.
4.2.18 Timers :
page
TD ON Delay Timer 0-255 34
(Off Delay timer, see page 36)
When you are programming a timer you have to decide the preset time. You type this as a decimal number.
If you type 1.23 it is shown as 123 x 0.01,
(12.3 is shown as 123 x 0.1) etc.
For H300-H2000 (not for HB-H252 and H302-H2002) the time base 0.01 can only be used on timer 0-
63.
ON Delay Timer TD
When the input of the timer is activated the timer begins to run. When the timer has reached its preset
value the timer output goes High. This output can be used as a contact function by other circuits. When the
timer input goes off the timer returns to its original status.
0 s 0 s 0 s
Monostable timer MS
0 S
4.2.19 Counters:
Page
CU Up counters 0-511 40
Up Counter CU
The up counter counts up on X002 CU11
the positive edge of the input
pulse and it is reset with a CL
4
pulse with the corresponding X005 CL11
number. As long as the CL
pulse is ON the counter
remains on zero. When it has
reached its preset value the CU11 Y102
counter output goes high.
Up-/Down Counter
An Up-/Down Counter
consists of a up counting
input, a down counting
input and a reset input.
When the counter
reaches its preset value
the output goes high.
The output is called CT
with the same number as
the counter.
As long as the reset
input is high the counter
remains reset.
Up counting and
down counting at the
same time . This
means no counting
Preset value=4
Not valid
for
A Ring counter counts up to X002 RCU9
its preset value. But instead
of becoming this value it 4
HB/
H200 returns to zero. In the same
moment it gives a short X005 CL9
pulse on the output. This
pulse stays only one
program scan. RCU9 Y102
As long as the reset input is
high the counter stays on
zero.
X002
X005
(CL11)
RCU9
4 (Y102)
3
2
1
0
The counter The counter is
reaches its preset reset and stopped
value and returns and the counter
to zero. output goes low.
The counter
output goes high
during one
program scan
Ring counter
When a timer is written with decimals it is shown in the following way: 1235 x 0.1 s in stead of 123.5 s or
1235 x 0.01 s in stead of 12.35 s
If a higher preset value is wanted. use cascade connection. See program example
The current value (the running value) of a timer or a counter can always be detected and used in a
comparison box or in an arithmetic box during run if you are using a type of word, called TC. The number
of the TC corresponds to the number of the timer or counter. (See also under separate program examples.)
4.3.3 Arithmetics
Symbol Instruction Explanation Bit/ Page
name Word * 1
d=S1 + S2 Binary d is the binary sum of S1 and W d: 60
addition S2 WY,WR,WL
,WM
d=S1 B + S2 BCD addition d is the BCD sum of the 62
BCD values S1 and S2
d=S1 - S2 Binary d is the binary difference S1, S2: 63
subtraction between S1 and S2 WX,WY,W
R,
d=S1 B - S2 BCD d is the BCD difference WL,WM,TC 64
subtraction between the BCD values S1 ,
and S2 Constant
d=S1 * S2 Binary d is the binary product of S1 64
multiplication and S2
d=S1 S* S2 -"- with +/- -"- with +/- signs not HB D : 66
signs S = "Sign" /H200
d=S1 B * S2 BCD d is the BCD product of the Not valid d: 65
multiplication BCD values S1 and S2 for DY,DR,DL,
DM
d=S1 / S2 Binary d is the binary quotation HB/ S1, S2: 66
division between S1 and S2 H200 DX,DY,DR,
d=S1 S/ S2 -"- with +/- -"- with +/- signs Not DL,DM, 68
signs S = "Sign" valid for Constant
HB/
H200
d=S1 B / S2 BCD division d is the BCD quotation 67
between the BCD values S1
and S2
*1 b = bit
W=Word (16 bits)
D=Double Word (32 bits)
BSET (d,n) Bit set "1" is set in bit no "n" in the word "d" W 73
BRES (d,n) Bit Reset "0" is set in bit no "n" in the word "d" D 74
BTS (d,n) Bit test The value ("1" or "0" in bit no "n" in not for HB 75
the word "d" is copied to C (Carry bit) H200/
TRNS Transmit and receive data 10 ms . (Is used for ASCII, SIO, POSIT,CLOCK) 274
RECV Receive data 10 ms . (Is used for ASCII, SIO, POSIT,CLOCK) 274
QTRNS Transmit and receive data 1 scan . (Is used for ASCII, SIO, POSIT,CLOCK) 274
QRECV Receive data 1 scan . (Is used for ASCII, SIO, POSIT,CLOCK) 274
ADRPR Address program 274
ADRIO Address I/O 274
4.4.1 Copy
Example:
When X100 goes high the X100 DIF10
WR010 = WX000
value of WX000 is copied M10 = X101
to WR010 and the status
of input X101 is copied to
the bit M10
Example:
When input X200 WR1FF
goes high the input WR1FE
word WX address 0 WX10
+ the content of WX0F
WR101 is copied to WR107
WR100. WR106
WR105 WX05
If WR101 is 4 WR104 54132 WX04
WR103 WX03
then the content of
WR102 WX02
WX04 is copied to
WR101 4 WX01
WR100. WR100 54132 WX00
X200 DIF10
WR100 = WX000(WR101)
Example:
When input X200 WR1FF 3
goes high the input WR1FE 5
word WX address 0 + WX10
the content of WR1FF WX0F
is copied to the WR WR107
address 100 + the WR106
content of WR1FE. WR105 54132 WX05
WR104 WX04
If WR1FF is 3 and
WR103 54132 WX03
WR102 WX02
WR1FE is 5
WR101 WX01
then the content of WR100 WX00
WX03 is copied to
WR105. X200 DIF10
WR100(WR1FE) = WX000(WR1FF)
4.4.3 Arithmetics
Series H works normally binary. This means that a normal Word gets a value 0-65535. decimal, (0-FFFF
hexadecimal or 0-1111 1111 1111 1111 binary). This is more effective than BCD arithmetics as it is only
possible to represent the BCD values as
0-9999 and the instruction time will be longer.
If e.g. you are reading from a BCD coded thumb wheel or if you are connecting BCD coded display
segments on the outputs, it is practical to use BCD arithmetics to avoid two conversions.
There are three flags, which give information about how the operations went:
"C" (address R7F0) Carry flag gives information about an extra bit in the calculation
which e.g. can be used to count up or down a significant digit.
"Of" (address R7F1) Overflow gives information about that the operation is wrong.
"DER"(address R7F4) Data Error Register
.
Signed (or arithmetics with +/-sign) means that instead of interpreting 0000 - FFFF as 0-
65535, 0000-7FFF means 0- +32767 and 8000-FFFF means -32768- -1
Not In this way it is possible to count with both
valid positive and negative values. In double word FFFFFFFE -2 (-2 dec)
for HB / handling this means that: + 0 0 0 0 0 0 1 0 +10 (16 dec)
H200 0000 0000 -7FFF FFFF corresponds to = F0000000E + E (14 dec)
0 - +2147483647 and 8000 0000- FFFF FFFF
corresponds to - 2147483648 - -1.
Example
of binary X200
arithmetics: WX000
0 0 0 F 0 1 5 + 00000000000001111 WX000
binary number.
3 0 = 00000000000011110 WR100
Example
of BCD X200
arithmetics: WX000
X200 DIF10
The addition is 0 0 1 5 WR100 = WX000 B +WX001
WR100
internally made
0030
as BCD and the WX001
c 15 WX001
00000000000010101
result will be a 0 1 5 + 00000000000010101 WX000
BCD number. 0 0 1 5
3 0 = 00000000000110000 WR100
Not valid
For double word addition, "C" goes High if S1+S2 >FFFFFFFF or decimal S1+S2>
for HB / 4294967295.
H200 If Signed addition is used and S1+S2 gives a significant result another flag called "Of"
(Overflow, on the address R7F1 ), goes High.
If double word addition is made without using the +/-, the Of flag is insignificant.If
S1m is the most significant bit in S1, S2m is the most significant bit in S2 and dm is
the most significant bit in d, following Boolean expression is valid:
C (R7F0) =S1m*S2m+S1m*dm+S2m*dm
Of (R7F1) =S1m*S2m*dm+S1m*S2m*dm
C becomes 1 1 1 1 1 9 9 9 9
WR100 WR100
WX001
3456 WX001
0000
c c
2 3 4 5 0 0 0 0 1 1
When the difference S1 - S2 < 0 the carry flag C is set. This is found on address R7F0. This can be
used later in program to decide if the subtraction went well.
Example of a binary
subtraction:
WR100 = WX000 - WX001
If the difference
between WX001 and Y201 = R7F0
WX000 difference >0
( WX000 is greater than
WX001) the carry flag WX001
(R7F0) goes High.
Then output Y201 goes C=R7F0 - WX000
High and indicates that
the subtraction has gone
wrong.
C = WR100
WX000 WX000
9 9 9 A 0 0 0 1
WR100 WR100
WX001
4444 FFFF
WX001
c c
5 5 5 6 0 0 0 0 2 1
Of (R7F1) =S1m*S2m*dm+S1m*S2m*dm
E.g. if S1 is WX000
"999A"
hexadecimal. "A" 9 9 9 A
or "1010" is not WR100
allowed as a BCD
value. WX001
xxxx
C will be high if c DF
the sum is greater
5 5 5 6 0 1
than 9999
S1
WR100 = WX000 * WX001
S2
= d2 d1 DER = R7F4
No valid
If double words are used, the result will be disposed in the following way:
DX0
for
HB / WX1 WX0
H200 DX2
WX3 WX2
DR12 DR10
DR10 = DX000 * DX002 = WR13 WR12 WR11 WR10
S1
WR100 = WX000 B * WX001
S2
Not valid
If double words are used, the result will be disposed in the following way:
DX0
for HB /
WX1 WX0
H200
DX2
WX3 WX2
DR12 DR10
DR10 = DX000 B * DX002 = WR13 WR12 WR11 WR10
S1
=d WRF016 WR100 = WX000 / WX001
S2
DER=R7F4
2 2 2 2 0 0 0 0 0 1
DER DER
Not valid
If double words are used, the result will be disposed in the following way:
DER DER=R7F4 DRF016
for
HB / DX000 WRF017 WRF016
H200 WX001 WX000
= WR101 WR100
WX003 WX002 DR100
DR100 = DX000 / DX002 DX002
S1 is BCD divided BCD with S2 and the quotient is written to d. The remainder is written to the address
WRF016.
If the divisor S2 is 0 the DER flag (address R7FE) is set to "1" and no operation is performed.
If the content in S1 or S2 is outside the BCD area the DER flag (R7E4) goes High and the operation is not
executed. This happens e.g. if S1 is 9A55 hexadecimal. A or 1010 binary is not allowed as BCD
value.
S1
=d WRF016
WR100 = WX000 B / WX001
S2 Quotient
DER= R7F4 WRF016
If S1 is "9999" and S2
is 32 the quotient will
DER WX000 Remainder
be 312 and the = WR100
remainder will be 15.
If S2 is 0 or if a digit
WX001
in the operation is no WX 000 WX000
real BCD digit, the WRF016 WRF016
WX000
W RF016
9 9 9 9 0015 xxxx xxxx
DER flag goes High WR100
9 9 9 9 9 A 9 E
WR100 W R100
and the operation is WX 001 0312 WX001 xxxx WX001 xxxx
not performed. 0 0 3 2 0 1 1
0 0 0 0 0 0 1 0
DER DER DER
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
OR
S2 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
AND
S2 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
d 000000000000111 1
A logic "exclusive or" is done between S1 and S2 on each bit in the words. This means
"1" and "1", "0" and "0" gives 0 while "0" and "1" , "1" and "0" gives "1"
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
XOR
S2 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
Example: WX200
A counter value
is compared with X002 CU11
a preset value on 0 6 5 9
a thumb wheel X005 CL11
When the value
is < the preset
value, the flag X002 R100
R101
=
=
TC11
TC11
<
<=
WX200
WX200
R102 = TC11 <> WX200
R100 is High. R103 = TC11 == WX200
Not d=S1 S <> S2 Compare not equal If S1 < > S2 then d=1
HB / 200 to with +/- sign else d=0
Example. DX200
A 32 bit up -
and down
counter is 0 0 0 0 X002 DIF10
DR100 = DR100 + 1
created in an
arithmetic box. 0 0 0 2 X003 DIF11
Not for This will count DR100 = DR100 - 1
HB / 200 with + and - X005
signs and X003 DR100 = 0
compares its
position to the X002 R100
R101
=
=
DR100
DR100
S
S
<
<=
DX200
DX200
preset of the R102
R103
=
=
DR100
DR100
S
S
<>
==
DX200
DX200
thumb wheel on
the inputs RESET
DX200. X005
DR100 X003
Hexadec. Dec.
00000005 5 X002
00000004 4
00000003 3
00000002 2
00000001 1
00000000 0
FFFFFFFF -1
FFFFFFFE -2
FFFFFFFD -3
FFFFFFFC -4
R100
R101
R102
R103
BSET (d,n) Bit set "1" is set in bit no. "n" in the word "d"
d is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
1
Not valid d can be a double word (DY, DR, DL, DM)
for n is specified by the 5 least significant bits (0-31)
HB/H200 in a word (WY,WX,WR,WL, WM, TC) or a constant.
Example:
The four least
significant bits in BSET(WY100,WM000)
WM000 is 9.
With other words,
bit no. 9 in the 0000001 000000111 WY100
word WY100 is
set. (Output 1 9 (1001)
Y1009 is set 0000000011111001 WM000
High).
BRES (d,n) Bit Reset "0" is set in bit no. "n" in the word "d"
d is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
0
Not valid d can be a double word (DY, DR, DL, DM)
for n is specified by the 5 least significant bits (0-31)
HB/H200 in a word (WY,WX,WR,WL, WM, TC) or a constant.
BTS (s,n) Bit test The value ("1" or "0") in bit no "n"
in the word "d" is copied to C (R7F0)
S is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
Example:
Input no n on
the input word BTS(WX200,WM000)
WX200 is tested
and the result Y100 = R7F0
copied to the
output Y100
(n =13, so Y100 000 0001000000111 WX200
=X2013.
C 0 13 (1101)
0000000011111101 WM000
SHR (d,n) Shift Right The word d is shifted n bits to the right
d is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
SD C
SD XXXXXXXXXXYZZZZZ Z
SD C
SD SD SD SDSDSDSD XXXXXXXXXX Y
Example:
The output word WY10
is shifted the amount of SHR(WY10,WM000)
bits to the right as the
content of register SD WY10 C
WM000 specifies. 1 0101101000011111 0
WM 000 specifies 1
position. The content of
WY10 before the shift 1 1010110100001111 1
then is 5A1F and after n = 1 position (0001)
AD0F (hexadecimal)
0000000011110001 WM000
SHL (d,n) Shift Left The word d is shifted n bits to the left
d is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
C SD
X X XX X YZ ZZ ZZ ZZ Z ZZ Z SD
C SD
Y Z ZZ Z ZZ ZZ ZZ Z SDSDSDSDSD SD
Example:
The output word WY10
is shifted the amount of SHL(WY10,WM000)
bits to the left as the
content of register C WY10 SD
WM000 specifies. 1 0101101000011111 0
WM000 specifies 6
positions. The content
of WY10 before the 0 1000011111000000 0
shift then is 5A1F and
after 87C0
(hexadecimal) 0000000011110110 WM000
The C-flag (R7F0) is a part of the rotation. It becomes the status of the last bit shifted out and delivers this
bit in the next shift to the most significant bit.
C
Z Z Z Z Z Z Z Z Z Z Z Y X1X2X3X4 C
C
X1X2X3X4 CZZZZZZZZZZZ Y
The C-flag (R7F0) is a part of the rotation. It becomes the status of the last bit shifted out and delivers this
bit in the next shift to the least significant bit.
C
C X1X2X3X4 YZ ZZZ Z ZZZ ZZ Z
C
Y Z ZZZ ZZ ZZZ Z Z C X1X2X3X4
LSR (d,n) Logic shift Right d is shifted n bits to the right. "0" is
shifted in
d is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
The C-flag (R7F0) becomes the status of the last bit shifted out. 0 is shifted in to the most significant bit.
C
0 XXXX XXXXXX Y ZZZZZ Z
C
0 000000XXXXXXXXXX Y
Not valid d can be a double word (DY, DR, DL, DM)
for n is specified by the 5 least significant bits (0-31)
HB/H200 in a word (WY,WX,WR,WL, WM, TC) or a constant.
LSL (d,n) Logic shift left d is shifted n bits left. "0" is shifted in
d is a word (WY, WR, WL, WM, TC)
n is specified by the 4 least significant bits (0-15)
in a word (WY,WX,WR,WL, WM, TC) or a constant.
The C-flag (R7F0) becomes the status of the last bit shifted out. 0 is shifted in to the least significant bit.
C
X XXXXYZZZZZZZZZZZ 0
C
Y ZZZZZZZZZZZ 0 0 0 0 0 0
Not valid d can be a double word (DY, DR, DL, DM)
for n is specified by the 5 least significant bits (0-31)
HB/H200 in a word (WY,WX,WR,WL, WM, TC) or a constant.
0 X1X2 X3 X4
0 0 0 X1 X2
Example:
WR110 is BCD-
shifted to the right. BSR(WR110,WM000)
WM000 specifies the
amount of positions
to ON 2.
Before the shift the
WR110 7 3 8 2
content of the
register WR110
=7382 and after 0 0 7 3
=0073.
WM000 0 0 0 0 0 0 0 0 1 1 11
10 0 1 0
X1X2 X3X4 0
X3X4 0 0 0
Not WSHR (d,n) Block shift right Shifts n words or bits one position
HB/H200
d can be a word (WR, WL, WM). Then the words d+1 to d+n-1 are shifted to the right.
"0000" is written into the word d+n-1 and the content of d is overwritten.
d can also be a bit (R, L, M). Then the bits d+1 to d+n-1 are shifted to the right.
"0" is written into the bit d+n-1 and the content of d is overwritten.
n is specified by the 8 least significant bits (0-255) in a word (WY, WX, WR, WL, WM, TC) or a constant.
d+n-1 d
If d+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is 0 after the
operation.
Example::
The word WM3F0 to
WM3F7 is shifted to WSHR(WM3F0,WR000)
the right.
0 is written into
WM3F7 and the WM3F7 WM3F5 WM3F0
content in WM3F0
disappears. 12AFEEF36721 2AD3456A10EF17F0
0
000012AFEEF3 xxxx2AD3456A10EF
The word d+n-1 is d+n-1 d
inside the memory
area. DER remains
therefore 0. WR000 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
DER
0
Otherwise DER goes WM3FF WM3F0
High.
16F012AFEEF36721 2AD3456A10EF17F0
Here d+n-1 will be 0
WM400, which is
outside the memory 000016F012AFEEF3 xxxx2AD3456A10EF
area. DER goes high. d+n-2 d
WR000 0 0 0 0 0 0 0 0 000 1 0 00 1
DER 1
Not WSHL (d,n) Block shift Left Shifts n words or bits one position
HB/H200
d can be a word (WR, WL, WM). Then the words d+1 to d+n-1 are shifted to the left.
"0000" is written into the word d and the content of d+n-1 is overwritten.
d can also be a bit (R, L, M). Then the bits d+1 to d+n-1 are shifted to the left.
"0" is written into the bit d and the content of d+n-1 is overwritten.
n is specified by the 8 least significant bits (0-255) in a word (WY, WX, WR, WL, WM, TC) or a constant.
d+n-1 d
If d+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is 0 after the
operation.
Example::
The word WM3F0 to
WM3F7 are shifted to
the left.
WSHL(WM3F0,WR000)
0 is written into
WM3F0 and the
content in WM3F7 WM3F7 WM3F5 WM3F0
disappears.
12AFEEF36721 2AD3456A10EF17F0
The word d+n-1 is
inside the memory
0
area. DER remains
therefore 0. EEF36721xxxx 456A10EF17F00000
Otherwise DER goes d+n-1 d
High.
WR000 0 0 0 0 0 0 0 0 0 0 0 0 1 00 0
DER 0
Not WBSR (d,n) BCD shift right Shifts n BCD-digits one position
HB/H200
d can be a word (WR, WL, WM). Then the words d+1 to d+n-1 are shifted to the right 4 bits. (one BCD
position) "0" is written into the most significant BCD position d+n-1 and the content of the least significant
BCD position d is overwritten.
n is specified by the 8 least significant bits (0-255) in a word (WY, WX, WR, WL, WM, TC) or a constant.
d+n-1 d+1 d
If d+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is 0 after the
operation.
Not WBSL (d,n) BCD shift left Shifts n BCD-digits one position
HB/H200
d can be a word (WR, WL, WM). Then the words d+1 to d+n-1 are shifted to the left 4 bits. (one BCD
position) "0" is written into the least significant BCD position d+n-1 and the content of the most significant
BCD position d is overwritten.
n is specified by the 8 least significant bits (0-255) in a word (WY, WX, WR, WL, WM,
TC) or a constant.
d+n-1 d+1 d
If d+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is 0 after the
operation.
d+n-1 d
If d+n-1 or if s+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is 0
after the operation.
Example:
A memory area (the
size is specified by MOV(WR100,WM010,WR000)
WR000) from
WM010 and upwards WM17 WM11 WM10
is copied to WR100
and upwards.
WM FDD62AD3456A10EF17F09999
s+n-1
222244445555
s
WR000 specifies that
8 words shall be
copied. d+n-1 d
WR FAD3FAD39999 22224444FAD3FAD3FAD3FAD3
WR107 WR10 WR100
1
WR000 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
DF 0
d+n-1 d
If d+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is 0 after the
operation.
Example::
The content of
WM10 is copied to COPY(WR100,WM010,7)
the 7 words WR100
to WR106.
0000 s
Here 0000 is WM10
written into the
words.
d+n-1 d
DER 0
d2+n-1 d2
If d1+n-1 or d2+n-1 points at a word outside the area, the flag DER (R7F4) is set to 1. Otherwise it is
0 after the operation. The exchange will only take place on the words within the allowed area.
If the areas d1 to d1+n-1 and d2 to d2+n-1 are overlapping, only the part of the area, which is not
overlapping will change place and the flag DER (R7F4) is set to 1.
Example:
The word WM201
to WM204 change
XCG(WM201,WM207,WR000)
place with the words
WM207 to WM20A
WR000 specifies
that 4 word shall be 000C000B000A0009000800070006000500040003000200010000
involved in the
exchange.
000C000B000400030002000100060005000A0009000800070000
WR000 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
DER 0
d 1 0 1 0 1 0 0 0 0 1 11
10 0 1 0
01 0 10 111 1 0 0 0 1 1 0 1
NEG(d)
0002 +2 FFFE -2
FFFE -2 0 0 0 2 +2
ABS(WY10,WM000)
WM000 F F F E -2 WM000 0 0 0 2 +2
WY10 0 0 0 2 +2 WY10 0 0 0 2 +2
C 1 C 0
If C (R7F0) =1 the two complement of the word S is calculated and written to d. (see NEG(d))
Otherwise S is copied to d.
SGET(d,s)
0002 2 F F F E -2
C 1
F F F E -2 0002 2
00022 F F F E -2
C 0
00022 F F F E -2
S is copied to d and the most significant bit (bit 15) in S is copied to all bits in the word d+1
This is done if you want to convert a word to a double word and keep the sign.
s
0 1 1 00 1 1 1 0 1 0 11 10 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 1 1 00 1 1 1 0 1 0 11 10 1
d+1 d
s
1 1 1 00 1 1 1 0 1 0 11 10 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 00 1 1 1 0 1 0 11 10 1
d+1 d
4.7.2 Converting.
If S > the hexadecimal value H270F the BCD value will be >9999. Then the DER (R7F4) flag goes high
and d is left unchanged.
s 1 7 5 9
DER
0 d 5 4 9 7
s 7 9 E 5
DER
1 d 5 4 9 7
Not valid If S and d are double words. the binary value in S is converted to BCD and written to
for d.
HB/H200
If S > the hexadecimal value H5F5E0FF the BCD value will be >99999999. Then the
DER flag goes high and d is left unchanged.
If any digits in S are outside the correct BCD area (0-9 the DER (R7F4) flag goes high and d is left
unchanged.
s 5 4 9 7 BCD
DER
0 d 1 7 5 9 binary
only 0 - 9
allowed
s 9 5 5 E
DER
1 d 1 7 5 9 binary
The content of the least significant part of the word s (with the width of n bits) defines which bit shall be
set to 1. This is calculated from the bit d. Other bits counted from the bit d and up to the bit 2n -1 are set
to "0".
s B
If d+ 2n -1 is > than the highest bit in the memory area the flag DER is set high but the operation will be
executed. If d+B in this case is outside the memory area all bits from d and upwards are set to 0.
ENCO(WY100,M100,5)
s+2 -1
n
s+B
B=2 WY100=2 s
0 0 0 00 000 0 0 1 0 0 0 0 00 0 000 0 0 0 00 1 0 0
0
18 16 14 12 10 8 6 4 2 0
s+B
B=14 WY100=14 s
0 0 0 00 000 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 0 0
0
18 16 14 12 10 8 6 4 2 0
If all bits within the area S to S+ 2n -1 are "0" the C-flag (R7F0) is set high and d becomes the value
"0000"
If S+ 2n -1 is > the highest bit in the memory area the DER flag is set high but the operation is executed on
the bits within the memory area.
The content in the word S is decoded and written to double word d. Each digit in S is decoded to seven
bits, (which represent a segment in a seven segment display) according to the following:
a 0 1 7 F
f b
g 0 0 1 1 1 1 1 1 0 0 0 0 0 1 10 0 0 1 0 0 1 1 1 0 11 1 0 00 1
e c
d
0 1 2 3 4 5 6 7 8 9 A B C D E F
Outputs
In data g f e d c b a
0 0 0 1 1 1 1 1 1
1 0 0 0 0 0 1 1 0
2 0 1 0 1 1 0 1 1
3 0 1 0 0 1 1 1 1
4 0 1 1 0 0 1 1 0
5 0 1 1 0 1 1 0 1
6 0 1 1 1 1 1 0 1
7 0 0 1 0 0 1 1 1
8 0 1 1 1 1 1 1 1
9 0 1 1 0 1 1 1 1
A 0 1 1 1 0 1 1 1
B 0 1 1 1 1 1 0 0
C 0 0 1 1 1 0 0 1
D 0 1 0 1 1 1 1 0
E 0 1 1 1 1 0 0 1
F 0 1 1 1 1 0 0 1
s SQR(WM020,DR030)
11 1s (hexadecimal 000B)
0111101000011111
000B
s can also be a double word (not for HB/H200) Then 0 - 32
(hexadecimal 00000000 - 00000020) is written to d.
SWAP (d) Swap bytes The 8 most and the 8 least significant
bits exchange place in a word
The 8 most and the 8 least significant bits exchange place in a word.
Example:
the 8 most the 8 least SWAP(WY20)
significant bits significant bits
before after
P+n+1 Position n
Not FIFWR (P,S) FIFO Write S is written into FIFO with start
HB/H200
on P
Writes data from the word S into the FIFO on the address, which the counter queue keeps track of..
S is written to the address P +2+A, where A is the temporary amount of data words in the FIFO. A is
automatically increased by 1.
If A>= n (the queue is full) S is not stored and the DER flag (R7F4) goes high.
If A=0 (the queue is empty) S is not stored and the DER flag (R7F4) goes high.
p
ASize of the FIFO
Counter queue
Position 1
A
Position 2 S
p+A+2
p+n+1
Position n
Not HB/ FIFRD (P,d) FIFO Read d is read from the FIFO starting on P
H200
p+n+1
UNIT (d,S,n) Unit 4 bit data 4-bit data from n words from S to d
The last 4 bits in n words with start from the word S are copied into the word d according to the picture.
n is 0-4.
If n < 4 the rest of the word d is filled with "0".
If S+n+1 points outside the memory area, the DER flag (R7F4) goes high and the operation is not executed
on the words, which are outside the address area, while the other positions are filled with "0".
LSD MSD LSD
B4 B3 B2 B1 d
S B1
B2
B3
S+n-1 B4
Example: The last digit in the word s from WR100 and upwards are written to the output word WY20.
UNIT(WY20,WR100,4) UNIT(WY20,WR100,2)
B 5 F 4 WX10 0 5 F 4 WX10
WM100 0004 WM100 0004
000F 000F
0005 0005
WM103 000B WM103 998B
END
If alternative Ends of the program is wanted, see the instruction CEND.
Normal program
END
LBL n
Interupt routin
This kind of programming easily causes very long program FOR 4 (WR103)
scan times, which must not exceed the maximum time in the
setup. FOR 5 (WR104)
NEXT 5
E.g. WR100-WR104 all are 10 the program part between
NEXT 4
FOR 5 and NEXT 5 will be repeated 10 x 10 x 10 x 10 x 10
=100000 times. If this part of the program is 1 ms, the total NEXT 3
program scan time will be > 100 s, which is not possible..
NEXT 2
NEXT 1
FOR 5 (WR104)
It is not allowed to nestle FOR-
FOR 4 (WR103) loops.
Not
allowed
NEXT 5
NEXT 4
a
a
a
a
a
a
b
RTI
LD X002
X002 X013 R034 Y102 AND X013
OR Y102
LDI R034
Y102 M002 OR M002
ANB
OUT Y102
As the two parallel connected contacts (R034 and M002) are alone on the branch it is not necessary to
create a new branch. You can instead describe the parallel connection with an OR contact, see below.
Symbol Instruction Short from Description Address type
LD X002
X002 X013 R034 R01A Y102 AND X013
OR Y102
LDI R034
Y102 M002 OR
ANB
M002
ANI R01A
OUT Y102
As the last contact (R01A) is alone on the branch it is not necessary to create a new branch. You can
instead describe the serial connection with an ANI contact.
C E
LD X002 Branch A
F AND X013
A X002 X013 R034 R01A Y102 LD Y102 Branch B
ANI M012
ORB Parallel connection
Y102 M012 M002 of A and B to C.
LDI R034 Branch D
B
D OR M002
ANB Serial connection
of C and D to E.
TD,SS,CU,CT
CTU,CTD,CL
WDT,MS
TMR,RCU
(not all CPUs)
Copyright Actron AB 1994, 2009
Programming
Create the arithmetic box through pressing "[" and thereafter the arithmetic instructions in the box and
finally "]" to end the box.
E.g.
[
WR00=WX00
SHL (WM101 , 5)
]
5 Practical Handling :
5.1 To run through a complete project:
-If the distances are long and the units are going to work
like one unit:
-Then it is recommendable to plan one central CPU with
remote units, which are distributing the In/Outputs.
It is now time to choose the PLC type. Here is given some leading information (see also the list of modules
in the additional parts)
Suitable for size Suitable Module Link- and Best advantage (cost effective) for different types of
of installation interval/ range remote installations.
/Max. communi-
amount I/O cation
Small 0-120/208 Limited No Small with majority digital I/O
Small 0-120/208 Limited Yes Small with majority digital I/O and link
0 Small to medium 0-230/512 Large Yes Small/medium with mix of modules
0 Small to medium 0-230/512 Large Yes several Small/medium with mix of modules and more power
2 Small to medium 0-450/928 Large Yes several Small/medium with mix of modules and more power
0 Medium 0-250/576 Large Yes several Small/medium with mix of modules and module system
H300-H2002 is preferred
2 Medium 0-250/576 Large Yes several Small/medium with mix of modules and module system
H300-H2002 is preferred and more power
2 Medium 0-600/1280 Large Yes several Medium with mix of modules and module system H300-
H2002 is preferred and more power
02 Large 0-2000/2688 Large Yes several Medium/large with mix of modules and module system
H300-H2002 is preferred and more power
02 Large 0-4000/4096 Large Yes several Large with mix of modules and module system H300-
H2002 is preferred and more power
Select modules:
Search in the module list in the additional part of PLC type or in the price list.
Order:
Place the order as early as possible. That is the best guarantee that we can meet the delivery time you want.
(Even if you order normal stock equipment it could be temporarily out of stock.)
Check that the signals from every sensor reaches the inputs through checking the LEDs on the front of the
PLC.
5.2.1 Actsip-H
Start with the command < H >. (or for Actgraph <GPLUS>)
Remember the information in the Welcome window. Press F1 for Help wherever you are in the program
and <Alt>+F1 for Help in ON-LINE programming. Press thereafter <Enter> and you will see following
window.:
Choose between the alternatives "New project", "Load project from file" and " Load project from PLC".
If the alternative new project" is chosen you will get a setup menu for the PLC system.
Here you can select CPU-type, Memory type, In- Output configuration etc.
If the PLC-system is connected via the serial port, you will press <Enter> when you get the alternative
Read PLC- Setup and these setups will be performed automatically.
For manual setup the setup of in- /output configuration will look like:
E.g. LINK module
System Program Allocation Printout Files Communication Setup
Base/exp I/O Assignment PgDn=More
Points: 208 0 = W IO 4/4W
Slot: 0 1 2 3 4 5 6 7 8 9 A 1 = INTERRUPT
2 = REMOTE
Unit 0 X16 X16 Y16 Y16 X8W X16LINK 3 = CPU LINK
1 4 = COMM
2 5 = BASIC
3 6 = GPIB
4 7 = I/O 16/16
5 8 = I/O 16/32
6 9 = I/O 32/16
7 Q = I/O 32/32
In-/ 8 W = FUN0 5/3W
9 E = FUN1 3/5W
Output- R = FUN2 6/2W
SPACE = Toggle Standard/Remote T = FUN3 2/6W
configura Arrows = Move Y = FUN4 7/1W
Numbers = Select module U = FUN5 1/7W
tion INS = Copy real assignment
ESCAPE = Leave
I = FUN6 2/2W
Press <F1> for HELP
DRAW mode (0000) OFFLINE H-200 Intern 7.5 Ks
Here you can choose modules for each slot from the list on the right: (Press F1 for Help
and you will get information about how all modules will be addressed.)
In this example 32-input modules have been chosen on slot 0 and 1, 32-output modules
on slot 2 and 3, a 8-word input module (e.g. an analog input module) on slot no. 5 and a
link module on slot 6 and 7.
You can define the link areas (the memory areas, where the CPUs in a network talk to
each other.)
The setup of retentive memories is also done here. Top stands for Lowest address
and End stands for Highest address.
When the setup is ready, press <Esc> and you are ready to program.
The status row at the bottom of the screen gives information about the current setup.
You are now in the drawing screen, where the program will be created. From the screen you can always
enter the menu bar (pull down menus) at the top of the screen by pressing <Esc>
You can also get some options, e.g. Search, as extra choices at the bottom of the screen through pressing
<F2>.
If this is the first time Actsip/ActGraph is started it could be necessary to setup the PC and the
communication. (In such case, press <Esc> and go with the arrow keys to Setup. Go down to
the choice PC (Computer) or Communication.
If some addresses already from the beginning are known (e.g. Inputs and Outputs, which
already are connected) you should go to the Allocation menu and under Enter/Change type
these on the decided address. In the Allocation menu you can also move and exchange
addresses (e.g. if a I/O slot is moved.
Start from the left line, Press the symbol for the first contact and type the address
(X2) or the Symbol START BUT. Make a serial connection through repeating the
procedure.
Draw a line down through pressing <Shift>+<down arrow> (or <Alt>+<down arrow>).
Go to the left line and start the parallel connection.
If we have not already allocation START MEM to an address, we can write START
MEM anyway instead of the address.
The system will show the automatic allocation window and ask you what START
MEM is. In this window you can choose between the different kinds of memories. The
system will always suggest a free address. In this way the double use of addresses can
be avoided, which otherwise is one of the most common programming errors.
Let us accept that "START MEM becomes the address M0, as the system suggests.
Press <Enter>
System Program Allocation Printout Files Communication Setup
START PHOTO STOP START
BUT SW1 BUT MEM
/( )
X00002 X00000
START
MEM
Completing M0000
the block
DRAW mode (0000) OFFLINE H-250 Intern 7.5 Ks
Draw thereafter the rest of the block with the same method as we started.
During the drawing the block is inverted to show that it is not yet a part of the
program.
When the block looks like what you want, press <Ins>. The block will now be a part
of the program. It will be redrawn and it is not inverted anymore.
You can also see that the status row shows one more block in the program.
Place the cursor where the expansion shall start.. Press <F2> and the status line shows
a number of extra alternatives.
Go to "Hor-Exp" (Horizontal Expansion) using the arrow keys or press only "H", as
the first character in the choice.
Now there will be a space where the new contact can be written.
Observe that when the block is modified the change is still not a part of the program code. You have to press
<Ins> or <*> to update the program.
Continue with the next block. When the machine is started and the temperature is less
than 30 Centigrade, the output HEAT shall go High.
Start to connect START MEM in series with a Compare box. Create this through
pressing the symbol on F7
Write TEMPERATURE and allocate this to the first word input on the analog
module (address WX40)
A box will appear with the comparison alternatives. Choose < (less than) and then
type the constant 30 as a comparison reference. Connect the output HEAT
(Y200) in the same way as above.
The photo switch is serial connected to the edge memory (DIF memory). Press the
symbol for arithmetic box ( <Shift>+F7 ) and an empty box appears.
The most common instructions( =, +, -, etc.) can written directly only through typing
the variable name. But if you need a full list of the instructions, press <Spacebar> and
the complete list will appear on the left side.
From this box you can choose the instructions.
Choose "+" through moving the cursor to the instruction and pressing <Enter> or just
through typing "+".
Type the address for the sum (d in the box). The address shall be the first output
word (WY20). Lets call this word DISPLAY. Thereafter the address of the first
term. Let us call this REGISTER1 and place it on address WR0. The second term is the
constant 7.
Then return to the box with the list of instructions through pressing <Spacebar>.
Choose the instruction SHR. Type POSITION as d and let n be 1 (to shift 1
position right every time)
Press <Ins>
The box gets its normal shape. But the circuit itself is still not inserted in the program.
Therefore press <Ins> once more.
PHOTO EDGE1
SW1 WR0000 = WR0001 + 7
SHR (WR0002 , 1 )
X00000 DIF0
The program syntax check can be done under the menu "Program"
You should also write here the information about the project which shall be included
in the final documentation printout.
You can also toggle between ladder- and instruction programming or change to
another programming method, like grafcet according to ActGraph. You can also
delete a larger program area or start a new project.
We have so far been working OFF-Line. Let us go ON-Line, transfer and test the
program in the control system. You can now go through following procedure:
Start to connect the PLC to the serial port of the computer and check inside the menu
Setup-Communication that the setup is correct. (The right serial port, right baud
rate etc.) Normally select Standard values.
(There is a short way through. Press only <Alt>+F5, which takes us through the
complete chain (as this choice is highest up in the hierarchy)
It is now possible to program ON-Line. The changes are done in the same way as in
OFF-Line When a block is changed or inserted, the PLC stops for a very short
moment. But it will keep the status of memories and outputs.
Now the program can be checked through the function and through showing status
on the screen. (the inverted fields are active or true).
Monitor:
The main monitor function is to show status in the ladder diagram on the screen.
Here the true contacts (active lines) are shown through inverted colour. This makes
it easy to detect errors etc.
Monitor in arithmetic boxes:
Monitor of values on the addresses in the arithmetic boxes is shown if you press
<Alt>+<F3>. You will first see decimal monitor. Next time you will see
hexadecimal monitor and finally Short Comment/address again.
PHOTO EDGE1
SW1 332 = 325 + 7
SHR ( 10 , 1 ) Decimal
X00000 DIF0
PHOTO EDGE1
SW1 H014C = H0145 + H0007
SHR ( H000A , H0001 ) Hexa
X00000 DIF0 decimal
You can also effect status on each contact through pressing <1> or <0> on a contact
or typing a new value of a register.
Through pressing <Alt>+F5 once more a larger monitor box will show on the
screen. Here you can define what addresses and bit memories you want to monitor
and control. (You can move the box on the screen with the arrow keys.)
Copyright Actron, A.B. 1994 129
Practical handling
5.2.8 Documentation:
System Program Allocation Printout Files Communication Setup
* Start cirquit with self hold
*
* Condition for start: Photo Switch 1 and Inductive sensor 2
*
START IND S PHOTO STOP START
BUT ENS2 SW1 BUT MEM
/( )
X00002 X00001 X00000X00003 M0000
START
t MEM
ments M0000
* Check of heating
* Analog input 1 senses that the temperature goes on when
* the temperature is below 30 Centigardes
START HEAT
MEM TEMPERATURE WX0040
< ( )
DRAW mode 0002 (0003) OFFLINE H-250 Intern 7.5 Ks
To make the program even more easy to read, you can write a comment belonging to
every ladder block.
Place the cursor on each block and press <Enter>. A window will open, where you can
write text. The first five lines of this text will always be visible in the program. Press
<Esc> when you are ready.
5.2.9 Printout:
When the program is ready you ought to make documentation. This is done under the
choice Printout
Start to check so the printout setup is correct in Setup-Printout. Thereafter choose
the printout types you want.
You can here also get information about version number etc. and make a temporary exit
to DOS (if you want to make DOS commands).
ActGraph
Welcome to the Actron ActGraph development software for
Hitachi series J/E/EM/EB/HB/H200/H300+ PLC systems.
<F1> is the HELP key.
<Alt> + <F1> is the HELP key for ON-LINE and monitor.
Press <ENTER>
5.3.1 Programming:
Word Debug Monitor Monitor Start Stop ON- OFF-
+<Alt> monitor ON OFF PLC PLC LINE LINE
Branch Start Activity Reset- Parallel Return Boxes +<Shift>
Help ACT Redraw down step cond. cond.
You can also get a number of new choices, e.g. Search, in the bottom of the screen through pressing <F2>.
000
+. Off-line Series H $
5.3.3 Actions:
000
Actions
GREEN LAMP
+. Off-line Series H $
000
Actions
GREEN LAMP
Allocation
GREEN LAMP
[ Y00200 ]
Word
Bit
Bit Output Marker Timer Counter U/D-Cnt ShiftRg Macro
+. Off-line Series H $
If the address is not defined before, the automatic allocation will appear.
Choose type of address and address.
Press <Enter> , The allocation window will disappear and the Cursor will go to the left of
GREEN LAMP. Here you can write a detailed action (see below).
5.3.4 Transitions:
START BUT
+. Off-line Series H $
If you do not want a detailed action, press <Enter> and the action box will close.
The transition can be a Boolean expression where "+" stands for a parallel connection and
"*" stands for serial connection. E.g. START BUT * PHOTO SW * IND SENS2"
See more detailed grafcet description. It can also be a comparison, see below.
STA Actions
FEEDER 1
001 D CYLINDER 2 D=2.5s
S RUN LAMP =1
+. Off-line Series H $
After each completed action, the cursor will go to the left of the action.
Here you can define a detailed action.
"D" stands for Time delay of the action.
"L" stands for limited duration of the action .
"C" stands for an extra condition to activate the action
"S" stands for SET and RESET.
"P" stands for a very short pulse (impulse)
START BUT
001 FEEDER 1
D CYLINDER 2 [D=2.5s]
+ RUN LAMP
CYL 2 OUT
LIFT LOW
003 FEEDER 1
PHOTO SW 2
+. Off-line Series H $
Continue in the same way and build the graph with one step, one transition, one step
etc. In this way you can build a straight sequence of any length on the screen.
A B C
Place the Cursor on step 1 Place the Cursor on the lower Place the Cursor on the new branch start
(after which the branch shall horizontal part of the branch and create the new steps and transitions as
start). Press F7. and pull down with the F4 before.
key.
000 GREEN LAMP 000 GREEN LAMP 000 GREEN LAMP
START BUT START BUT START BUT
001 FEEDER 1 001 FEEDER 1 001 FEEDER 1
D CYLINDER 2 [D=2.5s] D CYLINDER 2 [D=2.5s] D CYLINDER 2 [D=2.5s]
+ RUN LAMP + RUN LAMP + RUN LAMP
CYL 2 OUT CYL 2 OUT PHOTO SW 2
002 LIFT DOWN
CYL 2 OUT 002 LIFT DOWN 004 CYL 3 OUT
LIFT LOW
002 LIFT DOWN
003 FEEDER 1
LIFT LOW LIFT LOW CYL 3 END
PHOTO SW 2
003 FEEDER 1
003 FEEDER 1 005 LIFT DOWN
PHOTO SW 2
PHOTO SW 2 LIFT LOW
A B
Place the cursor on the transition between step 0 Pull the lower part of the branch down passed step
and step 1, where the branch shall begin. Press F8 1 with F4. Create thereafter the parallel steps in the
and an embryo of a branch will occur. normal way.
000 GREEN LAMP 000 GREEN LAMP
START BUT START BUT
001 FEEDER 1 006 LIFT UP
001 FEEDER 1 D CYLINDER 2 [D=2.5s]
D CYLINDER 2 [D=2.5s] + RUN LAMP LIFT HIGH
+ RUN LAMP
007
CYL 2 OUT PHOTO SW 2
002 LIFT DOWN 004 CYL 3 OUT CYL 2 OUT PHOTO SW 2
LIFT LOW CYL 3 END 002 LIFT DOWN 004 CYL 3 OUT
003 FEEDER 1 005 LIFT DOWN LIFT LOW CYL 3 END
PHOTO SW 2 LIFT LOW 003 FEEDER 1 005 LIFT DOWN
PHOTO SW 2 LIFT LOW
B
e Cursor on step 3 and press F9. Pull up the upper part of the branch with <Shift>+F4 above
step 2. Create the return steps in the normal way.
0 GREEN LAMP 000 GREEN LAMP
START BUT START BUT
1 FEEDER 1 006 LIFT UP 001 FEEDER 1 006 LIFT UP
D CYLINDER 2 [D=2.5s] D CYLINDER 2 [D=2.5s]
+ RUN LAMP LIFT HIGH + RUN LAMP LIFT HIGH
007 007
CYL 2 OUT PHOTO SW 2 CYL 2 OUT PHOTO SW 2
2 LIFT DOWN 004 CYL 3 OUT
OUT 4 004 CYL 3 OUT
LIFT LOW CYL 3 END
002 LIFT DOWN
3 FEEDER 1 005 LIFT DOWN
008 FEEDER 4 CYL 3 END
LIFT LOW LIFT LOW
PHOTO SW 2 LIFT HIGH 005 LIFT DOWN
003 FEEDER 1
009 LIFT UP LIFT LOW
IND SENS 2
PHOTO SW 2
B
<Shift>+F6 and the window for activity condition will appear. The condition is now shown above the
he condition and press <Enter>. graph (after "A:") Press <Shift>+F7 to
choose the panel switch AUTO as an activity condition, write the Reset condition. This will also
enables Auto/manual control of the graph. stay above the graph.
R:RESTART
A:AUTO
000 GREEN LAMP
START BUT 000 GREEN LAMP
START BUT
001 FEEDER 1 006 LIFT UP
D CYLINDER 2 [D=2.5s]
+ RUN LAMP LIFT HIGH 001 FEEDER 1
Boolean expression D CYLINDER 2 [D=2
+ RUN LAMP
ActivCond: AUTO
CYL 2 OUT
CYL 2 OUT PHOTO SW 2
OUT 4
OUT 4 004 CYL 3 OUT 002 LIFT DOWN
002 LIFT DOWN 008 FEEDER 4
008 FEEDER 4 CYL 3 END LIFT LOW
LIFT LOW LIFT HIGH
LIFT HIGH 005 LIFT DOWN 003 FEEDER 1
003 FEEDER 1 009 LIFT UP
009 LIFT UP LIFT LOW
IND SENS 2
IND SENS 2
PHOTO SW 2
PHOTO SW 2
B C
F10 and choose Here the output side of the expressions When all expressions are written, press
Box. Press are written on the left side. Thereafter <Enter> once more and the box will be
>. the cursor goes to the right and a closed with the inputs on the left side
Boolean expression can be written. and the outputs to the right side of the
Thereafter a new expression can be box. Press <Shift>+F6 and define the
written and so on. activity condition /AUTO. (which
means NOT AUTO (which is the same
as manual.
A:/AUTO
GREEN LAMP PUSHB 1 LIFT DOWN
LIFT LOW LIFT UP
TART BUT PUSHB 2
LIFT HIGH
FEEDER 1
D CYLINDER 2 [D=2.5s] Logical box
+ RUN LAMP LIFT DOWN =PUSHB 1*/LIFT LOW 006 LIFT UP
=2.5sLIFT UP =PUSHB 2*/LIFT HIGH ]
LIFT HIGH
007
YL 2 OUT
PHOTO SW 2
LIFT DOWN
004 CYL 3 OUT 004 CYL 3 OUT
IFT LOW
CYL 3 END CYL 3 END
FEEDERGraph
Logical box 005 LIFT DOWN 005 LIFT DOWN
Action box
Macro box LIFT LOW LIFT LOW
HOTO SW 2
A B
Press F10 and choose Macro box. An Now a drawing screen will open, which looks like in
empty box will occur. Write a name and Actsip-H. Make the programming as in Actsip-H.
press <Enter> The addresses which are programmed here are
different from the addresses in the graph programming.
(The programming of the macro boxes is isolated)
A:/AUTO ======================== CALC2
============================
PUSHB 1 LIFT
DOWN
LIFT LOW LIFT UP PROD = FACT1 * FACT2
PUSHB 2
LIFT HIGH WSHR (PROD , 2 )
SGET (RESULT , PROD )
006 LIFT UP CALC1
=2.5s]
LIFT HIGH
007
PHOTO SW 2
004 CYL 3 OUT
CYL 3 END
005 LIFT DOWN
LIFT LOW
DRAW mode 0001 (0001) OFFLINE
A:/AUTO
C
PUSHB 1 LIFT DOWN
When the Macro is ready, LIFT LOW LIFT UP
PUSHB 2
press <Esc> Approve (or LIFT HIGH
change) the new addresses,
which are suggested. 006 LIFT UP
=2.5s]
FACT1CALC2PROD
FACT2RESULT
Thereafter the new macro is LIFT HIGH
PROD
shown. 007
+. Off-line Series H $
When this is ready, press <Enter> and the box will close.
You can see the difference between a logic box and an action box as an action box has a vertical line on the
top and on the bottom. (It can also have double lines on the side. These will symbolise values.)
A:/AUTO
PUSHB 1 LIFT DOWN
LIFT LOW LIFT UP
PUSHB 2
LIFT HIGH
006 LIFT UP FACT1CALC2PROD
=2.5s] FACT2RESULT
LIFT HIGH PROD
007
VALUE1
ANALOGOUT3
PHOTO SW 2 G
004 CYL 3 OUT
CYL 3 END
005 LIFT DOWN
LIFT LOW
+. Off-line Series H $
5.3.15 Zoom:
To achieve maximum overview of during the work, you can both amplify and minimise the objects on the
screen during the programming.
Press < + > to increase.
Press < - > to decrease.
ELEMENT
You will get the question: BRANCH
GRAPH
This means that you can choose different zooming for different parts of a project and different for different
parts of a graph.
If you choose ELEMENT the step where the cursor is will decrease or increase.
If you choose BRANCH the branch where the cursor is will decrease or increase.
The same thing happens if you choose GRAPH.
Size 1 You will here see all significant information simultaneously in action
boxes and transitions. This size is default.
Size 3 This size will give a rough structure of the project. If is still possible to
show the flow in a project during monitoring.
This is practical when you want as much of the project as possible on the
screen simultaneously.
Example:
A:/AUTO
PUSHB 1 LIFT DOWN
LIFT LOW LIFT UP
PUSHB 2
LIFT HIGH
FACT1CALC2PROD
FACT2RESULT
PROD
VALUE1
ANALOGOUT3
G
+. Off-line Series H $
Program Y200
scan Logic
Program Program
scan
Y202
Practical differences:
with direct update you will get a faster response time between in- and outputs. (Max. 1 program cycle,
while I/O copying can cause max. 2 program cycles, see drawing above)
*1 To change between I/O copying (refresh) and direct updating on the H200 CPU,
change dip switch 3 on the component side of the CPU board.
WARNING!
It can be different status of
the contact during the same
program scan.
7.4 Interrupt :
There are different types of interrupts
in a normal scan program.
- Periodic interrupt. Occurs every 10
ms and updates timer values etc.
- 10 ms interrupt. Program part Periodic update
executed 10 ms interrupt
every 10 ms. 20 ms interrupt
- 20 ms interrupt. Program part External 40 ms interrupt
executed Normal
interrupt
every 20 ms. program
- 40 ms interrupt. Program part
executed
every 40 ms.
- External interrupts. interrupt from
input signals.
INT 17
External interrupt
RTI
For more information about the INT- and RTI-instructions, see page 107.
Types of interrupts:
Interrupt with a lower number has a higher priority. This means e.g. that a 10 ms update will interrupt a
routine, which takes care of a interrupt input..
Periodic interrupt
10 ms interrupt
20 ms interrupt
40 ms interrupt
Observe that each interrupt takes time from the normal program scan. You can use a Watch Dog
timer to check if the program execution takes too long time.
(The Watch dog timer is 100 ms if nothing else is defined)
The preset of this timer is defined under Setup- PLC in the programming software. You can define a
value between 10 ms and 2550 ms.
7.5 Installation:
Incorrect mounting !
Incorrect mounting !
min
- Avoid installation directly in sun shine and 10
where condensation, dust, oil smoke, corrosive mm
gas can occur.
7.5.3 24V DC
Series H200-H252 has a 24 V DC power supply module, which is called PSM-D.
Series H300-H2002 has a 24 V DC power supply module, which is called AVR-04DH or AVR-08DH.
AC or DC
supply AC supply
DC supply
Relay output:
If the load is inductive and increases 10 VA, connect a RC circuit of 0.1 F + 100 in parallel to the load.
If the load is fed by direct current, connect a diode in parallel to the load.
Transistor outputs:
Connect a diode in parallel to the load.
Triac output:
If the load is inductive or the load is very small, connect a RC- circuit of 0.1 F + 100 in parallel to the
load.
H-COMM: Software routines written in Microsoft C, containing the task code handling and
communication routines. It is using the Green leaf library.
This can be implemented by the user in the special project.
Following error codes are valid for HB/H200. For error code 14, 15, 21, 22, 24, 25, 26, 28, 29, 2A, 2C, 41,
43, 47, 51-59, 72, 88, - -, Ff and All lamps, see separate description.
Error Error type Priority Reason for the error Counter measure etc.. Error RUN/ Memory
code lamp Stop indication
1 System High Check sum showed error. The The CPU hardware is wrong. If light Stop -
ROM error CPU can not read correct. this is discovered again, you
must change the CPU.
2 System RAM High Check sum showed error. The light Stop -
error CPU can not read correct.
3 Micro High Tried to read an undefined Check if there is a bad noise in light Stop R7C8
processor error instruction the surrounding.
23 Undefined Medium Tried to read an undefined light Stop R7C9
instruction instruction
27 Data memory Medium Error detection discovered at light Stop -
error memory check
31 Program Medium Discovered at check sum control. Try to transfer the program light Stop R7CA
memory error again. The battery can be bad.
If it is a ROM , check the
mounting. It could be bad ROM
programming.
33 Memory size Medium Memory is of a smaller size than Initiate the system with correct light Stop R7CC
error told in the setup. information. If this is not
enough , change CPU.
34 Syntax error Medium User program contains an error. See table of user program light Stop R7D4 and
(Detailed information is in memory errors. WRF001
word WRF001)
44 Time error Low The execution time in the normal Change the program so it will light Stop R7D1
during normal program > max. time in setup. take shorter time or prolong the
scan max. time.
45 Time error, Low The periodic interrupt routine is Change the program in the light Stop R7D2
periodic scan called during its own execution periodical interrupt routine so
the time decreases
46 Time error, Low The interrupt routine is called It must be longer intervals light Stop R7D3
interrupt scan during its own execution between the interrupts.
61 Communication Warning Error during communication with -Check cables. no RUN
error PC (parity error) -Check communication light
parameters
62 Communication Warning Error during communication with -Shield possible external noise no RUN
error PC (handshake error) light
63 Communication Warning Error during communication with no RUN
error PC (time out) light
64 Communication Warning Error during communication with no RUN
error PC (protocol error) light
65 Communication Warning Error during communication with no RUN
error PC (data receive error) light
71 Battery error Warning The charge of the Battery is below Change battery flashes RUN R7D9
specified level.
160
Additional part H200 -H252
INPUT 0 1 2 3 4 5 6 7 8 9 10 11 8 9 10 11 8 9 10 11 8 9 10 11
H20 with 12 inputs and 8 outputs
POW
RUN
H28 with 16 inputs and 12 outputs
ERR INPUT 0 1 2 3 4 5 6 7 8 9 10 11 8 9 10 11 8 9 10 11 8 9 10 11
R.CL POW
H40 with 24 inputs and 16 outputs
RUN
ERR INPUT 0 1 2 3 4 5 6 7 8 9 10 11
H64 with 40 inputs and 24 outputs
R.CL POW
RUN
ERR INPUT 0 1 2 3 4 5 6 7 8 9 10 11
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111 106 107 108 109 110 111
R.CL POW
RUN
It can also be delivered with a two wire
OUTPUT ERR
100 101 102 103 104 105 106 107 108 109 110 111 106 107 108 109 110 111
R.CL
link function:
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111
HL40
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111
HL64
INPUT
Through the expansion units:
0 1 2 3 4 5 6 7 8 9 10 11 8 9 10 11 8 9 10 11 8 9 10 11
INPUT 0 1 2 3 4 5 6 7 8 9 10 1 1 8 9 10 11 8 9 10 11 8 9 10 11
H-20Z with 12 inputs and 8 outputs
POW
RUN
ERR
INPUT 0 1 2 3 4 5 6 7 8 9 10 11 8 9 10 11 8 9 10 1 1 8 9 10 11
OUTPUT 10 0 1 01 10 2 1 03 10 4 105 106 10 7 1 08 109 110 111 106 107 108 109 11 0 11 1
H-40Z with 24 inputs and 16 outputs
R.CL POW
RUN
ERR
R.CL
INPUT
POW
RUN
ERR
0 1 2 3 4
INPUT
5 6 7 8 9 10 11
0 1 2 3 4 5 6 7 8 9 10 1 1
H-64Z with 40 inputs and 24 outputs.
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111 106 107 108 109 110 111
R.CL
POW
RUN
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111 106 107 108 109 110 111
ERR
R.CL
OUTPUT 100 101 102 103 104 105 106 107 108 109 110 111
POW
0
1
5
5
8 12
9 13
0
1
5
5
0
1
5
5
8 12
9 13
0
1
5
5
or
RUN 2 6 10 14 2 6 2 6 10 14 2 6
ERR 3 7 11 15 3 7 3 7 11 15 3 7
RC L
0 0 0 0
STOP 8 8
1 1 1 1
9 9
Series H (H Board)
HL stands for H Link
40 I/O addresses
D is basic unit
Z is expansion unit
R is relay outputs
T is transistor outputs
P is PNP version (Source type)
can also be used for NPN (Sink type)
The basic units and the expansion units are available with relay outputs. These have the extension "DRP".
(E.g. H-64DRP is a basic unit with 40 inputs and 24 relay outputs)
Units are also available with transistor outputs. These have the extension "DTP". (E.g. H-64DTP is a basic
unit with 40 inputs and 24 transistor outputs)
Dip switch 3 ON
twisted pair (max 300 m) max. 8 stations
Rotary switches = channel no.
Master in a remote
connection.
twisted pair (max 300 m) max. 8 stations
Dip switch 3: Data hold=ON
Rotary switches = FF
twisted pair
(max 300 m) twisted pair
max. 12 (max 300 m)
stations max. 4
stations if
only HR is
used
8.3 Addressing:
Addressing of base units and expansion units:
UNIT 0 UNIT 1
Slot 0 (X000 - X039) Slot 0 (X1000 - X1039
Slot 2
Dummy 16
Slot 2
Dummy 16
Slot 1 (Y100 - X123 Slot 1 (Y1100 - X1123
Unit 0 Unit 1
Slot Corresponds Slot Corresponds
to board type to board type
0 X48 0 X48
1 Y32 1 Y32
2 Dummy16 2 Dummy16
Slot 3 Slot 4
(X300-) (X400-)
Slot 2 alternative alternative
Dummy 16
(Y300-) (Y400-)
Slot 2
Dummy 16
The base module is addressed to above while the H200 expansion is addressed either as unit 1 in the table
above or as further connection to unit 0.
(the first slot no. for the first expansion module is 3, the second is 4 and so on.)
switch
RUN/
P
The function of
the RUN/ERR
Error
RUN
If the On-Line cable is
wired for 19200 bps, then
19200 is only available.
(see Actsip/ActGraph
manuals)
The RUN/ERR contact
Type L1 L2 Weight
DIN mounting mm
mm kg
Width L1 mm
continues
PLC
External reset:
2 phase pulse encoder Power supply (red)
with open collector output
Phase B (green)
Phase A (white)
PLC
ternal connection
Power supply
Power supply
Power supply
Connect a diode to
inductive load
8.11 Wiring:
24 V DC
Feeding of sensors on inputs X0-X3
12 V DC
PLC
basic unit
Internally connected
(can e.g. be used to feed inputs in groups)
Filter time for WR2 Changes the time constant on the inputs X0-X7
special Filter from 5 ms to 0.02 ms when they are used as
inputs interrupt or counter inputs.
WR3 Changes the time constant on the inputs X0-X7
Filter from 5 ms to 16 ms when they are used as
interrupt or counter inputs
WR4 Removes the filter function on input X0-X7.
No filter
Y102
FUN 71 (d) Reads the current value of the High Speed Counter
The current value of the High speed counter is stored in d, which is a 16 bit word.
The content is a 16 bit binary value..
See example under FUN70.
FUN 72 (S) Sets the current value of the High Speed Counter
The content in S is stored in (ie sets) the current value of the High speed counter.
S is a 16 bit word.
FUN 73 (d) Reads the preset value of the High Speed Counter
Reads the preset value (compare value) of the High speed counter to d.
FUN 74 (S) Sets the preset value of the High Speed Counter
Sets the preset value (compare value) of the High speed counter with the value of S.
The fastest response from the counter will be obtained if an interrupt routine is used.
You should then write the program which shall be executed when the counter reaches its preset value in an
interrupt routine after the normal main program.
This interrupt routine starts with the instruction INT24.
Preset value
Current value
Interrupt routine,
PLC which starts with INT24.
progra It is run when the
m
Preset value= Current value
means a jump to the interrupt routine
Slo
LED for RUN LED for power LED for status Handle to remove
Slo
indication indication indication the module
Exp
Bit addresses for inputs have the type:
X[r][u][s][b]
Bit addresses for outputs have the type:
Slo
Y[r][u][s][b]
Word addresses for inputs have the type:
X0, Y0, WX0 or WY0 Slo
WX[r][u][s][w]
Word addresses for outputs have the type
X100, Y100, WX10 or WY10 Slo
WY[r][u][s][w]
X200, Y200, WX20 or WY20 Slo
Where
X stands for input
X300, Y300, WX30 or WY30 Slo
Y stands for output
Slo
W stands for Word address (16 bits)
External reset of
retentive
memories
External 24 V
DC supply
Connection of
240 V AC
supply
Connection
to ground Connection of
Base rack expansion rack
Serial port
(computer I/O modules I/O modules Srew
Power supply
module connection CPU for 8 or 16 for 8 or 16 terminals for
etc. ) module in/outputs in/outputs connection of
I/O.
9.3 Configuration:
There are two different types of racks:
- BSM-x . This can be used by all CPUs up to maximum 256 Inputs Outputs.
- BSH-x. With this rack system the H250 and H252 can use the High function modules.
e.g. the T-LINK module.
The H252 can on top of this address more inputs/outputs if BSH-racks are used..
POW
RUN
ERR
0
1
2
3
5
5
6 10 14
7 11 15
8 12
9 13
0
1
2
3
5
5
6
7
0
1
2
3
5
5
6 10 14
7 11 15
8 12
9 13
0
1
2
3
5
5
6
7
0
1
2
3
5
5
8 12
9 13
6 10 14
7 11 15
0
1
2
3
5
5
6
7
0
1
2
3
5
5
6 10 14
7 11 15
8 12
9 13
0
1
2
3
5
5
6
7
0
1
2
3
5
5
6
7
Maximum build up of In/Outputs.
for H252-CPU. (29 slots)
RCL
0 0 0 0 0 0 0 0 0
STOP 8 8 8 8
1 1 1 1 1 1 1 1 1
RUN 9 9 9 9
2 2 2 2 2 2 2 2 2
10 10 10 10
3 3 3 3 3 3 3 3 3
11 11 11 11
4 4 4 4 4 4 4 4 4
12 12 12 12
5 5 5 5 5 5 5 5 5
13 13 13 13
3 7 11 15 3 7 3 7 11 15 3 7 3 7 3 7 3 7 11 15 3 7 3 7
3 7 11 15
0 0 0 0 0 0 0 0 0 0
8 8 8 8
1 1 1 1 1 1 1 1 1 1
9 9 9 9
2 2 2 2 2 2 2 2 2 2
10 10 10 10
3 3 3 3 3 3 3 3 3 3
11 11 11 11
4 4 4 4 4 4 4 4 4 4
12 12 12 12
5 5 5 5 5 5 5 5 5 5
13 13 13 13
6 6 6 6 6 6 6 6 6 6
14 14 14 14
7 7 7 7 7 7 7 7 7 7
15 15 15 15
C C1 C C C C1 C C
0 5 8 12 0 5 0 5 8 12 0 5 0 5 0 5 0 5 8 12 0 5 0 5
0 5 8 12
1 5 9 13 1 5 1 5 9 13 1 5 1 5 1 5 1 5 9 13 1 5 1 5
1 5 9 13
2 6 10 14 2 6 10 14 2 6 2 6 10 14 2 6 2 6 2 6 2 6 10 14 2 6 2 6
3 7 11 15 3 7 11 15 3 7 3 7 11 15 3 7 3 7 3 7 3 7 11 15 3 7 3 7
0 0 0 0 0 0 0 0 0 0
8 8 8 8
1 1 1 1 1 1 1 1 1 1
9 9 9 9
2 2 2 2 2 2 2 2 2 2
10 10 10 10
3 3 3 3 3 3 3 3 3 3
11 11 11 11
4 4 4 4 4 4 4 4 4 4
12 12 12 12
5 5 5 5 5 5 5 5 5 5
13 13 13 13
6 6 6 6 6 6 6 6 6 6
14 14 14 14
7 7 7 7 7 7 7 7 7 7
15 15 15 15
C1 C1 C C1 C C C C1 C C
C2 C2 C2 C2
Hole distance L2
140
110 mm
mm
Connector
for exp
Bus with connectors cable or
for modules Actterm-H
110 mm
L1
138 mm
CNM-
06
cable
10-70 mm
CNM-01 cable
Special modules ACTANA-F Quick logic, Analog sampling/ 4 analog inputs/ 2 analog outputs (12 bit)
Positioning/ POSH Positioning module
Counter module CTH High speed counter module, 10 k Hz
Analog AGH-I 8 channels in, 4-20 mA, 8 bit resolution
in modules AGH-IV 8 channels in, 0-10 V, 8 bit resolution
AGH-IV2 8 analog 12 bit in Current or voltage
ACTANA-1 4 isolated analog 12 bit in Current or voltage
Analog AGH-O 4 channels out, 4-20 mA, 8 bit resolution
out modules AGH-OD 2 channels out, 4-20 mA, 8 bit resolution
AGH-OV 4 channels out, 0-10 V, 8 bit resolution
AGH-ODV 2 channels out, 0-10 V, 8 bit resolution
ACTANA-S2 4 isolated analog 12 bit in Current or voltage / 2 analog 12 bit out Current or voltage
3 digital fast inputs/ 2 digital transistor outputs
External
onnection
f inputs
Note.: -"H" in the model name stands for 16 inputs / outputs. Other modules have 8
- "X" in the table above stands for "amount of simultaneously active inputs".
Note.:
-"H" in the module name stands for 16 in-/outputs. Other modules have 8
in-/outputs.
- "Y" in table above stands for "amount of simultaneously active outputs".
Actana-S1 has 4 analog inputs and ACTANA-S2 has 4 analog inputs and 2 analog outputs.
ACTANA-S2 and Actana-F have 4 analog inputs, 2 analog outputs, 3 direct quick inputs and 2 direct
outputs.
Connection Connection Connection Digital inputs/outputs
description description description Opto insulated Transistor
Actana-S1 Actana-S2 Actana-F inputs and or contact
outputs inputs
ACTANA-S1 ACTANA-S2 ACTANA-F DIN1
DIN2
IN 1 +
IN 1 + IN 1 +
IN 1 -
IN 1 -
DIN3
IN 1 -
IN 2 +
IN 2 + IN 2 +
IN 2 -
IN 2 - IN 2 -
IN 3 + IN 3 +
IN 3 + 5-27 V DC
IN 3 -
IN 3 - IN 3 -
IN 4 +
IN 4 + IN 4 +
IN 4 -
IN 4 -
IN 4 -
OUT1 +
OUT1 +
COM 1
COM 1 Outp ut loa d
OUT2 +
OUT2 +
DOUT1
COM 2
COM 2
D IN 1
D IN 2
Outp ut loa d
D IN 3
D COM
DOUT2
D OUT 1
D OUT 2
mA mA V +10 V
mA mA V V
on the
1
ACTANA
2 3
board:
2 3
MODE3
MODE2
MODE1
MODE0
OUT 2 OUT 1 IN 4 IN 3 IN 2 IN 1
199
Additional part H200 -H252
H EM
0-20 4-20 0-1 0-10
1
mA mA V +10 V
mA mA V V
1
2 3
2 3
MODE3
MODE2
MODE1
MODE0
OUT 2 OUT 1 IN 4 IN 3 IN 2 IN 1
H or EM
1
2
Mode switch
3
Register
value decimal
-10 to +10 V Output
( 0-4095 decimal)
0 V =2047 (or 500)
or represented as 2000
(0-1000 decimal)
1000
-10 V -5 V 0 V 5V 10 V
Register Register
value decimal 0-1 V Input value decimal 0-20 mA Input or Output
4095 (or 1000) 4095 (or 1000)
4000 4000
3000 3000
2000 2000
1000 1000
0V 0.5 V 1.0 V 0 mA 10 mA 20 mA
Register Register
value decimal 0-10 V Input or Output value decimal 4-20 mA Input or Output
4095 (or 1000) 4095 (or 1000)
4000 4000
3000 3000
2000 2000
1000 1000
0V 0
5V 10 V 0 mA 4 mA 10 mA 20 mA
Address H series (Module Example: Read analog input 2 in the 2nd slot (slot no
map: Setup 4WX/4WY) 1) and add the constant 100. The result will be stored
Words (+ 10 x slot no.) in the word RESULT.
Analog input 1 WX0
Analog input 2 WX1
Analog input 3 WX2 WR0 = 100 + WX11
Analog input 4 WX3 (RESULT = 100 + ANALOG 2)
Analog output 1 WY4
Analog output 2 WY5
Not used WY6
Not used WY7
Mode 1: (valid for Actana-S and Actana-F)
Example: H200-252. If the voltage range on analog input 2 is 0-10 V, than a 5.0 V input will be
represented as 2048 if CONV IN 3 (Y90) is low and as 500 if CONV IN 3 (Y90) is high.
Mode information:
Input X12-X13 give the mode number (0-3) so the PLC can check if right mode, fitting to the program, is
set on the ACTANA board. Only mode 0-1 are allowed for Actana-S.
If the board is an Actana-F type mode 0-3 are available. X15 is high if the board is Actana-F.
The choice of PLC type on the Actana board is indicated in bit X14. If X14 is high the board is adjusted for
EM and low if it is H200.
Digital Inputs (+100 * slot no) Digital Outputs (+100 * slot no)
X0 Fast input DIN1 information hold Y80 Control of direct output DOUT1
X1 Fast input DIN2 information hold Y81 Control of direct output DOUT2
X2 Fast input DIN3 information hold Y82 Filter time 1 definition analog input 1
X3 Not used Y83 Filter time 2 definition analog input 1
X4 Not used Y84 Filter time 1 definition analog input 2
X5 Not used Y85 Filter time 2 definition analog input 2
X6 Not used Y86 Filter time 1 definition analog input 3
X7 CPU Watch dog (3 -4 Hz) Y87 Filter time 2 definition analog input 3
X8 Error on analog input 1 Y88 Filter time 1 definition analog input 4
X9 Error on analog input 2 Y89 Filter time 2 definition analog input 4
X10 Error on analog input 3 Y90 Conversion definition analog input 1
X11 Error on analog input 4 Y91 Conversion definition analog input 2
X12 Mode number information bit 0 (LSB) Y92 Conversion definition analog input 3
X13 Mode number information bit 1 Y93 Conversion definition analog input 4
X14 H series on switch Y94 Conversion definition analog output 1
X15 Actana-S / Actana-F info on switch Y95 Conversion definition analog output 2
Example: Read analog input 3 in the 3rd slot (slot no 2) and show the value on the ACTTERM-H display
(as a value in text display no 3). We want the value converted to 0-1000 and the analog signal shall have a
50 Hz filter (20 ms).
The slower part of the logic and definition of the fast logic can be changed with a period of one PLC cycle.
Actana-F mode 3
Internal DIN1
PLC DIN2
program
Quick DOUT1
PLC output Logic
flags as (Defined by PLC
DOUT2
parts of the output flags)
quick logic
External
Input quick inputs
information and
signal hold outputs
The logic for DOUT1 and DOUT2 (the quick outputs) is a combination of the PLC program logic, which
we here call the slower part and the status from the quick reaction inputs DIN1 and DIN2.
The slow logic will be programmed in the PLC program in a normal way (in Ladder or Grafcet).
The outputs in this PLC program (Y80-Y83) are parts of the quick logic combination. See below.
The logic combination can be chosen from the table Possible quick logic combinations..... Such a
combination is defined by the other PLC outputs. This means that this definition is also a part of the PLC
program. E.g. if you want following logic for the quick output DOUT1:
COND2
Y00081
PLC Program
Actana-F module
External
Y84
quick
Y85
Inputs and
Y86 Defines the
logic Outputs
Y87
combination
Y88
Y89 DIN1
DIN2
Part of the logic
(the slow part)
PLC DIN1 PLC DIN2 DOUT1
COND1 COND2 DOUT1
Y80 ( )
Y00080 Y00081
Y81
Y82 PLC
COND3
DIN1 DOUT2 DOUT2
( )
Y83 Y00082
Y90 PLC
COND4
DIN2
Y91 Y00083
X3 Quick logic
X2
processing
X1
X0
signal
Y00081
DOUT1 =Y80*DIN1+Y81*DIN2
d/
PLC DIN1 DOUT1
h/ PLC
COND3
DIN1 DOUT2
/( )
COND1 Y00082
Y84=1
/( Y86=1
PLC
DIN2
) COND4
Y85=1 Y00080 Y87=1
Y00083
DOUT2 =Y82*/DIN1+Y83*DIN2
PLC DIN2
COND2
Y00081
DOUT1 =Y80*/DIN1+Y81*DIN2
Seen out of the PLC program point of view the condition could be:
PLC program: The fast logic looks like:
PLC DIN1 DOUT1
COND1
( )
Y00080
PLC DIN2
COND2
Y00081
PLC DIN1 PLC DIN2 DOUT2
COND3 COND4
/ ( )
Y00082 Y00083
DIN0 DOUT0
DIN1
Y81
Y82 Y83
Where a is inverted (NOT) or normal function of DIN1: normal if Y84 is "0" and / (inverted) if Y84 is "1"
Where b is Boolean "*" (AND) or "+" (OR): "*" if Y85 is "0" and "+" if Y85 is "1".
Where c is inverted (NOT) or normal function of DIN1: normal if Y86 is "0" and / (inverted) if Y86 is "1"
Where d is Boolean "*" (AND) or "+" (OR): "*" if Y87 is "0" and "+" if Y87 is "1".
Where e is output contact DOUT1 or TRUE DOUT1 if Y88=1 and TRUE if Y88 is 0
Where f is output contact DOUT2 or TRUE DOUT2 if Y89=1 and TRUE if Y89 is 0
This term gives a possibility to make parallel connection of the above described fast logic.
Y00090 Y00091
DOUT1=Y80*/DIN1+Y81*DIN2+Y90*DOUT1 DOUT2=Y82*/DIN1+Y83*DIN2+Y91*DOUT2
Application example:
A machine producing products at a very high speed has to cut and punch at a very quick response
when two detectors indicate the end of the product. But there are different types of products and
only product B shall be punched when detector B indicates. When detector A indicates product
A, B and D shall be punched.
All products shall be cut when detector B indicates.
The response time from the indication of the detector until the output signal starts to the knife has
to be shorter than 400 and 300 s.
Detector A (DIN1)
Detector B (DIN2)
50 ms hold
Cut output (DOUT1)
Punch output
(DOUT1) only product B product A, B and
There is obviously no way to handle such a quick logic and response by the PLC program and ordinary
inputs. (Even with interrupt handling we will have longer responses than 2 ms.)
Therefore we use the quick logic on the Actana-F board and write following program:
PROD
D
R003
AUTO PROD DIN2
B
R000 R002
AUTO PUSH
BUT
/
R000 X00100
*1 Statements like LOGIC DEF1 = 0" can be excluded as the flag is "0" when it is unused.
These outputs can be used as normal contact outputs and they can be changed during RUN.
That means that the quick logic program itself can be changed during RUN as often as every
PLC program cycle.
To achieve a combination of fast response of position and logic you can combine the two modules CTH
and Actana-F. Connect one of the external outputs of CTH to an input (DIN1 or DIN2) of Actana-F and
combine the fast counter response with the rest of the quick logic on the Actana-F module. (see description
of CTH, page 257 )
Copyright Actron AB 1994 217
Additional part H200 -H252
Program example.
When the analog signal has been high the analog values of input 1-4 stay and they can be copied
during the next PLC program cycle.
The sampling can also be started by the internal conditions. If output Y91 (internal sampling
control) is set high, it gives the same result as when DIN3 goes high. In practice:
I/O Update
I/O Update
I/O Update
I/O Update
I/O Update
I/O Update
I/O Update
Sample no170
Sample no3
Sample no4
Sample no5
Sample no2
Sample no1
Read Read Read Read
DIN3 or etc. value 1 value 2 value 3 etc. value
Y91 170
X4
X5
Y90 (High)
Analog
value
input 1
To achieve an interval between the samplings with small variation the value of analog input 2 to 4
will be frozen until the repeated sampling is ready. Even the quick logic is frozen during the
sampling.
Program example.
When X5 is high the collection of samples
starts. The POINTER (Word) is reset. The
PLC collects one value every PLC cycle until
all values are stored in the PLC memory
(X5 goes low) from memory position
Copyright Actron AB 1994 221
Additional part H200 -H252
Application example:
The result of an expansion process during a short time period (maximum 100 ms) will be
analysed. The maximum will be detected (amplitude and time ). When the expansion starts a
digital input goes high.
Use mode 3. Connect the digital input to DIN3 and the analog signal to Channel 1.
Set the sample rate to 1 ms. (That means that 170 samples will cover 170 ms)
Set the filter time of channel 1 to no filter.
Sampling interval
Max Amplitude
Input DIN3
50 100 ms
time for max.
Mode information:
Input X12-X13 give the mode number (0-3) so the PLC can check if right mode, fitting to the program, is
set on the ACTANA board.
X12 X13 Mode no. X14 PLC type X15 Type of board
0 0 Mode 0 0 Series H 0 Actana - S
0 1 Mode 1 1 Series EM 1 Actana - F
1 0 Mode 2
1 1 Mode 3
Digital Inputs (+100 * slot no) : mode 2 and 3 Digital Outputs (+100 * slot no) : mode 2
X0 Fast direct input 1 information hold Y80 Logic output 1 (condition 1 for DOUT1)
X1 Fast direct input 2 information hold Y81 Logic output 2 (condition 2 for DOUT1)
X2 Fast direct output 1 information hold Y82 Logic output 3 (condition 1 for DOUT2)
X3 Fast direct output 2 information hold Y83 Logic output 4 (condition 2 for DOUT2)
X4 (Analog) sample input information hold Y84 Logic expression definition 1
X5 Read Sampling Start info Y85 Logic expression definition 2
X6 Not used Y86 Logic expression definition 3
X7 CPU Watch dog , 3 - 4 Hz Y87 Logic expression definition 4
X8 Error on analog input 1 Y88 Control of direct output DOUT1
X9 Error on analog input 2 Y89 Control of direct output DOUT2
X10 Error on analog input 3 Y90 Self hold definition DOUT1 (1 = DOUT1, 0= TRUE)
X11 Error on analog input 4 Y91 Self hold definition DOUT2 (1 = DOUT2, 0= TRUE)
X12 Mode number information bit 0 (LSB) Y92 Filter time definition analog input 1
X13 Mode information bit 1 Y93 Filter time definition analog input 2-4
X14 H series on switch Y94 Conversion factor definition analog input 1-4
X15 Actana-S / Actana-F info on switch Y95 Conversion factor definition analog outputs
Mode 3
Y80 Logic output 1 (condition 1 for DOUT1)
Y81 Logic output 2 (condition 2 for DOUT1)
Y82 Logic output 3 (condition 1 for DOUT2)
Y83 Logic output 4 (condition 2 for DOUT2)
Y84 Logic expression definition 1
Y85 Logic expression definition 2
Y86 Logic expression definition 3
Y87 Logic expression definition 4
Y88 Sampling interval 1
Y89 Sampling interval 2
Y90 Repeated high precision sampling control
Y91 Internal sampling control
Y92 Filter time definition analog input 1
Y93 Filter time definition analog input 2-4
Y94 Conversion factor definition analog input 1-4
Y95 Conversion factor definition analog outputs
9.7.1 Actterm-H
ACTTERM-H TERMINAL
FOR HITACHI HB/H200
ACTTERM-H
7 8 9
7 8 9 F1 STOP START
4 5 6
4 5 6 F2 PROG
1
PROG
2
PROG
3
PROG
4
1 2 3
1 2 3 F3 PROG
5
CONV
LEFT
LIFT
Up
CONV
RIGHT
PROG
5
CONV
LEFT
LIFT
Up
CONV
RIGHT
CLEAR 0 ENTER
Features:
-32 keys, all free to use as function keys. Out of these 12 are redefined as numeric keys and CLEAR,
ENTER. All keys are reflected on bit memories and they can be used just like an input in the
PLC program.
- 16 LED's. Each one reflects a bit memory in the PLC memory. They can be used just like an output in
the PLC program.
- Text memory for 32 k alpha numeric characters, which is divided into different texts, to be shown on
the display
- Expansion memory. Memory with battery back up for storage of up to 16 k 16-bit words. (For
Statistics, History storage, recipes etc.) Can be used as a large extension of the ordinary PLC
memories.
- Display for texts and values. The display is an intensive vacuum florescent type (high quality and very
easy to read in any light).
- Buzzer to call for attention or to amplify the response from the keys.
9.7.1.1 Start up
Macro ACTTERMH
(Ladder bloc ks.)
In the help program there are pre defined a number of inputs, outputs and internal memories of both bit and word
type. These can directly be referred to as names in clear text. (See appendix A) E.g.
DISPLAY Defines which text/value display to be shown.
VALUE1 - VALUE6 Defines what values to be displayed.
Configuring.
Not needed for H20-H60 without expansion.
Max. amount
of slots used 0
1
0
1
with H200/H252 2
3
2
3
is 15. 4 4
5 5
(28 for H252). 6 6
7
2 x BSM9 is 8
7
8
impossible. 9 9
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
Upper left: Basic configuration. The configuration never need to be changed if you connect
ActTerm-H to a HB without expansion unit.
Upper right: If you have a HB and you connect an expansion module between the base unit and
ActTerm-H, the expansion module is defined in the configuration without changing anything
else.
Lower left: If you connect ActTerm-H to a H200-system you have to configure the system in the usual way
through changing and adding modules. Empty slots are filled with "Dummy 16".
Lower right: H200 base unit with 4 modules plus CPU in a BSU-7 with room for 4 modules exclusive CPU.
Two empty slots must be filled up. In the expansion unit there are 2 slots but room for 4.
Therefore 2 "Dummy-16" are defined in the last slots of the rack.
9.7.3.3 Programming
Each function key has a name when the system is started (F1 - F20). In the program these can be named by its
relevant name.
7 8 9
7 8 9 F1 F5 F9 F13 F17
4 5 6
Example:
When you push the key "LIFT UP" the Lift motor
START STOP shall start if the end position "LIFT TOP" in not
closed.
LIFT As long as the lift moves, the Light emitting diode
UP
(LED 2) on the keyboard will light.
LIFT GRIP
DOWN LIFT LIFT M1
UP TOP LIFT+
HEAT HEAT
ON OFF LED 2
9.7.3.3.5 How to type the texts and transfer the texts to the terminal
Typing text:
The texts are written in Actsip-H or Actgraph through
System Program Alloc ation Printout Files Communication Setup
opening the text "Type In Window" (Press F2 and choose
CONDI Nr. Text
ACTTERMH and the window on the screen will open. (see TION 1 Text no. 1 .....
next page) This is a short list of the existing texts and the 2 Adjust the le....
3 Alarm no. 2 .....
number they have. Choose the text number from the list and 4 Set value is....
5
type <Enter>. Reply "No" on the question "Is this text for 6
7
printer?" A new window is opened with the same with as the 8
9
display screen. Type the text as you want it to look like on the 10
11
screen. When you are ready, press ESC and store your text. 12
13
14
When you have created all the texts press ESC. If you are 15
Mark Searc h Hor-Exp Ver-Exp Goto + Comm - Comm Erase Comm ACTTERMH
232 Copyright Actron AB 1994
Additional part H200 -H252
ON-line you will get a question if you want to transfer the texts to the terminal.
9.7.3.3.7 Documentation:
Choose "Printout-Texts ActTerm-H" .
The symbols that are used to define where the values are on the display are @, } and ]. Normally you find these
on your keyboard as second choice alternatives (the key together with the Alt-key). If they are not present on
your keyboard, hold down the Alt-key and press following number combinations:
<64> for @
<125> for }
<93> for ]
The first value, from top to bottom (from left to right) is called "VALUE1". This name is already written into
the help project (ACTTERMH) and therefore the name can be written directly in clear text..
The second value is called "VALUE2", the third is called "VALUE3" etc.
A value can consist of 1-5 figures, which are shown on the display. The amount of figures that are shown is decided
from the number of "@" (together with the end character) that are written in the text.
If the value is a binary value the end character is "}" and if the value is represented as a BCD value the end
character is "]".
(Most values in the H series are binary values. Some values, e.g. the real time clock are given as BCD values.)
e.g.
... @@@@} ... means show a binary value with 5 digits.
... @@@] ... means show a BCD value with 4 digits.
... @@} ... means show a binary value with 3 digits.
Temperature is 23 C
The Time is 17:35
Example.
This display is a mixture of text and two values:
The text is: Temperature is 23 C
Temperature is -- C The Time is 17:35
The time is --:--
Value 1 is a register in the PLC, which contains
the temperature and value 2 is a register, which
contains the clock (Hours, Minutes)
If this display has number 84 and the first value is Register WR101 "TEMP" and the second value is register
"HOUR,MIN", which contains the hour/minute from the real time clock the PLC is activated in the following
way:
Ladder programming (Actsip-H) Grafcet programming (Actgraph)
Example:
Level is 3361 mm
Set maximum 6700 mm
Programming:
Ladder programming (Actsip-H) Grafcet programming (Actgraph)
"KEYIN" contains always a value, which is typed in on the numerical key pad. The "CLR"-key resets KEYIN
automatically.
To give a value, which is displayed when you start the pre-set the word "KEYINIT" is available. If you connect
KEYINIT to a value in the moment you change the display KEYIN will start with this value.
In the example above you start the pre-set with the old value of MAX_LEVEL before you start to give in another
value.
To enable changing of a part of a text on a display without changing the rest there is an alternative to the
DISPLAY command. This consists of two commands:
"TEXT" and "TEXTPOS"
TEXT specifies as DISPLAY the number of the text. These texts are created exactly as the DISPLAY texts
described above.
TEXTPOS specifies the position on the display where the text shall start.
01234567890123456789
01234567890123456789
TEXT no 69 is "LOW"
TEXT no 70 is "NORMAL"
TEXT no 71 is "HIGH"
and TEXT no 72 is "CRITICAL"
and count up or down the "display counter" within the area (0-40) Then the text moves on the display.
WRITEADDR
Value
from the PLC
WRITEVALUE
If you shall write a number of values, e.g. copy a recipe to the expansion memory you can do as follows:
Ladder programming (Actsip-H) Grafcet programming (Actgraph)
WR RD_ADR
WR WRI_ADR INDIRECT WR RD_VAL
WR WRI_VAL
WRITE IND
Where "start address1" is the first address in the expansion
pointer = 0
memory, "start address2" is the lowest of the values that are WR RD_ADR = start address2+ pointer
going to be copied to the expansion memory. "pointer" is WRITEVAL
WRITEADR
= WR RD_VAL
= start address1 + pointer
reset before writing and the write condition shall go false WRITEMEM
pointer =pointer+ 1
when POINTER has reached the maximum amount of
values to be copied.
To make indirect addressing in Grafcet programming,
load the macro INDIRECT. This performs reading in
the WR area on address WR (0+WR RD_ADR) to the
value WR RD_VAL.
To read from the expansion memory you must put the read address in the expansion memory in the word
READADDR and thereafter read from the word
Expansion READVALUE. The reading is executed when the flag
memory READMEM goes high. READMEM is reset automatically
16888 after reading. If only one value shall be read you should only
activate READMEM once (edge condition or similar).
READADDR The value you read is not available in the word READVALUE
Value
to the PLC until one PLC program cycle after the READMEM command
READVALUE has been executed. Therefore a flag is available to indicate when
it is OK to read. This is called READ READY. Thereafter it is
automatically reset.
If you want to read a number of values, e.g. copy a recipe from the expansion memory you can do as follows:
Ladder programming (Actsip-H) Grafcet programming (Actgraph)
WR RD_ADR
WR WRI_ADR INDIRECT WR RD_VAL
WR WRI_VAL
WRITE IND
P POINTER = 0
READADDR = START ADDR + POINTER
STARTADDR is the first address in the VALUE(POINTER) = READADDR
READMEM = 1
expansion memory, VALUE is the lowest of POINTER = POINTER + 1
the values that will be copied from the POINTER = MAX AMOUNT
expansion memory. POINTER shall be reset To make indirect addressing in Grafcet programming, load
before the reading and the read condition shall the macro INDIRECT. This performs writing of the value
be reset when the POINTER has reached the WR WRI_VAL in the WR area on address WR (0+WR
maximum value to be copied. WRI_ADR) when the flag WRITE IND is set..
9.7.4 ActTerm-H with printer port
Up to 6 values can be printed in the same printout. If more values are needed, make two or more printer texts to be
printed after each other.
PRINT = 12
PRINT = 12
CONDI
TION
When you have very large programs the printer will DRAW MODE 0060 (0060) Offline H-200 Internal 7.5 Ks
print slower than for small or medium size programs.
If you want a quick printout you can activate a flag which is called QUICKPRINT.
Observe that if this flag is activated the program after the ACTPRINT macro will not be executed during
the printout. If the application needs a faster response you should either not use the QUICKPRINT command,
place the time critical part of the program before the ActTerm-H macro or use an interrupt routine for the
critical part.
9.7.4.2 Mounting
ActTerm-H is connected to the PLC with an expansion cable, e.g. CNM-06. The total distance should not
exceed 3.0m total, including the length of the rack backplane.
The panel has 8 screws on the back housing. Remove the housing. Put the panel in from the front side and
mount the housing from the back . The panel is now installed.
-
Expansion
Expansion - cable
cable
Back side of
the terminal
PLC (series HB)
-
Expansion
cable
Expansion
cable
Back side of
the terminal
PLC (H200)
Power supply:
The power could e.g. be supplied from the external 24 V supply on the PLC.
If this already is heavily loaded a simple external 24 V power supply is recommended.
The continuous 24 DC current consumption is max. 200 mA. This means that the external (on screw connector)
power supply can be used as long as the total load does not exceed the total capacity. (400 mA for HB and
H200).
9.7.4.2.3 Measurements
The hole in the panel shall be 199
187 mm (High) x 199 mm (Wide). The depth is 50 mm
187
Cable length:
For the H board and H200/H250/H252 you can always safely use a 1.0 m expansion cable.
You can use up to 3.0 m expansions if you apply good shielding. (according to our tests)
Observe that when you calculate this length it shall be the total distance from the CPU. (incl. bus and
cable)
PLC base rack
total length 3.0 m
ACTTERM-H
PLC expansion
Slot occupation:
ActTerm-H occupies one slot. (even if it is not connected in the slot space)
That means that the maximum number of modules for H200 and H250 is 15.
For a H252 the maximum will be 28.
Set-up:
The set-up is described in the manual. Please do not forget to define empty slots as "Dummy 16", which
says "16" in the configuration and not "Dummy 0", which is blank in the configuration.
A H board PLC is always X48,Y32,16
A HL board PLC is always X48,Y32,LINK or X48,Y32,REMOTE depending on the jumper position.
ACTTERM-H
RIOH-TM is placed in the main unit and RIOH-TL in the slave units.
Max. 8 slave units can be connected in a chain.
The address area is divided into eight channels.
Each channel correspond to a slot in the slave rack. The channels are numbered in order from the first rack
to the last one and the switches on the modules are set according to this.
On RIOH-TL there are two switches. The first specifies the first channel in the rack and the second
specifies the number of channels (I/O modules) in the rack,
The CPU in the master rack sees the inputs/outputs in the slave rack exactly as they where in the master
rack with the difference that the address number tells that it is a remote module.
E.g. output 12 in the second module ( channel 4) in the remote station 1 according to above: Y10112. See
also addressing on page 9.
Program example:
PLC 1 shall read information from the two input modules on PLC 0 and reflect these on the two output
modules. PLC 0 shall read the input module on PLC 1 and reflect this on memory word WR100. This shall
also be reflected on the output module on PLC 2.
The link area for each PLC must be set under PLC- Setup in the programming software.
You can have two different link chains from a PLC.
Link chain 1
Link chain 2
With the T-LINK-module (for H250-H252) the address area can be increased to 1024 words/ 16 k bits. It is
also possible to program the PLC over the Link system. With LINK-02H you can connect to a net together
with H300-H2002. The connection will be to a LINK-H-module.
Copyright Actron AB 1994 255
Additional part H200 -H252
Flags, which
indicate the
Comparison position
values
By using a jumper on the board you can choose between BCD counting and binary counting in the counter
value (see instructions in delivery)
It takes some time for the PLC to read the flags CU0 > and CU1 > and make the logic combination. If this
time delay is too long you have to use the external outputs of the CTH, which have a quick response. Then
you must connect the outputs to an external logic to work as in block 3 in the example above.
OUT0 OUT1 EXT
OUT 1
/( )
or you can connect the CTH outputs to the Actana-F Quick logic inputs DIN1 and DIN2 and let the
Actana-F construct the logic. (see Actana-F description )
To achieve a combination of fast response of position and logics you can combine the two modules CTH
and Actana-F. Connect one of the external outputs of CTH to an input (DIN1 or DIN2) of Actana-F and
combine the fast counter response with the rest of the quick logic on the Actana-F module. (see description
of Actana-F, page 199 )
Example: ** Reset of High speed Counter and flags at Home (X100) position
HOME ALL C
1 LR
Let us say that we ( )
X00100 Y00089
have the same
example as above but HOME
2
HIGH COUNT = 0
our positions are
X00100
11240 for ON and
Y94 OUT E Forced outputs Enables forced output of the outputs OUT0-
OUT3. (When OUT E is high the flags
OUT0-OUT3 control the outputs
individually)
Control flags IN
Address+ Short Name Description
base
address
X0 CPE Preset End flag Indicates when the counter value is preset.
(hand shake after the CP flag has gone high)
X1 MCE Marker Enable End Indicates when the ME flag has gone high
(hand shake after the ME flag has gone high)
Reset input (M) is active
X4 =CU 0 = flags These flags goes high when the
X2 =CU 1 (goes high when the counter = the compare value for each of the four
X12 =CU 2 counter = the compare compare values. (CU0 to CU3). They remain high
X10 =CU 3 values) until the = flag CLR flags goes high. (=0 to =3)
X5 >CU 0 > flags These flags goes high when the
X3 >CU 1 (goes high when the counter > the compare value for each of the four
X13 >CU 2 counter > the compare compare values. (CU0 to CU3)
X11 >CU 3 values)
X6 UF Under Flow BCD mode: goes high when the counter goes from 0 to 9999.
BIN mode: goes high when the counter goes from 0 to FFFF.
It is not reset before the UFC-flag goes high.
X7 OF Over Flow BCD mode: goes high when the counter goes from 9999 to 0.
BIN mode: goes high when the counter goes from FFFF to 0.
It is not reset before the OFC-flag goes high.
X15, X16 A, B Phase input A,B Pulse inputs A and B
X9 M Reset input Shows status of the reset counter input M input
X8 Phase Indicates rotation direction
263
Additional part H300 -H2002
Power supply
module
Start / Remote/
Stop Key
Error code
indication
Serial port
(Computer
connection)
Connection of
240 V AC
Choice of 240 /
/110 V AC
Ground
RUN contact
LED for
Connection of CPU module indication of in-
expansion unit Extra RS232 Memory Cover
or out signal
connection cassette
10.1.1 Differences between H300-H2000 and H302-H2002
H302-H2002 have a faster cycle time than H300-H2000. It is the cycle time of H302-H2002 which is
mentioned in the tables.
H302-H2002 have an extended instruction set, see list of instructions page 271
There are built in functions like PID and trigonometric functions.
See separate description
H302-H2002 have an extra serial port on the front for communication with e.g. printers, instruments or
computers. In order to program this you can use the TRNS-, QTRNS- ,RECV- and QRECV-instructions.
See separate description.
H302-H2002 offer the possibility of using faster On-Line programming. Then RAM3 -x memory modules
are used according to the table.
EXU racks
10.2 Communication:
Communication via the CPU port, see page 157.
10.2.2 COMM2-H
Up to 32 stations
COMM-2H has a serial port which has the same protocol as the CPU port.
Through defining in the program, which CPU you want to talk to you can program or control the one you
want. See also the Actsip manual.
15 15
8
COM1 COM1 15
XAC10AH 16 XAC10BH
XAC20AH XAC20BH COM1
XDC24AH
23 XDC48AH
COM2
24
Internal
31
logic
COM3
0 0 0
7 15 7
COM0
COM0 COM0
8 16 8
15 31 15
COM1
XDC24BH XDC12DH XINT0AH
COM1
XDC48BH XDC24D2H COM1
XHS24BH
24 48
31 63
COM3 COM3
270
Appendix
11.1 PID-instructions:
FUN 0 PID-init. Decides the addresses of the PID-functions
FUN 1 PID control Execution management of PID operation
FUN 2 PID calculation Execution of PID operation
FUN0 decides a table, which defines the amount of PIDs and where in the PLC memory area to find the
addresses of these PIDs.
E.g. FUN0 (WR400) defines following table:
WR400 Error code 0
WR401 Error code 1
WR402 Error code 2
WR403 FUN0 normal operation
WR404 Loop count (amount of PIDs) 1 to 64 PIDs
WR405 Real addess*1 of PID1 table
WR406 Real addess*1 of PID2 table
WR406 Real addess*1 of PID3 table
*1 real address means the internal address number of the CPU. When the address is written you must
therefore use the instruction ADRIO =(d,S), which converts the specified address to the internal format.
Therefore if the PID1 table shall start on
WR200 and PID2 table shall start on WR300 ADRIO = (WR405,WR200)
ADRIO = (WR406,WR300)
you shall write following instruction:
Now the address area WR200 and following 48 words will contain the PID information about PID1 and
WR300 and following 48 words will contain PID2 etc.
There is also a bit table belonging to each PID (16 bits) The start of this table is defined by the first word in
the PID table. Use also here e.g. ADRIO (WR200,R100)
WR200 Address of the start of the bit table R100 Execution flag
WR201 Sampling time R101 Non-Bumbles flag
WR202 Proportional Gain R102 PID constant change flag
WR203 Integral constant R103 S Flag
WR204 Differential constant R104 R Flag
WR205 Differential delay constant R105 D-FREI flag
WR206 High output limit R106
WR207 Low output limit R107
WR208 Initial value INIT R108 PID RUN Flag
WR209 Set value address R109 PID in execution flag
WR20A Measured value address R10A PID constant OK flag
WR20B Output value address R10B Over High Limit flag
WR20C Set value bit pattern R10C Under High Limit flag
WR20D Measured value bit pattern R10D FUN2 Error flag
WR20E Output value bit pattern R10E
WR20F Not used (reserved) R10F
WR210 Not used (reserved)
WR211 Not used (reserved)
Initialsation of the PID definition table telling about amount of PIDs and
start adddress.
INIT
WR0404 = 3
ADRIO(WR0405 , WR0200 )
R7E3 ADRIO(WR0406 , WR0250 )
ADRIO(WR0407 , WR0300 )
FUN 0 (WR0400 )
Normal program
(setting of the bit outputs R100 - through normal logics.
END
Interrupt scan 20 ms.
Exexcution of the 3 PIDs (if not WR403, error information, is 0
Then the jump passes the FUN1 and FUN2 instructions )
INT 1
WR0403 JMP 0
==
0
FUN 1 (WR0400 )
FUN 2 (WR0200 )
FUN 2 (WR0250 )
FUN 2 (WR0300 )
LBL 0
RTI
For more detailed information, see Hitachi Instruction manual (software)
11.2 Trigonometric functions:
FUN 10 Sin function See short description below and separate detailed description
FUN 11 Cos function "
FUN 12 Tan Function "
FUN 13 Arc Sin function "
FUN 14 Arc Cos function "
FUN 15 Arc Tan function "
The Degree argument is fetched from S E.g. to get SIN( 40) will be:
WR, WM or WL words and the result goes to S+1 and S+2:
Appendix
12 Appendix:
MSB Most Significant Bit The bit which represents the highest position (normally the left one)
LSB Least Significant Bit The bit which represents the lowest position (normally the right one)
MSD Most Significant Digit The digit (4 bits) which represents the highest position (normally the left one)
LSD Least Significant Digit The digit (4 bits) which represents the lowest position (normally the right one)
279
INDEX
280
Index
A
C
abbreviations, 5
Cable connection, 156
Absolute value, 90
Cable length, Actterm-H, 253
ACTANA-F module, 207
CALL, 106
ACTANA-S, 200
Change of an existing block, 123
ActGraph, 132
Choice of PLC, 114
Action boxes, 141
Circuit diagram, H300-H2002, 270
Actions, 134
COMM2-H, 266
Activity condition, 138
comments, 119
ActServ, 157
Compare block, 124
Actsip-H, 116
Comparison, 8, 124
Actterm-H, 227
Comparison contacts, 31
Actterm-H, Start up, 229
Comparison expressions, 50, 70, 143
Address map, 204
Comparison instructions, 44
addressing, 9
Complex logic, 32
Addressing, 9, 168
Computer programming, 116
Addressing of Remote modules, 169
Condition END, 101
Allocation of memories, 119
configuration, 117
Alternative branch, 137
configure the System, Actterm-H, 230
Analog inputs sample and hold, 220
Contact symbols, 22
Analog modules, 200
Control commands, 54
Analog modules Current, 198
Conversion factor, 204
Analog modules Voltage, 198
Conversion factor, Actana-F, 225
Application commands, 54, 96
Conversions, 52
Arithmetic, 126
Converting, 91
Arithmetic box, 8, 31
Copy, 57
Arithmetic instructions, 46
Copy data, 87
Arithmetics, 48, 59, 125
Counter programming, 32
ASCII-conversion instructions, 275
countermeasures, 158
Counters, 14, 40
B CPU link, 163
CPU-port, 157
BASICH-module, 104 CTH High speed counter module, 258
Battery backup, 15 current value, 43
BCD addition, 62
BCD division, 67
BCD multiplication, 65
D
BCD shift, 81, 85
D, 7
BCD subtraction, 64
DDE server, 157
BCDBIN, 93
Decimal, 277
Binary, 277
Decode, 93
Binary addition, 60
Detailed Actions, 136
Binary division, 66, 68
Detection of short pulses, 203
Binary multiplication, 64
DFN-Contacts, 29
Binary multiplication with +/- signs, 66
DIF, 29
Binary subtraction, 63
Direct update, 150
bit, 7
DISPLAY, Actterm-H, 233
Bit Count, 96
Distribute, 100
bit nr, 9
Documentation, 130
Bit operations, 50, 73
282
Index
X Z
Zoom, 144
X, 7