Call Statement - Hitachi SJ700-2 Series Instruction Manual

Easy-sequence programming software ezsq
Hide thumbs Also See for SJ700-2 Series:
Table of Contents

Advertisement

- Sample program (when Xw = 2)
U(00) =
Xw
select
U(00)
case
0
Yw =
U(00)
case
1
Yw =
U(00)
case
2
Yw =
U(00)
case
4
Yw =
U(00)
case else
Yw =
0
end select
Y(00) =
1

call statement

- Format
Format
call <subroutine name>
- Explanation
This instruction branches processing unconditionally to the subroutine specified by <subroutine name>.
After the subroutine is executed, processing proceeds to the instruction that follows the calling step.
- Sample program
entry
call
SUB1
    :
end
sub
SUB1
    :
Y(00) =
1
    :
sub end
Sequence of execution
:(1)
:(2)
:(3)
: 
: 
: 
:(4)
:(4)
: 
: 
: 
:(5)
:(6)
Instruction to unconditionally branch to a subroutine
This instruction branches processing unconditionally to the subroutine
specified by <subroutine name>.
: Call subroutine "SUB1".
: Called subroutine
5 - 11
Chapter 5 Instruction Words
Description

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sj700 series

Table of Contents