EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 718

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.23 Data Table Operation
716
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Cautions
When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the case
of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the Xn data is not set in the ascending order in the data table (error code: K6706)
The data table is searched from the low-order side of device numbers in the data table in the operation.
Accordingly, even if only some Xn data is set in the ascending order in the data table, the instruction is
executed without operation error up to the area of the data table in which the Xn data is set in the
ascending order.
2) When the device specified by is outside the data table range (error code: K6706)
3) When the value exceeds the 32-bit data range in the middle of operation (error code: K6706)
In this case, check whether the distance between points is not "65535" or more.
If the distance is "65535" or more, reduce the distance between points.
Program example
In the program example shown below, the value input to D0 is processed by scaling based on the conversion
table for scaling set in R0 and later, and output to D10.
Program
Operation
Conversion setting data table for scaling
Set item Device
Setting
contents
Number of coordinate points R0 K6
Point 1
X coordinate R1 K0
Y coordinate R2 K0
Point 2
X coordinate R3 K10
Y coordinate R4 K50
Point 3
X coordinate R5 K30
Y coordinate R6 K100
Point 4
X coordinate R7 K40
Y coordinate R8 K45
Point 5
X coordinate R9 K50
Y coordinate R10 K30
Point 6
X coordinate R11 K60
Y coordinate R12 K0
M8000
SCL
EN
s1
ENO
d
s2
D0
R0
D10
[Structured ladder]
[ST]
SCL (M8000, D0, R0, D10)
Input value(D0)=7
Output value
(D10)=35
Point 1
(0,0)
X
Y
Point 2
(10,50)
Point 3
(30,100)
Point 4
(40,45)
Point 5
(50,30)
Point 6
(60,0)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals