Mitsubishi Electric R16MTCPU Programming Manual page 230

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

• Set the write to cam file, and the cam file write destination to (D).
b15
• (D) can be omitted. When (D) is omitted, or is set outside the range, cam data is written to the cam open area only. When
performing write to cam file, set (D).
When "1: Write" is set to the write to cam file in (D), write to cam file is performed after completion of write to
the cam open area. When an error occurred during cam file operation, the cam data of the cam open area is
held.
• The following shows the operation for when the cam No. specified by (S1) already exists in the cam open area.
• When the cam data format, and resolution/number of coordinates are the same, the existing cam data is overwritten.
• When the cam data format, or resolution/number of coordinates are different, the existing cam data is erased.
(When the points of cam data are low due to resolution/number of coordinates, the cam data for sections where write was not performed become unfixed.)
Operation error
An operation error will occur, and the cam data write will not be executed if:
• Cam No. specified with (S1) is outside the range of 1 to 1024. (Details code: 1)
• For cam data in the stroke ratio data format, the cam data first position specified with (S2) is outside the range of 1 to the
cam resolution. (Details code: 2)
• For cam data in the coordinate data format, the cam data first position specified with (S2) is outside the range of 0 to
(coordinate number - 1). (Details code: 2)
• For cam data in the stroke ratio data format, the number of cam data points is outside the range of 1 to 32768 (Details code:
3).
• For cam data in the coordinate data format, the number of cam data points is outside the range of 1 to 16384. (Details code:
3)
• The start position and the number of cam data points, which are outside the range of the cam resolution or the number of
coordinates, are set. (Details code: 3)
• The device numbers storing the number of cam data points specified with (n) are outside the range. (Details code: 4)
• (S3) is not an even-numbered device. (Details code: 5)
• Cam data format specified with (S3) is set to other than 1 or 2. (Details code: 6)
• For cam data in the stroke ratio data format, the cam resolution is set a value other than "256/512/1024/2048/4096/8192/
16384/32768". (Details code: 7)
• For cam data in the coordinate data format, the coordinate number is set a value other than "2 to 65535". (Details code: 7)
• For cam data in the stroke ratio data format, the cam data first position is outside the range of 0 to (cam resolution - 1).
(Details code: 8)
• The writable area is insufficient when the cam data is being written. (Details code: 10)
• The input value of the coordinate data is a negative value. (Details code: 11)
• The input value of the coordinate data satisfies "Xn > Xn+1". (Details code: 11)
• The CAMWR instruction is executed while the "Cam data operation flag (SM505)" is ON. (Details code: 13)
In the following cases an operation error occurs, and the write to cam file is not performed. (Write to the cam open area is
performed)
• The CAMWR instruction was executed for a cam change data cam file. (Details code: 18)
• An error occurred during cam file access. (Details code: 19)
4 OPERATION CONTROL PROGRAMS
228
4.16 Advanced Synchronous Control Dedicated Function
b0
Write to cam file
0: Do not write
1: Write
(Stroke ratio data/Coordinate data)
Cam file write destination
2: SD memory card
4: Standard ROM

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents