Description Format; Program Description Format - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

2.1

Description Format

(1) Program 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)
LBL1
delay on
[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.
[2] Label :
Use the "Label" field to describe, for example, the branch destination for a branch instruction.
[3] Mnemonic :
Use the "Mnemonic" field to describe the instruction to be executed. For details on the instructions, see Chapter 5,
"Instruction Words."
[4] Parameters : Use the "Parameter 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.
[5] Comment :
Use the "Comment" field to describe a comment on each line.
Note 1 : Please describe the instruction in the line that describes the label. The program might not upload correctly if the
instruction is not described.
Note 2 : The item that can be uploaded are Label, Mnemonic, and Parameters. Comment cannot be uploaded. Moreover,
when the program is uploaded, the label name is changed.
Note 3 : When a program including the line where nothing is described was downloaded and that program is uploaded, the
empty line is deleted. In addition, because program counter monitor (d023) doesn't count the empty line, the
number of Line is not corresponding to the value of the program counter.
Example) When an instruction of the fifth line is executed in a program including the empty line in the second line
and the third line, a value of the program counter is 3.
FW
TD (1)
1000
2-1
Example of comment
Chapter 2 Syntax
Comment
Parameters
Mnemonic instruction code
Label

Advertisement

Table of Contents
loading

Table of Contents