Chapter 3 Syntax
3 - 1
3.1 Code Description Format
Each line of a program consists of the "Label," "Mnemonic," "Parm 1 to 6," and "Comment" fields. The
"Mnemonic" field is used to describe an instruction word. Some instruction words do not require
parameters.
(Example)
3.1.1 Line
A line is the instruction unit of a program. You can describe one instruction word per line. It takes 2 ms to
execute each line. One instruction corresponds to one step of the program.
3.1.2 "Label" field
Use the "Label" field to describe, for example, the branch destination for a branch instruction.
3.1.3 "Mnemonic" field
Use the "Mnemonic" field to describe the instruction to be executed. For details on the instructions, see
Chapter 5, "Instruction Words."
3.1.4 "Parm 1 to 6" fields
Use the "Parm 1 to 6" fields to describe the arguments required to execute an instruction. Up to six
arguments can be described as required for the instruction word described on the same line.
3.1.5 "Comment" field
Use the "Comment" field to describe a comment on each line.
Comment
Parameters
Mnemonic instruction code
Label
LBL1 delay on
FW
TD(1)
1000
Example of comment
Содержание SJ700 Series Software
Страница 8: ...Contents vii ...
Страница 10: ......
Страница 16: ...Chapter 1 Introduction 1 6 ...
Страница 18: ......
Страница 24: ...Chapter 2 Creation and Execution of a User Program 2 6 ...
Страница 26: ......
Страница 30: ...Chapter 3 Syntax 3 4 ...
Страница 32: ......
Страница 54: ......
Страница 102: ......
Страница 110: ...Chapter 6 Interface with the Inverter 6 8 ...
Страница 112: ......
Страница 115: ...Chapter 8 Appendix 8 1 Inverter Parameters and Available Settings 8 1 ...
Страница 116: ......