4 subtract (sub (-)), 4 subtract (sub ( −)), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 97: 2 ) format, 3 ) programming examples

5.3 Numeric Operation Instructions
5.3.4 Subtract (SUB (
−))
5-28
5.3.4 Subtract (SUB (
−))
( 1 ) Operation
Input data B is subtracted from input data A and the result is stored in the output data.
An operation error occurs if the result produces an overflow or underflow.
( 2 ) Format
∗ C and # registers cannot be used.
( 3 ) Programming Examples
In the following programming examples, input data B is subtracted from input data A and the result is stored in the out-
put data.
• Storing the Output Data in MW00000 When Input Data A Is 100 and Input Data B Is 200
100 – 200
→ MW00000 = -100
Input data A
Output data
Input data B
−
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Input data A (SrcA)
×
{
{
{
×
{
{
Input data B (SrcB)
×
{
{
{
×
{
{
Output data (Dest)
×
{
*
{
*
{
*
×
{
×
Input data B
Output data
Input data A
Icon:
Key entry: −