NAiS FP2 Bedienungsanleitung

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.
Dieses Handbuch passt für folgende Modelle
2
Inhaltsverzeichnis
Andere NAiS Controller Handbücher























