NAiS FP2 User manual

PROGRAMMABLE CONTROLLER
FP2 Multi Communication Unit
Technical Manual
This manual was created using Adobe Acrobat.
Adobe, the Adobe logo, and Acrobat are trademarks
of Adobe Systems Incorporated.
FP2 Multi Communication Unit Techinical Manual
ARCT1F396E-1 ’04.9
http://www.naisplc.com/


Table of Contents
Before You Start
1Functions and Restrictions of the Unit............................................... 1-1
1.1 Features and Functions of the Unit ...............................................................................1-2
1.1.1 Functions.....................................................................................................................1-2
1.2 Unit Types ........................................................................................................................1-4
1.2.1 Multi Communication Unit ...........................................................................................1-4
1.2.2 Communication Blocks ...............................................................................................1-4
1.3 Restrictions on Units Combination ...............................................................................1-5
1.3.1 Restrictions on Installation position and Number of Units ..........................................1-5
2 Specifications and Functions .............................................................. 2-1
2.1 FP2 Multi Communication Unit ......................................................................................2-2
2.1.1 Parts and Functions ....................................................................................................2-2
2.2 FP2 Communication Blocks ...........................................................................................2-4
2.2.1 Types of Communication Blocks.................................................................................2-4
2.2.2 Names and Major Applications of Port........................................................................2-6
2.3 Table of Specifications....................................................................................................2-7
2.3.1 General Specifications ................................................................................................2-7
2.3.2 Communication Specifications....................................................................................2-8
2.4 Confirming the I/O Contacts and Slot Number...........................................................2-11
2.4.1 The Role of Input/Output Contacts. ..........................................................................2-11
2.4.2 Confirming the I/O Number Allocation ......................................................................2-12
2.4.3 Confirming Slot Number............................................................................................2-13
2.4.4 Confirming Root No...................................................................................................2-14
3 Installation and Wiring of Communication Blocks ............................ 3-1
3.1 Installation of Communication Blocks ..........................................................................3-2
3.2 Wiring of Communication Blocks ..................................................................................3-3
3.2.1 FP2-CB232(AFP2803), FP2-CB422(AFP2804) .........................................................3-3
3.2.2 FP2-CB485 (AFP2805)...............................................................................................3-4
3.2.3 Selection of Cables .....................................................................................................3-6
4 Communication Function..................................................................... 4-1
4.1 Communication Mode .....................................................................................................4-3
4.1.1 PC(PLC) Link Mode ....................................................................................................4-3

4.1.2 General-purpose Serial Communciation Mode...........................................................4-4
4.1.3 Computer Link Mode...................................................................................................4-4
4.2 Remote Control using Modem .......................................................................................4-5
4.3 Settings.............................................................................................................................4-6
4.3.1 Operation Mode Setting ..............................................................................................4-6
4.3.2 Communication Condition Setting...............................................................................4-6
4.3.3 Unit No. Setting ...........................................................................................................4-7
4.4 How to Set ........................................................................................................................4-8
4.4.1 Unit No. Setting Switch ...............................................................................................4-8
4.4.2 Mode Speed Setting Switch ........................................................................................4-8
4.4.3 Memory Switch............................................................................................................4-9
4.4.4 Flow Chart .................................................................................................................4-10
4.5 Timing for Transmission of Communication Setting Data........................................4-11
5 Communication Function: PC(PLC) Link............................................ 5-1
5.1 Overview of Funcation ....................................................................................................5-2
5.1.1 What is PC(PLC) Link .................................................................................................5-2
5.1.2 Operation of PC(PLC) link...........................................................................................5-3
5.2 Setting the Operation Mode and Baud Rate .................................................................5-4
5.2.1 Setting using Mode Speed Setting Switch ..................................................................5-4
5.2.2 Setting of Unti Numbers..............................................................................................5-4
5.2.3 Link Relay and Link Register Allocations....................................................................5-6
5.3 Monitoring ......................................................................................................................5-12
5.4 Connection Example of PLC Link ................................................................................5-13
5.4.1 When using three PLCs ............................................................................................5-13
5.4.2 Sample program........................................................................................................5-15
5.5 PC(PLC) Link Response Time ......................................................................................5-16
5.6 Troubleshooting (PC(PLC) Link)..................................................................................5-18
6 Communication Function: General-purpose Serial communication 6-1
6.1 Overview of Funcation ....................................................................................................6-2
6.1.1 What is General-purpose Serial Communication........................................................6-2
6.2 Setting the Operation Mode and Baud Rate .................................................................6-4
6.2.1 Setting using Mode Speed Setting Switch ..................................................................6-4
6.2.2 Setting using Memory Switch......................................................................................6-5
6.3 I/O Allocation....................................................................................................................6-6
6.4 Communication with External Devices .........................................................................6-8

6.4.1 Programming Example of General-purpose Serial Communication...........................6-8
6.5 Data Transmission F159 (MTRN) Instruction................................................................6-9
6.6 Data Reception F161 (MRCV) Instruction....................................................................6-12
6.6.1 Data to be Sent/Received with MCU ........................................................................6-14
6.6.2 Flag Operation in Serial Communication ..................................................................6-15
6.7 Connection with 1:1 Communication (General-purpose Serial Communication) ..6-18
6.7.1 Connection Example with External Device <1:1 Communication with Micro-
Imagechecker>...................................................................................................................6-19
6.7.2 Connection Example with External Device <1:1 Communication with FP Series PLC >
...........................................................................................................................................6-23
6.8 1:N Communication (General-purpose Serial Communication) ...............................6-28
6.9 Troubleshooting (General-purpose Serial Communication).....................................6-29
7 Communication Function: Computer link .......................................... 7-1
7.1 Overview of Funcation ....................................................................................................7-2
7.1.1 What is Computer Link................................................................................................7-2
7.1.2 Unit Operation .............................................................................................................7-3
7.2 Setting the Operation Mode and Baud Rate .................................................................7-5
7.2.1 Setting using Mode Speed Setting Switch ..................................................................7-5
7.2.2 Setting using Memory Switch......................................................................................7-6
7.2.3 Setting of Unit Numbers (C-NET 1:N Communication)...............................................7-7
7.3 Connection with Serial Devices .....................................................................................7-9
7.3.1 Communication Conditions and Restrictions Relating to Functions .........................7-10
7.4 Table of MEWTOCOL Command..................................................................................7-12
7.4.1 MEWTOCOL-COM Commands................................................................................7-12
7.4.2 Table of MEWTOCOL-COM Error code ...................................................................7-12
7.5 Troubleshooting (Computer Link) ...............................................................................7-13
8 Applications .......................................................................................... 8-1
8.1 Changing Application of COM. Port ..............................................................................8-2
8.2 Setting Communication Conditions and Monitoring ...................................................8-3
8.2.1 Example of Communication Condition Setting using F159 (MTRN) Instruction .........8-5
8.2.2 Example of Monitoring Communication Condition using F161 (MRCV) Instruction ...8-6
8.3 MCU Status Monitor ........................................................................................................8-7
9 Specifications ....................................................................................... 9-1

9.1 Table of Specifications....................................................................................................9-2
9.1.1 General Specifications ................................................................................................9-2
9.1.2 Communication Specifications....................................................................................9-3
9.1.3 Setting Communication Conditions and Monitoring....................................................9-5
9.1.4 I/O Allocation (General-purpose Serial Communication)............................................9-7
9.2 Appendix...........................................................................................................................9-9
9.2.1 Detailed Time Chart of Data Transmission and Reception.........................................9-9
9.2.2 Time Chart of Multiplex Reception............................................................................9-10
10 Dimensions and Sample Programs................................................... 10-1
10.1 Dimensions...................................................................................................................10-2
10.1.1 FP2 Multi Communication Unit................................................................................10-2
10.1.2 Communication Blocks............................................................................................10-3

Before You Start
CPU units
The CPUs as below are necessary to use this unit.
FP2: Ver. 1.50 or later
FP2SH: Ver. 1.50 or later
Note) The unit does not work due to the CPU error when using the older version than Ver. 1.40.
Programming tools
The programming tools as below are necessary to use this unit.
FPWIN GR: Ver. 2.40 or later
FPWIN Pro: Ver. 5.02 or later (Available soon)
FP2 communication block is necessary for FP2 Multi Communication Unit.
FP2 Multi Communicaction Unit cannot be used alone.
FP2 communication block must be installed for using FP2 Multi Communication Unit.
Difference from the conventional models
•FP2-SDU
FP2-SDU and FP2 Multi Communication Unit is not interchangeable as all uses such as settings or
commands are different.
•FP2-CCU
FP2-CCU and FP2 Multi Communication Unit is interchangeable, however, there are following
differences
- Unit number is available.
There is no unit number on CCU, but the unit number is avaialbe in the computer link mode of MCU.
(The default setting for the unit number is 1.)
- Command relay function (hierarchy function) for the network unit such as MEWNET-W.
It is not avaialbe for MCU.
- Data transmission by SEND (F145)/RECV (F146) commands.
It is not available for MCU.


Chapter 1
Functions and Restrictions of the Unit

1-2
1.1 Features and Fun ctions of the Unit
1.1.1 Functions
Features and functions of Multi Communication Unit
Multi Communication Unit is a communication interface to be used with the programmable controller
FP2/FP2SH to connect with serial communication devices.
Multi Communication Unit corresponds to multiple communication modes and standards, and has
features as below.
Adopted the removable serial communication block
Three kinds of communication standard, RS232C, RS422 and RS485 are selectable due to the
removable serial communication block.
Three kinds of communication mode.
There are three modes, general serial, computer link and PC(PLC) link, are available. Depending on the
combination with the communication block, it can be connected with many sirial communication devices.

1-3
High-speed and large-capacity communciation
MCU corresponds to 230 kbps-high-speed communication. Also 2048 characters data per frame can be
transmitted.
Note) When setting to 230400 bps, use USB ports at computers. If connecting to RS232C ports, a
device open error occurs and communication is not available.
Stable communication by double insulation
As the areas between the internal circuits and between channels are electrically insulated, it is
irrefrangible, and has less effect on connecting devices. The communication is stable.
Program
Ladder programs for the general serial communication can be easily created by the special instruction.
(Programming is not necessary for the PC (PLC link and the computer link).

1-4
1.2 Unit Types
1.2.1 Multi Communication Unit
Name Specifications Part No. Product No.
FP2 Multi Communication Unit Serial port 2 channels FP2-MCU AFP2465
Key Point:
Multi Communication Unit is occasionally abbreviated as “MCU” in this manual.
1.2.2 Communication Blocks
Name Specifications Part No. Product No.
FP2 communication block (RS232C) RS232C FP2-CB232 AFP2803
FP2 communication block (RS422) RS422 FP2-CB422 AFP2804
FP2 communication block (RS485) RS485 FP2-CB485 AFP2805
Note:
FP2 communication block is necessary for FP2 Multi Communication Unit.s
FP2 Multi Communication Unit cannot be used alone.
Use it with FP2 communication block.

1-5
1.3 Restrictions on U nits Combination
1.3.1 Restrictions on Installation position and Number of Units
Mode Specifications
PC(PLC) link
When using FP2:
Install within three units in combination with W link, CCU and MCU.
When using FP2SH:
Install two units within five units in combination with W link, CCU and
MCU. *2
When using both FP2/FP2SH:
Up to two units, including W link mode set to PC (PLC link) mode, can
be used. *1
General-purpose serial
communication Can be installed in any position.
Computer link Can be used up to eighth MCU.
Note:
The restrictions are not related to the number of channels for each unit.
(Either COM.1 port and COM.2 port is counted as one unit in case of the CCU setting.)

1-6

Chapter 2
Specifications and Functions

2-2
2.1 FP2 Multi Commu nication Unit
2.1.1 Parts and Functions
Operation indicator LEDs
Status indicator LED
Display Operation
Flashes while data is being sent.
SD Green Send Data
monitor Goes out when no data is being sent.
Flashes while data is being received.
RD Green Receive Data
monitor Goes out when no data is being received.
In PC(PLC) link mode: Lights if PC(PLC) link error occurs.
In other modes: Lights if communication error occurs.
ERR Red Communication
error In PC(PLC) link mode: Goes out if PC(PLC) link is liked up.
In other modes: Goes out if no communication error
occurs.
Lights if setting error occurs.
(The numbers at the top “1” and “2” mean COM. port No.)
S. ERR Red Setting error
Goes out in normal status.
Lights if unit error occurs. (Lights if watch dog timer error
occurs.)
ALARM Red Alarm
Goes out if no error occurs.
Key Point:
The communication error LED lights when the receive error occurs.
Receive error: Parity, framing, overrun, buffer capacity overflow, receive buffer FULL
Reference: <8.3 MCU Status Monitor>
Operation mode LED
Display Operation
W0 Green PC(PLC) link mode Lights in PC(PLC) link mode.
GP Green General-purpose serial
communication mode
Lights in General-purpose serial communication
mode.
MC Green Computer link mode Lights in computer link mode.
Note) W0 (PC(PLC) link mode) is not available for COM. 2.

2-3
Installation position for communication block
The communication blocks are installed in COM.1 and COM.2.
Unit No. setting switch
Unit No. for the COM.1 is set when the PC(PLC) link and computer link is
selected for the operation mode.
Unit No. can be selected in a range of 1 to 15.
•Factory default setting: 0 (memory switch selection)
Mode speed setting switch
Used to set the operation mode and communication speed.
Port COM. 1 COM. 2
Switch No. 12345678
Spare OFF OFF OFF OFF
PC(PLC) link ON OFF ON OFF
General-purpose serial
communication OFF ON OFF ON
Operation
mode
Computer link ON ON ON ON
115200 bps OFF OFF OFF OFF
19200 bps ON OFF ON OFF
9600 bps OFF ON OFF ON
Baud rate
Memory switch ON ON ON ON
Note) If selecting the setting marked with diagonal lines, the setting error occurs.
•Factory default setting
Operation mode: Computer link
Communication unit No.: 1 (Memory switch and computer link are selected.)
Baud rate: 9600 (Memory switch selection)
Character bit: 8
Parity: Odd
Stop bit length: 1
RS/CS: Disable
Note) The factory default settings for the mode speed setting switch (dip SW) are all ON.
Reference:
For the detail on the communication settings (unit No., memory switch setting, etc.), refer to
<4.3.3 Unit No. Settings> and <4.3.3 Memory Switch>

2-4
2.2 FP2 Communicati on Blocks
2.2.1 Types of Communication Blocks
There are three types of communication cassettes, each having a particular field of application.
FP2 communication block (RS232C) FP2-CB232 (AFP2803)
This communication block is a 1-channel unit with a five-wire RS232C port. It supports 1:1 computer
links, general-purpose serial communication and PC(PLC) link between two units. RS/CS control is
possible in general-purpose serial communication mode.
Pin No. Name Abbr. Signal direction
1 (Not connected) (NC)
2 Send Data SD Unit to external devices
3 Receive Data RD External devices to Unit
4 Request to Send RS Unit to external devices
5 Clear to Send CS External devices to Unit
6(Connection
unavailable) -
7 Signal Ground SG
8(Connection
unavailable) -
9 Data terminal ready ER Unit to external devices
Note1) RS (Request to Send) is controlled at Y contact.
Note2) When setting the RS/CS control to “Able”, data cannot be sent without the pin CS (Clear to Send).
When using with a three-wire port, short-circuit the pin RS and CS, or disable them.
Note3) The ER signal is shorted in the RS signal and the communication block.
Note4) Do not connect to the pin “connection unavailable”.
Note5) The shell part and the mounting screw part of the connector is connected to the ground terminals
of the power supply unit.
FP2 communication block (RS422) FP2-CB422 (AFP2804)
This communication block is a 1-channel unit with a four-wire RS422 port. It supports 1:1 computer link,
general-purpose communication and PC(PLC) link (MEWNET-W0) between two units.
Pin No. Name Abbr. Signal direction
1 (Not connected) (NC)
2 Send Data SD+ Unit to external devices
3 Receive Data RD+ External devices to Unit
4 Send Data SD- Unit to external devices
5 Receive Data RD- External devices to Unit
6(Connection
unavailable) -
7(Connection
unavailable) -
8(Connection
unavailable) -
9(Connection
unavailable) - Unit to external devices
Note) The shell part and the mounting screw part of the connector is connected to the ground terminals
of the power supply unit.

2-5
FP2 communication block (RS485) FP2-CB485 (AFP2805)
This communication block is a 1-channel unit with a two-wire RS485 port. It supports 1:N computer link,
general-purpose serial communication and the PC(PLC) link.
Pin
No. Name Abbr. Signal direction
1 Terminal station setting E
2 Transmission line (-) -
3 Transmission line (+) +
4 Transmission line (-) -
5 Transmission line (+) +
Note) The mounting screws are connected to the ground terminals of the power supply unit.

2-6
2.2.2 Names and Major Applicat ions of Port
Two communication ports are equipped with FP2 Multi Communication Unit (MCU).
By mounting either communication blocks, RS232C, RS422 or RS485, the communication becomes
available with external devices.
The upper communciation port is called COM. 1 port, and the
lower port is called COM. 2 port.
Select suitable communication block after determine the
following applications.
Communication blocks
Port RS232C (AFP2803) RS422 (AFP2804) RS485 (AFP2805)
COM. 1
- Computer link (1:1)
- General-purpose serial
communication (1:1) Note2)
- Computer link (1:1)
- General-purpose serial
communication (1:1) Note2)
- Computer link (1:N)
- General-purpose serial
communication (1:N)
- PC(PLC) link
(MEWNET-W0)
COM. 2
- Computer link (1:1)
- General-purpose serial
communication (1:1)
- Computer link (1:1)
- General-purpose serial
communication (1:1)
- Computer link (1:N)
- General-purpose serial
communication (1:N)
Note1) MEWTOCOL-COM can be used on all ports which support computer link. With MEWTOCOL-
COM, the same commands are supported on both two channels, and frames of up to 2048 bytes
(header <) are supported.
Note2) The PC(PLC) link with two units is available.
This manual suits for next models
2
Table of contents
Other NAiS Controllers manuals