Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 813

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Function
Function name
number
K50
PWM
*1 When high-speed counter (function number: K0) is stopped during function operation, the function continues to operate, but nothing will
be processed.
*2 When multi-output high-speed comparison table (function number: K30) is stopped, high-speed counter of the same ch is also stopped.
The following table shows the values which can be specified in (s2) and (s3) for each function number.
• Function number K0
The counting start and stop of a high-speed counter can be controlled for each channel of high-speed counter.
CH1 to CH8 are for the CPU module, and CH9 to CH16 are for the high-speed pulse input/output module.
Bit position
b15
b14
b13
b12
CH16
CH15
CH14
CH13
Ex.
To start CH3, set 04H in (s2). To stop it, set 04H in (s3).
To start CH1, CH4, and CH5, set 19H in (s2). To stop them, set 19H in (s3).
To start CH1 and CH4 and to stop CH5, set 09H in (s2) and set 10H in (s3).
• Function number K10
The measuring start and stop of the pulse density (rotation speed measurement) can be controlled for each channel of the
high-speed counter.
Bit position
b15
b14
b13
b12
• Function number K20 to K24
Set the value to turn on the bit of the high-speed comparison table number which is to be started or stopped.
In the case of the CPU module (K20), b0 to b15 can be used.
In the case of the high-speed pulse input/output module (K21 to K24), b0 to b14 can be used.
Bit position
b15
b14
b13
b12
16
15
14
13
• Function number K30
For the multi-output high-speed comparison table, specification of a channel is not required. To start the multi-output high-
speed comparison table, set 01H in (s2). To stop it, set 01H in (s3).
Bit position
b15
b14
b13
b12
• Function numbers K40 and K50
The measuring start and stop of pulse width measurement and PWM can be controlled for each channel.
CH1 to CH4 are for the CPU module, and CH5 to CH12 are for the high-speed pulse input/output module.
Bit position
b15
b14
b13
b12
b11
b10
b9
b8
CH12
CH11
CH10
CH9
b11
b10
b9
b8
b11
b10
b9
b8
12
11
10
9
b11
b10
b9
b8
b11
b10
b9
b8
CH12
CH11
CH10
CH9
b7
b6
b5
b4
CH8
CH7
CH6
CH5
b7
b6
b5
b4
CH8
CH7
CH6
CH5
b7
b6
b5
b4
8
7
6
5
b7
b6
b5
b4
b7
b6
b5
b4
CH8
CH7
CH6
CH5
14 HIGH-SPEED COUNTER INSTRUCTION
14.1 High-speed Processing Instruction
b3
b2
b1
b0
CH4
CH3
CH2
CH1
b3
b2
b1
b0
CH4
CH3
CH2
CH1
b3
b2
b1
b0
4
3
2
1
b3
b2
b1
b0
Valid
b3
b2
b1
b0
CH4
CH3
CH2
CH1
14
811

Hide quick links:

Advertisement

loading