Inputting math, logic, and comparison instructions, Inputting conditional instructions, Inputting functions – Yaskawa MP900 Series Machine Controller for Standard Operation User Manual
Page 394

7.3 Creating Ladder Logic Programs
7-27
7
Inputting Math, Logic, and Comparison Instructions
The cursor normally moves to the right when the Enter Key is pressed after inputting the
math, logic, or comparison operation. The cursor will move to the beginning of the next line
when window size restrictions do not allow further instruction input to the right or after the
STORE instruction appears.
As an example, the procedure to input the following instructions is shown below.
1 0000
|- MW01000 N
Æ MW02000
1. Select the INTEGER ENTRY (|-) instruction.
2. Enter the register number, MW01000.
3. Select the STORE ( ⇒ ) instruction.
4. Enter the register number, MW02000.
Inputting Conditional Instructions
There are no special instructions provided for conditional instructions. Select the [] instruc-
tion to show that an instruction is conditional. The instruction inside the square brackets [] in
the following instruction will be executed if the condition, bit register IB00010, is met. The
bit status is checked only to determine whether the condition is met.
As an example, the procedure to input the following instructions is shown below.
1. Enter the N.O. CONTACT instruction and the register number, IB00010. This instruc-
tion will form the condition.
2. Select the INTEGER ENTRY (|-) instruction.
3. Select the CONDITIONAL ([ ])instruction and enter the register number, MW00010.
4. Enter the STORE instruction in the same way as in steps 2. and 3.
Inputting Functions
There are two types of functions: System functions (functions created by the system) and
user functions (functions created by the user). The input method is the same for both types of
functions. User functions need to be defined before they can be entered.
As an example, the procedure to input the following instructions is shown below.
Input functions in the following order: Create the function box, the inputs, the addresses, and
then the outputs.
1 0000
IB00010
1 0001
[├ MW00010 ]
[⇒ MW02000 ]