Precautions Concerning Programs
4 - 18
4.4.4
Points to Check in Program
This is an example of a program in which an operation error is likely to occur.
Check if an extraordinarily large value or negative value was stored in the index register.
When a data register is modified using an index register
X0
F0 MV, DT0, IXDT0
In this case, index register (IX) modifies the address of data register DT0. If data in IX
is larger than the last address of the data register, an operation error will occur. The
same is true when the contents of IX are negative value.
Is there any data which cannot be converted using BCD e BIN data conversion?
When BCD
−
to
−
BIN conversion is attempted
X0
F81 BIN, DT0, DT100
In this case, if DT0 contains a hexadecimal number with one of the digits A through F
such as 12A4, the data conversion will be impossible and an operation error will result.
When BIN
−
to
−
BCD conversion is attempted
X0
F80 BCD, DT1, DT101
In this case, if DT1 contains a negative value or a value greater than K9999, an
operation error will occur.
Check if the divisor of a division instruction is K0.
X0
F32 %, DT0, DT100, DT200
In this case, if the content of DT100 is K0, an operation error will occur.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...