• 沒有找到結果。

Function and Operation

(Absolute Current Value Read) - ABS Instruction

9. One-speed Interrupt constant quantity feed - DVIT Instruction

9.3 Function and Operation

FX /FX /FX /FX /FX PLC User's Manual - Positioning Control Edition Built-in Positioning Functions

9.3 Function and Operation

For details on the maximum speed, bias speed, acceleration time, and deceleration time, refer to Subsection 4.2.5 to Subsection 4.2.8.

1) For , specify the number of output pulses (relative address value).

2) For , specify the output pulse frequency.

3) For , specify the pulse output number in the range of Y000 to Y003.

4) For , specify the rotation direction signal output device number.

When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use the output shown in the following table for rotation direction signals.

When a built-in transistor output is used as a destination for pulse output on a FX3U/FX3UC PLC, use transistor output for signals rotation direction.

Setting range 16-bit operation -32,768 to +32,767 (excluding 0) 32-bit operation -999,999 to +999,999 (excluding 0)

Setting range

16-bit operation 10 to 32,767(Hz)

32-bit operation When a high-speed output special adapter is used 10 to 200,000(Hz) When a transistor output from the main unit is used 10 to 100,000(Hz)

High-speed output special adapter number Pulse output destination device Rotation direction output

1st adapter = Y000 = Y004

= Y001 = Y005

2nd adapter = Y002 = Y006

= Y003 = Y007

Command input

FNC151

DVIT S1 S2 D1 D2

ON Instruction execution

Interrupt input

Time Speed

"Instruction

execution complete" flag M8029

Maximum speed

Deceleration time

Biasspeed Acceleration

time

Output pulse frequency

Number of output pulses S1

S2

S1

S2

D1 D2

D1 D2

D1 D2

D1 D2

D1 D2

9.3 Function and Operation

A

Comm

on Items

Functions Positioning

B

Built-in

Apx.

Connection Example

FX /FX /FX /FX /FX PLC User's Manual - Positioning Control Edition Built-in Positioning Functions

The rotation direction ON/OFF status of the specified device is shown in the following table.

During instruction execution, however, do not use the output for other purposes.

5) The interrupt input signal depends on the pulse output of as shown in the following table.

Use an FX3UC PLC Ver. 1.30 or later to use the interrupt input specification function.

Use an FX3U/FX3UC PLC Ver. 2.20 or later to set the user interrupt input command.

*1. Y003 is available only when two high-speed output special adapters are connected to the FX3U PLC.

Designation of interrupt input using M8336 interrupt input specification function:

1) Turn on the M8336.

2) Set the interrupt input number (X000 to X007) in D8336, or specify the user interrupt input command *2.

For details on the specification method, refer to Subsection 4.3.7 or Subsection 4.5.1.

ON/OFF status of device

specified by Rotation direction (increase/decrease current value)

ON

If the number of pulses to be output after interruption (specified by ) is set to a positive number, the operation will be performed in the forward rotation direction.

Forward rotation (Outputting pulses from will increase the current value.)

OFF

If the number of pulses to be output after interruption (specified by ) is set to a negative number, the operation will be performed in the reverse rotation direction.

Reverse rotation (Outputting pulses from will decrease the current value.)

Pulse output destination

device

Interrupt input signal If it is not necessary to use the

interrupt input specification function (M8336 = OFF), or if the FX3UC PLC below Ver. 1.30 is used

If it is necessary to use the interrupt input specification function

(M8336 = ON)

= Y000 X000

= Y001 X001

= Y002 X002

= Y003*1 X003

Setting value Description of setting

0 Specifies X000 for the interrupt input signal.

1 Specifies X001 for the interrupt input signal.

... ...

7 Specifies X007 for the interrupt input signal.

D2

D2

S1

D1

S1

D1 D1

D1 D8336=H{ { { {

Interrupt input for Y000

(pulse output destination device) Interrupt input for Y001

(pulse output destination device) Interrupt input for Y002

(pulse output destination device) Interrupt input for Y003

(pulse output destination device) D1

D1

D1

D8336=H{ { { {

Interrupt input for Y000

(pulse output destination device) Interrupt input for Y001

(pulse output destination device) Interrupt input for Y002

(pulse output destination device) Interrupt input for Y003

(pulse output destination device)

9.3 Function and Operation

FX /FX /FX /FX /FX PLC User's Manual - Positioning Control Edition Built-in Positioning Functions

*2. A device can only be specified if an FX3U/FX3UC PLC Ver. 2.20 or later is used.

When using an FX3UC PLC below Ver. 2.20, if "8" is set and then the specified Interrupt Positioning (DVIT) instruction turns ON, an operation error (error code: K6763) will occur, and the instruction will not cause any operation.

*3. Y003 is available only when two high-speed output special adapters are connected to the FX3U PLC.

*4. After setting a number in the range of 9 to E for the interrupt input signal, if the corresponding Interrupt Positioning (DVIT) instruction turns ON, an operation error (error code: K6763) will occur, and the instruction will not cause any operation.

8*2

Specifies a user interrupt input command*2 for the interrupt input signal.

9 ~ E*4 Do not specify these values.

F Set "F" for a pulse output destination device if the device is not used for the Interrupt Positioning (DVIT) instruction.

Setting value Description of setting

Pulse output destination device User interrupt input command

Y000 M8460

Y001 M8461

Y002 M8462

Y003*3 M8463

9.3 Function and Operation

A

Comm

on Items

Functions Positioning

B

Built-in

Apx.

Connection Example

FX /FX /FX /FX /FX PLC User's Manual - Positioning Control Edition Built-in Positioning Functions

Example program:

The following program shows that the interrupt input for Y000 is set using the user interrupt input command (M8460).

After specifying a user interrupt input command for the interrupt input signal, if the specified device is turned on, the number of pulses specified by will be output and then the operation will be stopped.

Before activating the Interrupt Positioning instruction again, be sure to turn off the user interrupt input command.

M8002 Specifies the

interrupt input for Y000 in the user interrupt input specification register.

M8336 SET

Y000

Interrupt input specification function enable.

Executes DVIT instruction D8336

HFFF8 FNC 12

MOV

FNC151

DVIT S1 S2

M8029

M8329 Initial pulse

Command input

D2 M8348

Positioning being performed

(Y000)

M101 Normal

end of positioning

M102 Abnormal

end of positioning

M100 M100

M101

M102

Interruption positioning is being performed.

"Positioning operation normal end"

flag

"Positioning operation abnormal end"

flag

"Instruction execution complete" flag

"Instruction execution abnormal end" flag Interruption

positioning being performed

M8460 Interrupt input signal: ON FNC 06

FEND Interruption

pointer I0

SET

M8460

RST Interrupt input

signal: OFF

FNC 03 IRET

END FNC 04

EI

M100

M103 SET

Interruption positioning being performed

Interruption condition

M103

Interruption condition

M103 RST

M100

M103 RST

Interruption positioning being performed

S1

9.3 Function and Operation

FX /FX /FX /FX /FX PLC User's Manual - Positioning Control Edition Built-in Positioning Functions

6) Interrupt input signal logical NOT

Turn the "Interrupt signal logic reverse" relay ON or OFF (see the following table) to specify the logic of the interrupt input signal. However, if the user interrupt input command is set for the pulse output destination device, the interrupt input signal logical NOT function cannot be used.

*1. Y003 is available only when two high-speed output special adapters are connected to the FX3U PLC.