![Hitachi SJ700 Series Software Instruction Manual Download Page 65](http://html.mh-extra.com/html/hitachi/sj700-series-software/sj700-series-software_instruction-manual_140536065.webp)
Chapter 5 Instruction Words
5 - 11
- Sample program
(when Xw = 2)
Sequence
of
execution
U(00)
= Xw
:
(1)
select U(00)
:
(2)
case 0
:
(3)
Yw
= U(00)
:
case 1
:
Yw
= U(00)
:
case 2
:
(4)
Yw
= U(00)
:
(4)
case 4
:
Yw
= U(00)
:
case
else
:
Yw
= 0
:
end
select
:
(5)
Y(00)
= 1
:
(6)
call statement
Instruction to unconditionally branch to a subroutine
- Format
Format Description
call <subroutine name>
This instruction branches processing unconditionally to the subroutine
specified by <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
: Call subroutine "SUB1".
:
end
sub
SUB1
: Called subroutine
:
Y(00) =
1
:
sub end
Summary of Contents for SJ700 Series Software
Page 8: ...Contents vii ...
Page 10: ......
Page 16: ...Chapter 1 Introduction 1 6 ...
Page 18: ......
Page 24: ...Chapter 2 Creation and Execution of a User Program 2 6 ...
Page 26: ......
Page 30: ...Chapter 3 Syntax 3 4 ...
Page 32: ......
Page 54: ......
Page 102: ......
Page 110: ...Chapter 6 Interface with the Inverter 6 8 ...
Page 112: ......
Page 115: ...Chapter 8 Appendix 8 1 Inverter Parameters and Available Settings 8 1 ...
Page 116: ......