EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F Series - Page 41

Mitsubishi Electric MELSEC iQ-F Series
48 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...
6 CREATING PROGRAMS
6.3 Program Example
39
6
Cam output program
Arrange this FB in the 1 ms interrupt processing.
In the program example, set the following items.
Set i_uCh (Channel number) to 1.
Enable or disable the 48 points in i_b48CamOutputNo (Cam output number).
The program example uses the following labels.
1. Enable the cam output number 0.
2. Read the current angle of the encoder.
Refresh the status of the X terminal for 11 bits on the assumption of 2048 resolution.
3. When the gray code is output from the absolute encoder, the gray code data is converted to BIN 16-bit data.
4. Add (subtract) the offset value D100 saved in the 0 degree offset program to offset the current angle.
Label name Date type Class
b48CamNo Bit (0..47) VAR
b48CamOut Bit (0..47) VAR

Other manuals for Mitsubishi Electric MELSEC iQ-F Series

Related product manuals