• 沒有找到結果。

Devices for operands:

- Bit devices X, Y, M, and S can be used for the operands, depending on the function.

- Combination of these bit devices, such as KnX, KnY, KnM, and KnS, can be used for numeric data.

Refer to the programming manual.

- Current value registers, such as data registers D, timers T, and counters C, can be used.

- A data register D consists of 16 bit. Two consecutive data registers (2 points) are used for 32-bit data.

For example, if data register D0 is specified for the operand of a 32-bit instruction, D1 and D0 will be used for 32-bit data (D1 for the 16 high-order bits, and D0 for the 16 low-order bits).

If current value registers T and C are used as general data registers, they will behave the same way as data registers.

Each 32-bit counter (C200 to C255), however, can use 32-bit data without combining two counters.

These counters, however, cannot be specified as the operands of 16-bit instructions.

Command input

FNC158

DRVI S1• S2 D1 D2

S

S S1 S2

D

D1 D2

FX /FX /FX /FX /FX PLC User's Manual - Positioning Control Edition

Built-in Positioning Functions 4.10 Format and Execution of Applied Instruction

A

Comm

on Items

Functions Positioning

B

Built-in

Apx.

Connection Example

Format and execution of instruction:

Depending on the sizes of the numeric values to be processed, applied instructions can be classified into two types: 16-bit instructions and 32-bit instructions. In addition, depending on the execution type, these

instructions can also be classified into two types: continuous execution type and pulse execution type.

Depending on the applied instruction, the instruction may or may not have all the combinations.

1. 16-bit instructions and 32-bit instructions

- Depending on the bit length of the numeric data to be processed, applied instructions can be classified into two types: 16-bit type and 32-bit type.

Move D10 to D12.

This instruction transfers data from D21 and D20 to D23 and D22.

- For the 32-bit instruction, the instruction name will be DMOV ("D" will be added to "MOV").

- Even numbered devices or odd numbered devices can be specified. If a double device is specified, the specified device will be combined with the device with the next number (for the word devices, such as devices T, C, and D).

To prevent confusion, it is recommended to use even numbered devices to specify the low-order bits of an operand of a 32-bit instruction.

- Each 32-bit counter (C200 to C255) needs only one device to set 32 bits. For this reason, the operand of a 16-bit instruction cannot specify any of the 32-bit counters.

2. Pulse execution type instructions and continuous execution type instructions Pulse execution type instructions:

The program shown in the right figure shows that when X000 is turned on, the instruction will be executed only once. If X000 is off, the instruction will not be executed. If it is not necessary to execute the instruction frequently, the pulse execution type instruction is recommended. Note that "P" means that the instruction of pulse execution type. This means that DMOVP is a pulse execution type instruction.

Continuous execution type instructions:

The program shown in the right figure shows that if X001 is on, the continuous execution type MOV instruction will be executed at the start of each operation cycle.

Note that if FNC 24 (INC) or FNC 25 (DEC) is used as a continuous execution type instruction, the destination will be changed at the start of each operation cycle.

To indicate continuous execution type instructions, the symbol " " will be added to the title of each instruction as shown in the following figure. Use these instructions carefully.

Note that if the activation input X000 or X001 is off, instructions will not be executed. Also note that if the later symbol is not added to the title of an instruction, the destination of the instruction will not be changed.

Command 1

FNC 12

MOV D10 D12

Command 2

FNC 12

DMOV D20 D22

X000 FNC 12

MOVP D10 D12

X001 FNC 12

MOV D10 D12

P FNC 12

MOV

Number Instruction name

D

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

5. Operation Test

This chapter describes the operation test of positioning instructions. During forward rotation (JOG+)

operation and reverse rotation (JOG-) operation, the test checks whether positioning instructions are properly activated.

DESIGN PRECAUTIONS

• Make sure to have the following safety circuits outside of the PLC to ensure safe system operation even during external power supply problems or PLC failure.

Otherwise, malfunctions may cause serious accidents.

1) Most importantly, have the following: an emergency stop circuit, a protection circuit, an interlock circuit for opposite movements (such as normal vs. reverse rotation), and an interlock circuit (to prevent damage to the equipment at the upper and lower positioning limits).

2) Note that when the PLC CPU detects an error, such as a watchdog timer error, during self-diagnosis, all outputs are turned off. Also, when an error that cannot be detected by the PLC CPU occurs in an input/output control block, output control may be disabled.

External circuits and mechanisms should be designed to ensure safe machinery operation in such a case.

3) Note that when an error occurs in a relay, triac or transistor output device, the output could be held either on or off.

For output signals that may lead to serious accidents, external circuits and mechanisms should be designed to ensure safe machinery operation in such a case.

DESIGN PRECAUTIONS

• Do not bundle the control line together with or lay it close to the main circuit or power line. As a guideline, lay the control line at least 100mm (3.94") or more away from the main circuit or power line.

Noise may cause malfunctions.

• Install module so that excessive force will not be applied to the built-in programming port, power connectors, I/O connectors.

Failure to do so may result in wire damage/breakage or PLC failure.

WIRING PRECAUTIONS

• Make sure to cut off all phases of the power supply externally before attempting installation or wiring work.

Failure to do so may cause electric shock or damage to the product.

• Make sure to attach the terminal cover, offered as an accessory, before turning on the power or initiating operation after installation or wiring work.

Failure to do so may cause electric shock.

WIRING PRECAUTIONS

• Connect the AC power supply to the dedicated terminals specified in the manual of the PLC main unit.

If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn out.

• Connect the DC power supply to the dedicated terminals specified in the manual of the PLC main unit.

If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn out.

• Do not wire vacant terminals externally.

Doing so may damage the product.

• Perform class D grounding (grounding resistance: 100 or less) to the grounding terminal on the FX3S/FX3G/ FX3U PLC main unit with a wire 2 mm2 or thicker.

Do not use common grounding with heavy electrical systems (refer to the manual of the PLC main unit).

• Perform class D grounding (grounding resistance: 100 or less) to the grounding terminal on the FX3GC/FX3UC PLC main unit with a wire as thick as possible.

Do not use common grounding with heavy electrical systems (refer to the manual of the PLC main unit).

• When drilling screw holes or wiring, make sure cutting or wire debris does not enter the ventilation slits.

Failure to do so may cause fire, equipment failures or malfunctions.

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

WIRING PRECAUTIONS

• Install module so that excessive force will not be applied to I/O connectors.

Failure to do so may result in wire damage/breakage or PLC failure.

• Connect input/output cables securely to their designated connectors.

Loose connections may cause malfunctions.

• Make sure to properly wire the terminal block in accordance with the following precautions.

Failure to do so may cause electric shock, equipment failures, a short-circuit, wire breakage, malfunctions or damage to the product.

- The disposal size of the cable end should follow the dimensions described in the manual.

- Tightening torque should follow the specifications in the manual.

- Tighten the screws using a Phillips-head screwdriver No.2 (shaft diameter 6mm (0.24”) or less). Make sure that the screwdriver does not touch the partition part of the terminal block.

• Make sure to properly wire to the terminal block (European type) in accordance with the following precautions.

Failure to do so may cause electric shock, equipment failures, a short-circuit, wire breakage, malfunctions or damage to the product.

- The disposal size of the cable end should follow the dimensions described in the manual.

- Tightening torque should follow the specifications in the manual.

- Twist the end of strand wire and make sure that there are no loose wires.

- Do not solder-plate the electric wire ends.

- Do not connect more than the specified number of wires or electric wires of unspecified size.

- Affix the electric wires so that neither the terminal block nor the connected parts are directly stressed.

• Make sure to properly wire to the FX Series terminal blocks in accordance with the following precautions.

Failure to do so may cause electric shock, equipment failures, a short-circuit, wire breakage, malfunctions or damage to the product.

- The disposal size of the cable end should follow the dimensions described in the manual.

- Tightening torque should follow the specifications in the manual.

- Tighten the screws using a Phillips-head screwdriver No.2 (shaft diameter 6mm (0.24”) or less). Make sure that the screwdriver does not touch the partition part of the terminal block.

STARTUP AND MAINTENANCE PRECAUTIONS

• Do not touch any terminal while the PLC's power is on.

Doing so may cause electric shock or malfunctions.

• Before cleaning or retightening terminals, cut off all phases of the power supply externally.

Failure to do so may cause electric shock.

• Before modifying or disrupting the program in operation or running the PLC, carefully read through this manual and the associated manuals and ensure the safety of the operation.

An operation error may damage the machinery or cause accidents.

STARTUP AND MAINTENANCE PRECAUTIONS

• Do not disassemble or modify the PLC.

Doing so may cause fire, equipment failures, or malfunctions.

For repair, contact your local Mitsubishi Electric representative.

• Turn off the power to the PLC before connecting or disconnecting any extension cable.

Failure to do so may cause equipment failures or malfunctions.

• Turn off the power to the PLC before attaching or detaching the following devices.

Failure to do so may cause equipment failures or malfunctions.

- Peripheral devices, expansion boards, and special adapters - Input/output extension units/blocks and FX Series terminal blocks

5.1 Test Procedure

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

5.1 Test Procedure