FX2N-32ASI-M As Interface User Manual
FX2N-32ASI-M As Interface User Manual
FX2N-32ASI-M As Interface User Manual
Foreword
• This manual contains text, diagrams and explanations which will guide the reader in the correct installation
and operation of the communication facilities of FX series.
• Before attempting to install or use the communication facilities of FX series this manual should be read and
understood.
• If in doubt at any stage of the installation of the communication facilities of FX series always consult a
professional electrical engineer who is qualified and trained to the local and national standards which apply to
the installation site.
• If in doubt about the operation or use of the communication facilities of FX series please consult the nearest
Mitsubisi Electric distributor.
FX2N-32ASI-M AS-interface
Master Block
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent
licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial
property rights which may occur as a result of using the contents noted in this manual.
i
FX2N-32ASI-M AS-interface Master Block
ii
FX2N-32ASI-M AS-interface Master Block
Guidelines for the safety of the user and protection of the FX2N-32ASI-M
AS-interface Master Block.
This manual provides information for the use of the FX2N-32ASI-M AS-interface Master Block.
The manual has been written to be used by trained and competent personnel. The definition of
such a person or persons is as follows:
a) Any engineer who is responsible for the planning, design and construction of automatic
equipment using the product associated with this manual should be of a competent
nature, trained and qualified to the local and national standards required to fulfill that
role. These engineers should be fully aware of all aspects of safety with regards to
automated equipment.
b) Any commissioning or service engineer must be of a competent nature, trained and
qualified to the local and national standards required to fulfill that job. These engineers
should also be trained in the use and maintenance of the completed product. This
includes being completely familiar with all associated documentation for said product. All
maintenance should be carried out in accordance with established safety practices.
c) All operators of the completed equipment should be trained to use that product in a safe
and co-ordinated manner in compliance to established safety practices. The operators
should also be familiar with documentation which is connected with the actual operation
of the completed equipment.
Note : The term ‘completed equipment’ refers to a third party constructed device which
contains or uses the product associated with this manual.
iii
FX2N-32ASI-M AS-interface Master Block
1) Indicates that the identified danger WILL cause physical and property damage.
2) Indicates that the identified danger could POSSIBLY cause physical and property
damage.
Software warning
4) Indicates special care must be taken when using this element of software.
5) Indicates a special point which the user of the associate software element should
be aware.
iv
FX2N-32ASI-M AS-interface Master Block
• Under no circumstances will Mitsubishi Electric be liable responsible for any consequential
damage that may arise as a result of the installation or use of this equipment.
• All examples and diagrams shown in this manual are intended only as an aid to
understanding the text, not to guarantee operation. Mitsubishi Electric will accept no
responsibility for actual use of the product based on these illustrative examples.
• Owing to the very great variety in possible application of this equipment, you must satisfy
yourself as to its suitability for your specific application.
v
FX2N-32ASI-M AS-interface Master Block
vi
FX2N-32ASI-M AS-interface Master Block
Table of contents
1. Introduction............................................................................................1-1
1.1 External Dimensions and Each Part Name ......................................................... 1-2
1.2 System configuration ........................................................................................... 1-4
1.3 Applicable PLC .................................................................................................... 1-5
1.3.1 Controlled Maximum I/O Points of Each PLC............................................................ 1-5
1.3.2 Maximum Controlled Slave Units .............................................................................. 1-6
2. Wiring ....................................................................................................2-1
2.1 Caution for Wiring................................................................................................ 2-1
2.2 Wiring .................................................................................................................. 2-2
3. Specifications ........................................................................................3-1
3.1 Environmental Specifications .............................................................................. 3-1
3.2 Power Supply Specifications ............................................................................... 3-1
3.3 Performance Specifications ................................................................................. 3-2
vii
FX2N-32ASI-M AS-interface Master Block
viii
FX2N-32ASI-M AS-interface Master Block
7. Example Program..................................................................................7-1
7.1 Content of Operation ........................................................................................... 7-1
7.2 System Configuration .......................................................................................... 7-2
7.3 Example Program................................................................................................ 7-3
ix
FX2N-32ASI-M AS-interface Master Block
8. Diagnostics............................................................................................8-1
8.1 Preliminary Checks.............................................................................................. 8-1
8.2 Error Checking..................................................................................................... 8-2
8.2.1 LED Check ................................................................................................................ 8-2
8.2.2 Check the display message for the 32ASI-M ............................................................ 8-5
8.2.3 Check BFM #29 error status of the 32ASI-M ............................................................ 8-7
Appendix A:
Further Information Manual Lists.............................................................. A-1
x
FX2N-32ASI-M AS-interface Master Block Introduction 1.
1. Introduction
1-1
FX2N-32ASI-M AS-interface Master Block Introduction 1.
4(0.16") e) f) o)
ASI+ ASI-
g)
FX2N-32ASI-M
ASI+ ASI-
ASI+ ASI-
ASI+ ASI-
U ASI
c) d) ASI ACTIVE
h)
a) ADDRESS/ERROR
POWER
90(3.54")
80(3.15")
FX2N-32ASI-M
i)
MODE SET
p)
PRJ MODE
PRG ENABLE
j)
FROM/TO
CONFIG ERR k)
n)
l)
9(0.35") 4(0.16") n) m)
b) m) b)
87(3.43") 55(2.17") Remove Top Cover
1-2
FX2N-32ASI-M AS-interface Master Block Introduction 1.
1-3
FX2N-32ASI-M AS-interface Master Block Introduction 1.
FX0N,FX1N, 32ASI-M
FX2N,FX3U,
FX3UC (Master)
Slave
AS-interface flat cable (Sensor / AS-interface flat cable
Actuator)
Repeater
1-4
FX2N-32ASI-M AS-interface Master Block Introduction 1.
Note;
An 32ASI-M module cannot be attached to an FX series PLC that is using an FX2N-16CCL-
M module.
Only one 32ASI-M module can be connected to the PLC.
1.3.1 Controlled Maximum I/O Points of Each PLC
Table 1.1: Controlled Maximum I/O Points of Each PLC
PLC Type Maximum I/O Points
FX3U, FX3UC (Ver. 2.20 or later) 384 points
FX2N, FX3UC (Ver. 2.20 or less) 256 points
FX1N 128 points
FX0N 128 points
1-5
FX2N-32ASI-M AS-interface Master Block Introduction 1.
1-6
FX2N-32ASI-M AS-interface Master Block Introduction 1.
1-7
FX2N-32ASI-M AS-interface Master Block Introduction 1.
Limitation Example 1
- Connected PLC: FX1N-40MR + 32ASI-M
- Controlled I/O points of PLC: 48 points <FX1N(40 points) + 32ASI-M(8 points)>
Number of active slaves which can be operated: (128 - 48) ÷ 4 = 20
- Active slave addresses: 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 19, 20, 21, 22, 23, 24,
25, 26 and 27
B it 15 B it 0
U pper byte Low er byte
BFM #0 3 2 1 C E flag : T his area represents an operative
BFM #1 7 6 5 4 active slave address.
BFM #2 11 10 9 8
BFM #3 15 14 13 12 : T his area represents an inoperative
BFM #4 active slave address refering to
19 18 17 16 lim itation 1
BFM #5 23 22 21 20
BFM #6 27 26 25 24
BFM #7 31 30 29 28
As these active slaves correspond only to limitation 1 in this example; The active slaves which
can be operated are 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 19, 20, 21, 22, 23, 24 and 25.
(The active slaves which cannot be operated are 26 and 27 by limitation 1.)
1-8
FX2N-32ASI-M AS-interface Master Block Introduction 1.
Limitation example 2
- Composition of programmable controller:FX1N-40MR + FX0N-40ER + 32ASI-M
- Controlled I/O points of PLC: 88 points
<FX1N(40 points) + FX0N(40 points) + 32ASI-M(8 points)>
Number of active slaves which can be operated: (128 - 88) ÷ 4 = 10
- Active slave addresses: 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 19, 20, 21, 22, 23, 24,
25, 26 and 27
B it 15 B it 0
U pper byte Low er byte
BFM #0 3 2 1 C E flag : T his area represents an operative
BFM #1 7 6 5 4 active slave address.
BFM #2 11 10 9 8 : T his area represents an inoperative
BFM #3 15 14 13 12 active slave address refering to
BFM #4 19 18 17 16 lim itation 1
BFM #5 23 22 21 20 : T his area represents an inoperative
BFM #6 27 26 25 24 active slave address refering to
BFM #7 31 30 29 28 lim itation 2
As these active slaves correspond to limitation 1 and 2 in this example; The active slaves
which can be operated are 2, 3, 4, 6, 7, 8, 9, 10 and 11 as these active slaves correspond to
limitation 1 and limitation 2 in this example. (The active slaves which cannot be operated are
13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26 and 27 by limitation 1. The active slave which cannot
be operated is 12 by limitation 2.)
1-9
FX2N-32ASI-M AS-interface Master Block Introduction 1.
Note:
In this example, the maximum capacity is 10 active slaves. If the 10th active slave is
changed by either of the two following methods, it can be made operative.
• When the slave allocated to address 13 is reallocated in an empty address
of 14 or more, active slave address 12 can operate.
• .When the slave allocated to address 12 is re-allocated in an empty address, lower than
its current address, the active slave can operate (from its new location) for example,
relocation to position 5.
1-10
FX2N-32ASI-M AS-interface Master Block Wiring 2.
2. Wiring
1) Do not lay signal cable near high voltage power cables or put them in the same trunking
duct. Otherwise, the effects of noise or surge induction are likely to take place. Keep a safe
distance of more than 100 mm (3.94") from these wires.
2) Connect the ground terminal on 32ASI-M with the ground terminal on the main unit of the
programmable controller. Use class D (100Ω or less) grounding on the main unit.
3) The terminal screws for the terminal of the 32ASI-M are M3 (0.12") screws and therefore
the crimp style terminal (see drawing) suitable for use with these screws should be fitted to
the cable for wiring.
For M3 (0.12") For M3 (0.12")
6.2 mm (0.24" ) 6.2 mm (0.24")
or less or less
4) The terminal tightening torque is 0.5 to 0.8 N·m (5 to 8 kgf·cm). Tighten securely to avoid
malfunction.
5) Cut off all phases of power source externally before installation or wiring work in order to
avoid electric shock or damage to the product.
6) Replace the provided terminal cover before supplying power and operating the unit after
installation or wiring work in order to avoid electric shock.
2-1
FX2N-32ASI-M AS-interface Master Block Wiring 2.
2.2 Wiring
To connect the 32ASI-M to slave units or AS-interface power supply use the AS-interface flat
cable (yellow). For slaves, refer to relevant manuals.
f
d
A S I+ A S I+ A S I- A S I- *1 A S I+ A S I-
c g
e
2-2
FX2N-32ASI-M AS-interface Master Block Specifications 3.
3. Specifications
3-1
FX2N-32ASI-M AS-interface Master Block Specifications 3.
3-2
FX2N-32ASI-M AS-interface Master Block Specifications 3.
3-3
FX2N-32ASI-M AS-interface Master Block Specifications 3.
MEMO
3-4
FX2N-32ASI-M AS-interface Master Block Master Start-Up 4.
4. Master Start-Up
4-1
FX2N-32ASI-M AS-interface Master Block Master Start-Up 4.
Note:
The configuration error occurs without fail when the 32ASI-M is in the off-line phase.
Therefore, disregard this error when the 32ASI-M is in the off-line phase.
4-2
FX2N-32ASI-M AS-interface Master Block Master Start-Up 4.
4-3
FX2N-32ASI-M AS-interface Master Block Master Start-Up 4.
MEMO
4-4
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-1
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-2
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
Note:
The data send and data receive buffers are the same buffer memory addresses (BFM #0 to
#7, #9, #14, #15, #20 to #22) for use with FROM and TO instructions. This means it is not
possible to check the buffer data using a FROM instruction because this instruction only
reads receive buffer data.
PLC side 32ASI-M AS-interface
slave side
TO
instruction BFM#0
to Slave
Send data
BFM22 Input Data
BFM #0
to Output
Receive data
BFM #22 Data
FROM
instruction Same BFM
addresses
5.2 Execution Control (EC) Flags and Host Interface (HI) Flags
<BFM #0 bit 0 to bit 3 and #8>
For the above BFM bits, the reading function does not use the same buffer memory address as the write
function. When reading data using the FROM instruction, Execution Control (EC) flags are used. When
writing data using the TO instruction, Host Interface (HI) flags are used. The information in these
memory locations might be different depending upon the user program. For explanation, refer to section
5.2.1 and section 5.2.2. For BFM #0 bit 4 to bit 15, refer to section 5.3.
5-3
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.2.1 Execution Control (EC) Flags (Using FROM Instruction) <BFM #0 bit 0 to 3, BFM #8>
Execution control (EC) flags is status of 32ASI-M. For meaning of flags refer to the table below.
For BFM #0 bit 4 to bit 15, refer to section 5.3.
Table 5.2: Execution Control Flags
BFM No. BIt No. Description 0 (OFF) 1 (ON)
Bit 0 Config_OK No configuration error Configuration error occurs
Bit 1 APF APO (AS-interface Power On) APF (AS-interface Power Fail)
BFM #0
Bit 2 Normal Operation Active Normal operation Not normal operation
Bit 3 Configuration Active Not configuration mode Configuration mode
Bit 0 Config_OK No configuration error Configuration error occurs
Slave of address 0 is not in list Slave of address 0 is in list of
Bit 1 LDS. 0
of detected slaves. detected slaves.
Automatic address Automatic address
Bit 2 Auto Address Available
assignment is not allowed. assignment is allowed.
Automatic address Automatic address
Bit 3 Auto Address Assign
BFM #8 assignment cannot be done. assignment can be done.
Bit 4 Configuration Active Not configuration mode Configuration mode
Bit 5 Normal Operation Active Normal operation Not normal operation
Bit 6 APF APO (AS-interface Power On) APF (AS-interface Power Fail)
Bit 7 Off-line Ready Not off-line phase Off-line phase
Watchdog timer is not timed
Bit 8 Watchdog Time Out Watchdog timer is timed out
out
5-4
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-5
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-6
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.2.2 Host Interface (HI) Flags (Using TO Instruction) <BFM #0 bit 0 to bit 3>
Host interface (HI) flags are for setting 32ASI-M. For BFM #0 bit 4 to bit 15, refer to section 5.3.
Table 5.3: Host Interface (HI) Flags
Bit No. Description 0 (OFF) 1 (ON)
0 (OFF) to 1 (ON) 32ASI-M is set into off-line phase.
Bit 0 Off-line
1 (ON) to 0 (OFF) The phase sequentially shifts to normal operation.
Auto address Auto address assignment is
Bit 1 Auto address assignment is enabled
enable disabled
Configuration 0 (OFF) to 1 (ON) 32ASI-M is set into configuration mode.
Bit 2
mode 1 (ON) to 0 (OFF) 32ASI-M does not process any data.
Protected 0 (OFF) to 1 (ON) 32ASI-M is set into protected mode.
Bit 3
mode 1 (ON) to 0 (OFF) 32ASI-M does not process any data.
If data is set in BFM #0 bit 0 - bit 3, #14, or #15, the data will be written in the 32ASI-M EEPROM.
The maximum allowable write to EEPROM is 10,000 times. When creating a program, therefore do
not frequently write data in the buffer memories (BFM) above.
5-7
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.3 Input and Output Data for AS-interface slave <BFM #0 bit 4 to bit 15 and #1 to #7>
(Read / Write)
One slave is composed of 4 bits. These bits are allocated in BFMs as shown in the following table. Using FROM
instructions, the ON / OFF status of the bit on the input equipment is shown. Using TO instructions, the ON / OFF
status of the bit on the output equipment is changed. For BFM #0 bit 0 to bit 3, refer to section 5.2.
Table 5.4: Allocated Input and Output Data in BFMs
BFM No. and Bit No. Slave No. and Bit No. BFM No. and Bit No. Slave No. and Bit No.
Bit 4 to 7 1 Bit 0 to 3 16
BFM #0 Bit 8 to 11 2 Bit 0 to Bit 3 Bit 4 to 7 17
BFM #4 Bit 0 to Bit 3
Bit 12 to 15 3 Bit 8 to 11 18
Bit 0 to 3 4 Bit 12 to 15 19
Bit 4 to 7 5 Bit 0 to 3 20
BFM #1 Bit 0 to Bit 3
Bit 8 to 11 6 Bit 4 to 7 21
BFM #5 Bit 0 to Bit 3
Bit 12 to 15 7 Bit 8 to 11 22
Bit 0 to 3 8 Bit 12 to 15 23
Bit 4 to 7 9 Bit 0 to 3 24
BFM #2 Bit 0 to Bit 3
Bit 8 to 11 10 Bit 4 to 7 25
BFM #6 Bit 0 to Bit 3
Bit 12 to 15 11 Bit 8 to 11 26
Bit 0 to 3 12 Bit 12 to 15 27
Bit 4 to 7 13 Bit 0 to 3 28
BFM #3 Bit 0 to Bit 3
Bit 8 to 11 14 Bit 4 to 7 29
BFM #7 Bit 0 to Bit 3
Bit 12 to 15 15 Bit 8 to 11 30
Bit 12 to 15 31
5-8
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
When the watchdog time is written in BFM #9 by TO instruction, the watchdog timer is reset. At
this time, 32ASI-M turns off both bit 8 of BFM #8 and bit 4 of BFM #29, and clears the data for
the output in BFM #0 to # 7, so data for using all outputs has to be rewritten.
If the watchdog timer reaches its set time (BFM #9 × 10 ms), a watchdog timer error occurs. At
this time, both bit 8 of BFM #8 and bit 4 of BFM #29 are turned ON and all the outputs of the
slaves connected to the 32ASI-M are turned off.
5-9
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.5 List of Detected Slave (LDS) <BFM #10, #11> (Read only)
In this list one bit is set for each slave (0 to 31) that is detected by 32ASI-M (through the start
up).
When the bit is ON, the system has the slave which corresponds to the bit. If the bit is OFF, the
system does not have the slave which corresponds to the bit.
Table 5.5: List of Detected Slave (LDS)
BFM No. Bit No. Slave No. BFM No. Bit No. Slave No.
Bit 0 0 Bit 0 16
Bit 1 1 Bit 1 17
Bit 2 2 Bit 2 18
BFM #10 Bit 3 3 BFM #11 Bit 3 19
: : : :
: : : :
Bit 15 15 Bit 15 31
5-10
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.6 List of Activated Slaves (LAS) <BFM #12, #13> (Read only)
In this list one bit is set for each activated slave (1 to 31).
When the bit is ON, the slave corresponding to the bit is active in the system. If the bit is OFF,
the slave corresponding to the bit is not active in the system.
List of active slaves are detected as follows:
1) Activation phase
2) In the configuration mode
LAS (List of Active Slaves) is same as LDS (List of Detected Slaves), i.e. a detected slave
always becomes an active slave.
3) In the protected operating mode
LAS consists of the slave that are ON in both the LDS and PLS (List of Projected Slaves),
i.e. an active slave is both a detected slave and a projected slave.
Table 5.6: List of Activated Slaves (LAS)
BFM No. Bit No. Slave No. BFM No. Bit No. Slave No.
Bit 0 0 Bit 0 16
Bit 1 1 Bit 1 17
Bit 2 2 Bit 2 18
BFM #12 Bit 3 3 BFM #13 Bit 3 19
: : : :
: : : :
Bit 15 15 Bit 15 31
5-11
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.7 List of Projected Slaves (LPS) <BFM #14, #15> (Read / Write)
In this list one bit is status for each expected slave (1 to 31) in 32ASI-M. If the bit is ON, the
slave corresponding to the bit is activated in the system. If the bit is OFF, the slave
corresponding to the bit is not activated in the system.
Table 5.7: List of Projected Slaves (LPS)
BFM No. Bit No. Slave No. BFM No. Bit No. Slave No.
Bit 0 0 Bit 0 16
Bit 1 1 Bit 1 17
Bit 2 2 Bit 2 18
BFM #14 Bit 3 3 BFM #15 Bit 3 19
: : : :
: : : :
Bit 15 15 Bit 15 31
If data is set in BFM #0 bit 0 - bit 3, #14, or #15, the data will be written in the 32ASI-M EEPROM.
The maximum allowable write to EEPROM is 10,000 times. When creating a program, therefore do
not frequently write data in the buffer memories (BFM) above.
5-12
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5.8 List of Slaves with Configuration Differences <BFM #16, #17> (Read only)
In this list, both LDS (List of Detected Slaves) and LPS (List of Projected Slaves) are compared
to LAS (List of Active Slaves). The bit will be ON if there is a discrepancy between the three
lists.
Table 5.8: List of Slaves with Configuration Differences
BFM No. Bit No. Slave No. BFM No. Bit No. Slave No.
Bit 0 0 Bit 0 16
Bit 1 1 Bit 1 17
Bit 2 2 Bit 2 18
BFM #16 Bit 3 3 BFM #17 Bit 3 19
: : : :
: : : :
Bit 15 15 Bit 15 31
5-13
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-14
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
33 to 63 Reads the actual parameter*1 from AS-interface slave n (n = “Command Normal operation,
Word” - 32) to data word 0. <Default value is “F (Hex)”.> Off-line phase
64 No command
65 to 95 Writes data word 0 to permanent parameter*1 in the AS-interface slave Normal operation,
n (n = “Command Word” - 64). Off-line phase
96 No command
97 to 127 Reads the permanent parameter*1 from AS-interface slave n (n = Normal operation,
“Command Word” - 96) to data word 0. <Default value is “F (Hex)”.> Off-line phase
128 to 159 Reads actual configuration*2 from AS-interface slave n (n = Command Normal operation
Word - 128) to data word 0. <No slave is “FF (Hex)”.>
160 No command
161 to 191 Writes data word 0 to permanent configuration*3 in the AS-interface n (n Configuration mode
= Command Word - 160).
5-15
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
193 to 223 Reads the permanent configuration*3 from AS-interface slave n (n = Normal operation,
Command Word -192) to data word 0. <No slave is “FF (Hex)”.> Off-line phase
Reads the counter of APF from 32ASI-M to Data Word 0. And clear this
224 Normal operation
value. (AS-interface Power Fail)
Reads counter of erroneous answers from AS-interface slave n to Data
225 to 255 Normal operation
Word 0. And clear this value. (n = Command Word - 224)
Change AS-interface slave (LPS) with address n to m. (n = Data Word 0, Configuration mode,
256
m = Data Word 1). Off-line phase
Store actual AS-interface configuration
257 <This command copies LAS (BFM #12, #13) to LPS (BFM #14, #15). Configuration mode
And store actual configuration to permanent configuration, too.>
Normal operation,
259 Store actual AS-interface parameters to permanent configuration.
Off-line phase
Read list of corrupted slaves from 32ASI-M to Data Word 0 and 1, And Normal operation,
260
clear this list. Off-line phase
*0
5-16
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
lower 8 bits
*3 This contains the projected input/output configuration and identification code of all slaves
determined by the slave configuration of the 32ASI-M using the Command Word “161 to
191” or by the Command Word “257”. The permanent configuration data of slaves that
are not projected shall be set to default values (“FF <Hex>”). This data is stored in
EEPROM.
5-17
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-18
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
Initial Pulse
M8002
FNC 79 K0 K9 K20 K1 Watchdog Time is set to 200 ms
TO and the watchdog timer is reset.
RUN Monitor
M8000 Reading EC flags in the
FNC 78 K0 K0 K1M0 K1
FROM BFM #0 (bit 0 to bit 3).
Start
X000
P LS M4
Normal
Start Flag Operation *1
M4 M2 Initializing result flags.
FNC 40 Y000 Y001
ZRST
*0
5-19
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
*2 If using command does not need to write the data word, this instruction is not necessary.
*3 If operating in protected operating mode, this contact is not necessary.
Continued..............
5-20
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
Operating Configuration
Flag Mode Flag *4
M5 M3 Writing the data words (data
FNC 79 K0 K21 D11 K2
TO P word 0 and data word 1).
T0 K6
5-21
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
O K F lag
M 21 *5
F N C 78 K0 K 21 D1 K2 Reading data words.
FROM
SET Y00 0 OK
*6
M 13 Protected mode.
*5 If using command does not need to read the data word, this instruction is not necessary.
*6 If operating in protected operating mode, this contact is not necessary.
Continued..............
5-22
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
P endin g
F lag O K F lag
*7
M 24 M 21
F N C 78 K0 K 21 D1 K2 Reading data words
FROM
END
*7 If using command does not need to read the data word, this instruction is not necessary.
5-23
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-24
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
5-25
FX2N-32ASI-M AS-interface Master Block Allocation of Buffer Memories (BFMs) 5.
MEMO
5-26
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
This chapter explains the operation of each mode. The mode can be changed by operating the
switch on the 32ASI-M or by setting (BFM #0 bit 2,3) from the programmable controller. For
BFM #0 refer to section 5.2.2.
Note:
The switch on the 32ASI-M can be disabled to prevent mis-operation. The mode can still be
changed by a command from the programmable controller. Even when the switch on the
32ASI-M is disabled, it can be operated when in off-line phase.
6-1
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
Note:
If the system recognizes a slave with address 0 on the AS-interface, it can not leave the
configuration mode.
6.1.2 Switching to Configuration Mode
The Protected operation mode is ended by pressing the “MODE” button for more than 5
seconds. The mode changes to Configuration mode.
6-2
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-3
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-4
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-5
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-6
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
Note;
If the two slaves have different configuration data (different slave type), the automatic
address assignment is not executed.
6-7
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-8
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-9
FX2N-32ASI-M AS-interface Block Configuration Mode and Protected Operating Mode 6.
6-10
FX2N-32ASI-M AS-interface Block Example Program 7.
7. Example Program
This program example exchanges information on I/O with the slave with the system
configuration below.
Note:
Even when the configuration error occurs, the I/O control is done to an active slave.
7-1
FX2N-32ASI-M AS-interface Block Example Program 7.
Slave 4; Slave 5;
Input:4 points Slave 4 Slave 5
Input:4 points
Output:4 points Output:4 points
7-2
FX2N-32ASI-M AS-interface Block Example Program 7.
Continued.............
7-3
FX2N-32ASI-M AS-interface Block Example Program 7.
Slave 4 Slave 4 is
is active projected
M104 M144 Put out X010 to X013 to data bit
FNC 12 K1X010 K1M200
MOV 0 to 3 for slave 4.
M104
FNC 40 M200 M203 If slave 4 is inactive slave or not
ZRST projected slave, output data for
slave 4 is reset.
M144
Slave 5 Slave 5 is
is active projected
M105 M145 Putting out X014 to X017 to data
FNC 12 K1X014 K1M204
MOV bit 0 to 3 for slave 5.
M105
FNC 40 M204 M207 If slave 5 is inactive slave or not
ZRST projected slave, output data for
slave 5 is reset.
M145
Continued............
7-4
FX2N-32ASI-M AS-interface Block Example Program 7.
Normal
Operation Hardware
Flag Error Flag
M2 M33 FNC 79 Writing output data to BFM #1 for
K0 K1 K2M200 K1
TO slave 4 and 5.
M104
FNC 40 Y010 Y013 If slave 4 is inactive slave or not
ZRST projected slave, output Y010 to
Y013 for slave 4 is reset.
M144
Continued.............
7-5
FX2N-32ASI-M AS-interface Block Example Program 7.
S lave 5 S lave 5 is
is active pro jected
M 10 5 M 14 5 Putting out input data bit 0 to 3 of
F N C 12 K 1M 30 4 K 1Y01 4
MOV slave 5 to Y014 to Y017.
G e neral E rror
M 30
Y00 0 General error occurs.
A P F E rro r
M 32
Y00 2 APF (AS-interface Power Fail)
occurs.
Continued.............
7-6
FX2N-32ASI-M AS-interface Block Example Program 7.
Hardware Error
M33
Y003 Hardware error occurs.
END
7-7
FX2N-32ASI-M AS-interface Block Example Program 7.
MEMO
7-8
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
8. Diagnostics
8-1
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
8-2
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
• Check the status of the slave. If the slave break, please replace the slave.
• Check the wiring for the slave. If the wire break, please exchange the cable.
• Please check this power supply if the AS-interface power supply after the repeater
fails.
8-3
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
8-4
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
8-5
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
8-6
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
8-7
FX2N-32ASI-M AS-interface Master Block Diagnostics 8.
MEMO
8-8
FX2N-32ASI-M AS-interface Master Block Appendix A:
Appendix A:
Further Information Manual Lists
Table A-1: Further Information Manual Lists
Manual name Manual No. Description
FX3U Series User's Manual - This manual explains the wiring, installation and
JY997D16501
Hardware Edition specification for FX3U Series programmable controller.
This manual explains the wiring, installation and
FX3UC Series User's Manual -
JY997D28701 specification for FX3UC Series programmable
Hardware Edition
controller.
FX2N Series This manual explains the wiring, installation and
Programmable Controllers JY992D66301 specification, etc. about FX2N Series programmable
Hardware Manual controller.
FX1N Series This manual explains the for wiring, installation and
Programmable Controllers JY992D89301 specification, etc. about FX1N Series programmable
Hardware Manual controller.
FX0/FX0N Series This manual explains the for wiring, installation and
Programmable Controllers JY992D47501 specification, etc. about FX0 and FX0N Series
Hardware Manual programmable controllers.
FX3U/FX3UC Series
This manual explains the instructios for FX3U/FX3UC
Programming Manual - Basic JY997D16601
Series programmable controller.
& Applied Instruction Edition
A-1
FX2N-32ASI-M AS-interface Master Block Appendix A:
A-2
USER’S MANUAL
FX2N-32ASI-M AS-interface Master Block
HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
HIMEJI WORKS:840, CHIYODA CHO, HIMEJI, JAPAN