• 沒有找到結果。

Batch Data Positioning Mode - TBL Instruction

(Variable Speed Pulse Output) - PLSV Instruction

11. Batch Data Positioning Mode - TBL Instruction

If GX Works2, for example, is used, the positioning instructions shown below can first be set in the positioning tables. After that, when a table is specified, the positioning operation of the specified table will be performed.

The FX3S PLC does not support TBL instruction.

*1. Only available for FX3U and FX3UC PLCs.

11.1 Instruction Format

1. Instruction Format

2. Data setting

3. Devices

1 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3,or Y003*3 from a high-speed output special adapter*2.

*1. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3GC PLC.

*2. High-speed output special adapters can be connected only to the FX3U PLC.

*3. To use Y002 and Y003 with a high-speed output special adapter, connect a second high-speed output special adapter.

Point:

• To use an FX3U PLC of relay output type or triac output type, be sure to connect a high-speed output special adapter.

• Differential line drive type outputs will be used for the outputs of the high-speed output special adapter.

Instruction Description

DVIT*1(FNC151) One-speed interrupt constant quantity feed (Interrupt positioning) PLSV(FNC157) Variable speed operation (Variable Speed Pulse Output) DRVI(FNC158) 1-speed

positioning

Drive to Increment

DRVA(FNC159) Drive to Absolute

Operand type Description Data type

Specifies the pulse output number. Bit

n Specifies the table number (1 to 100) to be executed. BIN 32-bit

Operand type

Bit device Word device Others

System user Digit designation System user Special

unit Index

Con-stant Real

num-ber

Char-acter string Pointer X Y M T C S D.b KnX KnY KnM KnS T C D R U\G V Z Modify K H E "" P

 1

n  

32-bit instruction

17 steps DTBL Continuous

execution type Instruction

symbol Execution condition

-16-bit instruction

-Instruction

symbol Execution condition FNC 152

TBL TABLE D

Command input

FNC152

DTBL D n

D

D

11.2 List of Related Devices

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

11.2 List of Related Devices

1. Special auxiliary relays

The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are devices that determine the pulse output destinations.

Device number

Function Attribute Refer to

Y000 Y001 Y002*1 Y003*2

M8029 "Instruction execution complete" flag Read only Subsection 4.4.2 M8329 "Instruction execution abnormal end" flag Read only Subsection

4.4.2 M8338 Acceleration/deceleration operation*3,*4 Drivable Subsection

4.3.9 M8336 Interrupt input specification function enable*4, *5 Drivable Subsection

4.3.7 M8340 M8350 M8360 M8370 "Pulse output monitor" (BUSY/READY) flag Read only Subsection

4.4.3

M8343 M8353 M8363 M8373 Forward limit Drivable Subsection

4.3.1

M8344 M8354 M8364 M8374 Reverse limit Drivable Subsection

4.3.1 M8347 M8357 M8367 M8377 Interrupt signal logic reverse*4,*6,*7 Drivable Subsection

4.3.8 M8348 M8358 M8368 M8378 Positioning instruction activation Read only Subsection

4.4.4

M8349 M8359 M8369 M8379 Pulse output stop command*4 Drivable Subsection

4.3.2 M8460 M8461 M8462 M8463 User interrupt input command*4,*8 Drivable Subsection

4.3.7

*1. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3GC PLC.

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

*3. Only available for FX3UC PLC Ver. 2.20 or later and FX3G/FX3GC/FX3U PLC.

*4. Cleared when the PLC switches from RUN to STOP.

*5. Only available for FX3UC PLC Ver. 1.30 or later and FX3U PLC.

*6. Only available for FX3U/FX3UC PLC.

*7. The logical NOT function is not valid for the user interrupt input command.

*8. Only available for FX3UC PLC Ver. 2.20 or later and FX3U PLC.

11.2 List of Related Devices

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

2. Special data registers

The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are devices that determine the pulse output destinations. To set the constants shown in the shaded area, set the built-in positioning parameters.

 For details on the built-in positioning parameters, refer to Section 11.4.

*1. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3GC PLC.

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

*3. Only available for FX3UC PLC Ver. 1.30 or later and FX3U PLC.

However, the user interrupt input command can be specified only if the FX3UC PLC Ver. 2.20 or later and FX3U

PLC is used.

*4. For the variable-speed output (PLSV) instruction, the setting is valid only when acceleration/deceleration operation is turned on.

Device number

Function Data length

Initial

value Refer to

Y000 Y001 Y002*1 Y003*2

D8336 Specification of

interrupt input.*3 16-bit - Subsection 4.3.7 D8340

Low-order D8350

Low-order D8360

Low-order D8370

Low-order Current value register

(PLS) 32-bit 0 Subsection

4.4.1 D8341

High-order D8351

High-order D8361

High-order D8371 High-order

D8342 D8352 D8362 D8372 Bias speed (Hz) 16-bit 0 Subsection

4.2.6 D8343

Low-order D8353

Low-order D8363

Low-order D8373

Low-order Maximum speed

(Hz) 32-bit 100,000 Subsection

4.2.5 D8344

High-order D8354

High-order D8364

High-order D8374 High-order

D8345 D8355 D8365 D8375 Creep speed (Hz) 16-bit 1000 Subsection

4.2.4 D8346

Low-order D8356

Low-order D8366

Low-order D8376

Low-order Zero return speed

(Hz) 32-bit 50,000 Subsection

4.2.3 D8347

High-order D8357

High-order D8367

High-order D8377 High-order

D8348 D8358 D8368 D8378 Acceleration time

(ms)*4 16-bit 100 Subsection

4.2.7

D8349 D8359 D8369 D8379 Deceleration time

(ms)*4 16-bit 100 Subsection

4.2.8

11.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

11.3 Function and Operation

Preliminarily set the built-in positioning parameters using GX Works2, and then specify the pulse output destination and the positioning table number (n) for the DTBL instruction in order to carry out positioning.

Use GX Works2 or GX Developer to set the built-in positioning parameters.

The "Pulse" and "Frequency" set by the built-in positioning parameters in each positioning table can be changed using the program, display module, or HMI.

For details on built-in positioning parameters, refer to Section 11.4.

For details on GX Developer operating procedure, refer to GX Developer Operating Manual.

As shown in the following table, each "Positioning Instruction", "Pulse (Pls)", "Frequency (Hz)", etc.

For further information on the operation of each instruction, refer to the description of each instruction.

*1. PLSV(FNC157) has only 3 operands. It has no operand of number of output pulses.

Positioning Instruction

Instruction and its operand to be activated

Refer to Instruction

word

Operand

Number of output

pulses

Output pulse frequency

Pulse output destination

device

Rotation direction signal

DDVIT [Interrupt positioning instruction] DDVIT Chapter 9

DPLSV [Variable speed output pulse instruction] DPLSV - Chapter 10

DDRVI [Relative positioning instruction] DDRVI Section 8.2

DDRVA [Absolute positioning instruction] DDRVA Section 8.3

D

Command

input FNC152

DTBL D n

Specifies the pulse output destination device for the positioning table to be activated.

Positioning table setting

Specifies the positioning table number to be activated.

Constant setting

C D E

A

B

C D E A B

S1 S2 D1 D2

S D1 D2

S1 S2 D1 D2

S1 S2 D1 D2

*1 Command

input FNC{{{

11.4 Built-in Positioning Parameter Setting

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

11.4 Built-in Positioning Parameter Setting

Use GX Works2 or GX Developer to set the built-in positioning parameters.

The "Pulse" and "Frequency" set by the built-in positioning parameters in a positioning table can be changed using the program, display module, or HMI.

To change the set "number of pulses" or "frequency", refer to Subsection 11.4.2.

11.4.1 Built-in Positioning Parameter Setting

Assuming that GX Works2 is used, this section describes how to set the built-in positioning parameters.

For details on GX Developer operating procedure, refer to GX Developer Operating Manual.