Sie sind auf Seite 1von 61

series

USERS MANUAL

P-link Module
PE-link Module

FEH203a
Preface

This Users manual explains the specifications of the following modules for MICREX-SX series:
P-link module (type: NP1L-PL1)
PE-link module (type: NP1L-PE1)
Read this manual carefully to ensure correct operation. When using modules or peripheral devices, be sure to read the
corresponding users manual listed below.

<D300win loader conformed to IEC>


Title Manual No. Contents
User's Manual Instruction, MICREX-SX series FEH200 Explains the memory, language and system definitions of the
MICREX-SX series.
User's Manual Hardware, FEH201 Explains the system configuration, the specifications and
MICREX-SX series SPH operations of modules in the MICREX-SX series.
User's Manual D300win <Reference>, FEH254 Explains the methods for installing, the function and the
MICREX-SX series operations of D300winV2.
User's Manual D300win <Reference>, FEH257 Explains the methods for installing, the functions and the
MICREX-SX series operations of D300winV3.
User's Manual D300win <LD/FBD Editor>, FEH257-1 Explains the operations of LD/FBD added to D300winV3.
MICREX-SX series

<SX-Programmer Standard>

Title Manual No. Contents


User's Manual Instruction, MICREX-SX series FEH588 Explains the memory, language and system definitions of the
MICREX-SX series.
User's Manual Hardware, FEH201 Explains the system configuration, the specifications and
MICREX-SX series SPH operations of modules in the MICREX-SX series.
User's Manual SX-Programmer Standard FEH590 Explains the functions and the operations of SX-Programmer
<Reference>, MICREX-SX series Standard.

This manual is useful for both D300win and SX-Programmer Standard.


In addition to the above manuals, the following Fuji Electric FA Components & Systems Co., Ltd. site offers various manuals
and technical documents associated with MICREX-SX.
URL http://www.fujielectric.co.jp/fcs/jpn/index.html

Notes
Notes
1. This manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer.
2. The contents of this manual (including specifications) are subject to change without prior notice.
3. If you find any ambiguous or incorrect descriptions in this manual, please write them down (along with the manual No.
shown on the cover) and contact FUJI.
Safety Precautions

Be sure to read the Safety Precautions thoroughly before using this module.
Here, the safety precaution items are classified into Warning and Caution.

Warning : Incorrect handling of the device may result in death or serious injury

Caution : Incorrect handling of the device may result in major injury or physical damage.

Even some items indicated by Caution may also result in a serious accident.
Both safety instruction categories provide import information. Be sure to strictly observe these three instructions.

Warning

Never touch any part of charged circuits as terminals and exposed metal portion while the power is turned ON. It may result
in an electric shock to theoperator.
Turn OFF the power before mounting, dismounting, wiring, maintaining or checking, otherwise, electric shock, erratic
operation or troubles might occur.
Place the emergency stop circuit, interlock circuit or the like for safety outside the PC. A failure of PC might break or cause
problems to the machine.
Do not connect in reverse polarity, charge (except rechargeable ones), disassemble, heat, throw in fire or short-circuit the
batteries, otherwise, they might burst or take fire.
If batteries have any deformation, spilled fluids, or other abnormality, do not use them. The use of such batteries might cause
explosion or firing.
Do not open the FG terminal with the LG-FG short circuited. (It must be grounded, otherwise it might cause electric shock.)

Notes
Safety Precautions

Caution

Do not use one found damaged or deformed when unpacked, otherwise, failure or erratic operation might be caused.
.
Do not shock the product by dropping or tipping it over, otherwise, it might be damaged or troubled.
Follow the directions of the operating instructions when mounting the product. If mounting is improper, the product might
drop or develop problems or erratic operations.
Use the rated voltage and current mentioned in the operating instructions and manual. Use beyond the rated values
might cause fire, erratic operation or failure.
Operate (keep) in the environment specified in the operating instructions and manual. High temperature, high humidity,
condensation, dust, corrosive gases, oil, organic solvents, excessive vibration or shock might cause electric shock, fire,
erratic operation or failure.
Select a wire size to suit the applied voltage and carrying current. Tighten the wire terminals to the specified torque.
Inappropriate wiring or tightening might cause fire, malfunction, failure, or might cause the product to drop from its
mounting.
Contaminants, wiring chips, iron powder or other foreign matter must not enter the device when installing it, otherwise,
erratic operation or failure might occur.
Connect the ground terminal to the ground, otherwise, an erratic operation might occur.
Periodically make sure the terminal screws and mounting screws are securely tightened.
 Operation at a loosened status might cause fire or erratic operation.
Put the furnished connector covers on unused connectors, otherwise, failure or erratic operation might occur.
Install the furnished terminal cover on the terminal block, otherwise, electric shock or fire might occur.
Sufficiently make sure of safety before program change, forced output, starting, stopping or anything else during a run.
The wrong operation might break or cause machine problems.
Engage the loader connector in a correct orientation, otherwise, an erratic operation might occur.
Before touching the PC, discharge any static electricity that may have been collected on your body. To discharge it, touch
a grounded metallic object. Static electricity might cause erratic operation or failure of the module.
Be sure to install the electrical wiring correctly and securely, observing the operating instructions and manual. Wrong or
loose wiring might cause fire, accidents, or failure.
When disengaging the plug from the outlet, do not pull the cord, otherwiase, break of cable might cause fire or failure.
Do not attempt to change system configurations (such as installing or removing I/O modules) while the power is ON,
otherwise, failure or erratic operation might occur.
Do not attemp to repair the module by yourself -- contact your Fuji Electric agent. When replacing the batteries, correctly
and securely connect the battery connectors, otherwise, fire, accidents or failure might occure.
To clean the module, turn power off and wipe the module with a cloth moistened with warm water. Do not use thinner or
other organic solvents, as the module surface might become deformed or discolored.
Do not remodel or disassemble the product, otherwise, a failure might occur.
Follow the regulations of industrial wastes when the device is to be discarded.
The modules covered in these operating instructions have not been designed or manufactured for use in equipment or
systems which, in the event of failure, can lead to loss of human life.
If you intend to use the modules covered in these operating instructions for special applications, such as for nuclear
energy control, aerospace, medical, or transportation, please consult your Fuji Electric agent.
Be sure to provide protective measures when using the module covered in these operating instructions in equipment
which, in the event of failure, may lead to loss of human life or other grave results.
Revision
*Manual No. is shown on the cover.

Printed on *Manual No. Revision contents

Sep.1998 FEH203 First edition

Jun. 2004 FEH203a Operations in the case of using SX-Programmer Standard was added.
RAS information was added.
Contents

Preface
Safety Precautions
Revisions
Contents
Page

Section 1 General ........................................................................................ 1-1


1-1 General of P/PE-link System ......................................................................................................... 1-1

Section 2 Specifications ............................................................................. 2-1


2-1 General Specifications .................................................................................................................. 2-1
2-2 Performance and Communication Specifications ...................................................................... 2-2
2-2-1 List of performance and communication specifications ................................................................... 2-2
2-2-2 Broadcast communication specifications ........................................................................................... 2-3
2-2-3 Transfer timing of P/PE-link ................................................................................................................. 2-4
2-3 Cable Specifications ...................................................................................................................... 2-5
2-4 Names and Functions .................................................................................................................... 2-6
2-4-1 Names .................................................................................................................................................. 2-6
2-4-2 Functions .............................................................................................................................................. 2-7
2-5 Dimensions ..................................................................................................................................... 2-9

Section 3 System Configuration................................................................ 3-1


3-1 Mounting on the Module ............................................................................................................... 3-1
3-1-1 Mounting position ................................................................................................................................. 3-1
3-1-2 Number of mountable modules .......................................................................................................... 3-1
3-2 Example of Basic System Configuration ..................................................................................... 3-2
3-3 P/PE-link System with Optical Converter .................................................................................... 3-3
3-3-1 Summary of P/PE-link optical converters ............................................................................................ 3-3
3-3-2 System configuration with optical converter (FNC300) ....................................................................... 3-3
3-3-3 System configuration with long distance optical converter (FNC320) ............................................... 3-6

Section 4 System Definition ....................................................................... 4-1


4-1 Module Registration ....................................................................................................................... 4-1
4-2 Operation Definition (Local Station Number Selection) ............................................................ 4-3
4-3 Configuration Registration Definition .......................................................................................... 4-4
4-4 Area Selection ................................................................................................................................ 4-5
4-5 Changing Bank ............................................................................................................................... 4-6
4-5-1 Data exchanging mode in broadcast communication ........................................................................ 4-6
4-5-2 Change bank CPU definition ............................................................................................................... 4-7

Section 5 Wiring ........................................................................................... 4-1


5-1 Wiring Precautions ........................................................................................................................ 5-1
5-2 P/PE-link Wiring ............................................................................................................................. 5-2
5-3 Wiring Rule ..................................................................................................................................... 5-3

Section 6 Troubleshooting ........................................................................ 6-1


6-1 Diagnosis with Status Indication LED .......................................................................................... 6-1
Contents

6-2 Diagnosis with flags ....................................................................................................................... 6-2


6-2-1 Initialization error flag ........................................................................................................................... 6-2
6-2-2 Link configuration flag / fault flag ......................................................................................................... 6-3
6-3 Diagnosis with Loader ................................................................................................................... 6-4
6-3-1 System RAS information ...................................................................................................................... 6-6
6-3-2 SX bus transmission information ........................................................................................................ 6-7
6-3-3 Dump list ............................................................................................................................................... 6-8

Appendix 1 Sample Programs........................................................... App.1-1


Appendix 1-1 Message Communication Program between SX series .................................... App.1-1
Appendix 1-1-1 Overview of communication methods .......................................................................... App.1-1
Appendix 1-1-2 System configuration of sample program .................................................................... App.1-1
Appendix 1-1-3 Sample programs ......................................................................................................... App.1-2
Appendix 1-2 Example of Bank-Change Program ..................................................................... App.1-6
Appendix 1-3 Message Communication Program with MICREX-F series ................................ App.1-8
Appendix 1-3-1 Overview of communication methods .......................................................................... App.1-8
Appendix 1-3-2 System configuration of sample program .................................................................... App.1-8
Appendix 1-3-3 Sample programs ......................................................................................................... App.1-9
Section 1 General
1-1 General of P/PE-link System
The NP1L-PL1 P-link module and NP1L-PE1 PE-link module are communication modules that handle data communication
between CPU modules on the differently configurations. These modules are mounted on the base board of the MICREX-SX
series (connected to the SX bus) and linked to the Fuji Electric original P-link or PE-link high-speed communication
network. P-link and PE-link will be denoted as this module or collectively denoted as P/PE-link below.

P-link module or
PE-link module

I/O I/O I/O I/O I/O I/O I/O

Power
supply CPU

Different configurations
(P/PE-link modules connected to
P-link module or
SX buses of different systems)
PE-link module

I/O I/O I/O I/O I/O I/O I/O

Power
supply CPU

Note: P-link and PE-link cannot be mounted together on the same link.

Key points
Be sure to connect the P/PE-link module to a slot that has a processor bus connector. Mounting on a slot that has
no processor connector is not possible.
In the case of system (configuration) with a standard CPU module, the versions of the P/PE-link module and the
standard CPU must be 1030 or later. A combination of former versions is not available.
For a standard CPU module whose version is under V1131, access to the P/PE-link module memory via the
processor bus is not available. Use direct read / write instruction.
When you use the change bank, be sure to connect the high-performance CPU module and the P/PE-link module on
the same processor bus (on the same base).

1-1
Section 2 Specifications
2-1 General Specifications

Item Specification
Operating ambient 0 to 55
temperature
Storage temperature -25 to +70
Physical 20 to 95%RH no condensation
environment Relative humidity
(Transport condition: 5 to 95%RH no condensation)
conditions
Pollution degree 2
Corrosion immunity Free from corrosive gases. No stained with organic solvent
Operating altitude 2000m or less above sea level (Transport condition: 70kPa or more)

Mechanical Half amplitude: 0.15mm, Constant acceleration: 19.6m/s2, Two hours for each of three
Vibration
service mutually perpendicular axes.
conditions Shock Acceleration peak: 147m/s2, Three times for each of three mutually perpendicular axes.
Nose immunity 1.5kV rise time 1ns, pulse width 1s (noise simulator)
Electrical
Electrostatic discharge Contact discharge: 6kV Aerial discharge: 8kV
service
conditions Radioelectromagnetic 10V/m (80MHz to 1000MHz)
field
Construction Panel-mounted
Cooling Air cooling
Isolation method Photocoupler
Dielectric strength 455V AC/minute (between I/O connector pins and frame ground)
Insulation resistance 10M or more with 500V DC megger (between I/O connector pins and frame ground)
NP1L-PL1: 24V DC, 160mA or less
Internal current consumption
NP1L-PE1: 24V DC, 160mA or less
NP1L-PL1: Approx. 235g, P-link connector : Approx. 40g
Mass
NP1L-PE1: Approx. 235g, PE-link connector : Approx. 40g
Dimensions Described in section 2-5

2-1
Section 2 Specifications
2-2 Performance and Communication Specifications
2-2-1 List of performance and communication specifications

Item Specification
P-link PE-link
Type NP1L-PL1 NP1L-PE1
No. of channels 1 channel/module
No. of SX bus Max. 2/configuration
connectable modules
No. of P/PE-link Max. 16/system Max. 64/system
connectable modules
Transmission line format Bus configuration (multi-drop)
Electrical transmission line: Coaxial cable
Transmission line Optical transmission line: SI/GI quartz optical cable
Distance between optical converters: Max. 1km (SI)/3km (GI)
Electrical transmission line: Total length 250m Optical Electrical transmission line: Total length 500m,
transmission line (Distance between optical Min.1m or more
Transmission distance
converters): Max. 1km (SI)/3km (GI) Optical transmission line (distance between
optical converters): Max. 1km (SI)/3km (GI)
Transmission method Half-duplex, serial transmission
Data exchange method N : N (Token-passing method) Memory refresh method
Transmission speed 5Mbps
Modulation method PDM (Pulse Duration Modulation)
Error check FCS (Frame Check Sequence), Number of data words check, Collision detection
Data transfer Broadcast communication, Message transmission
Memory capacity for 7.6KW 24.5KW
broadcast data
Other functions Self diagnosis/RAS functions
Occupied slot 1 slot
Occupied words None (No input /output areas are occupied)

[Reference]
Token passing method: System in which the right of control access is passed from one terminal to another by moving a
token (the right of access) via the network.
Broadcast communication: Simultaneous communication from one station to multiple stations with an image similar to
that of a broadcasting station.

Note: Connection between P-link and PE-link is impossible.

2-2
Section 2 Specifications
2-2 Performance and Communication Specifications
2-2-2 Broadcast communication specifications
(1) Type and capacity of memory for broadcast communication

P-link PE-link
Type of memory Memory capacity Max. transmission Memory capacity Max. transmission
area capacity
High-speed 1 area 512 words 64 words 512 words 1K words
1152 words 256 words 8K words combining high-speed 1
High-speed 2 area
and 2 areas
Low-speed 1 area 3072 words 512 words 4K words 1K words
Low-speed 2 area 3072 words 512 words 12K words 1K words

(2) Setting range for transmission area

P-link PE-link
Type of memory Head block No. Number of Head block No. Number of
transmission blocks transmission blocks
High-speed 1 area 0 to 15 0 to 2 0 to 63 0 to 64
High-speed 2 area 0 to 35 0 to 8 0 to 1023 0 to 128
Low-speed 1 area 0 to 95 0 to 16 0 to 511 0 to 128
Low-speed 2 area 0 to 95 0 to 16 0 to 1535 0 to 128
* 1 block P-link = 32 words
PE-link = 8 words
< Image of broadcast communication >

Transmission Reception Reception

High-speed 1 area Reception Transmission Reception

Reception Reception Transmission

Transmission Reception Reception

High-speed 2 area Reception Transmission Reception

Reception Reception Transmission

* Data is transferred similarly in low-speed 1 and 2 areas.

2-3
Section 2 Specifications
2-2 Performance and Communication Specifications
(3) Address assignment for broadcast communication
The memory for broadcast communication is provided in each P/PE-link module and the address is assigned as follows. In
this table, addresses are listed in word format, but bit access is possible for all the areas.
1) D300win

Memory section P-link PE-link


%MW.1.0 to %MW.1.0 to
High-speed 1 area
%MW.1.511 %MW.1.511
%MW.1.512 to %MW.1.512 to
High-speed 2 area
%MW.1.1663 %MW.1.8703
%MW.1.1664 to %MW.1.8704 to
Low-speed 1 area
%MW.1.4735 %MW.1.12799
%MW.1.4736 to %MW.1.12800 to * The CPU number (8 or 9) of P/PE-link
Low-speed 2 area
%MW.1.7807 %MW.1.25087 module is entered in .

2) SX-Programmer Standard

Memory section P-link PE-link


%MW.0 to %MW.0 to
High-speed 1 area
%MW.511 %MW.511
%MW.512 to %MW.512 to
High-speed 2 area
%MW.1663 %MW.8703
%MW.1.1664 to %MW.8704 to
Low-speed 1 area
%MW.1.4735 %MW.12799
%MW.1.4736 to %MW.12800 to * The CPU number (8 or 9) of P/PE-link
Low-speed 2 area
%MW.1.7807 %MW.25087 module is entered in .

Note: The CPU number of a P/PE-link module is determined from the CPU number that is set from D300win, or from the
CPU No. selection switch on the front panel of the module.

2-2-3 Message communication specifications


The volume of the data for one message communication depends on a network (P-link or PE-link), a remote station and
used instruction.
(1) P-link

Remote station
Local station Instruction used
MICREX-SX MICREX-F
M_SEND 110 words 110 words
M_RECEIVE 110 words 110 words
R_READ (VAR TYPE=0) Dependent on CPU (see note)
MICREX-SX
R_READ (VAR TYPE=1) 108 words 108 words
R_WRITE (VAR TYPE=0) Dependent on CPU (see note)
R_WRITE (VAR TYPE=1) 108 words 108 words
Message module send 110 words 110 words
MICREX-F MSGT 108 words 108 words
MSGR 108 words 108 words

2-4
Section 2 Specifications
2-2 Performance and Communication Specifications
(2) PE-link

Remote station
Local station Instruction used
MICREX-SX MICREX-F
M_SEND 507 words 500 words
M_RECEIVE 507 words 500 words
R_READ (VAR TYPE=0) Dependent on CPU (see note)
MICREX-SX
R_READ (VAR TYPE=1) 239 words 239 words
R_WRITE (VAR TYPE=0) Dependent on CPU (see note)
R_WRITE (VAR TYPE=1) 239 words 239 words
Message module send 500 words 500 words
MICREX-F MSGT 234 words 498 words
MSGR 234 words 498 words

Note: The maximum communicable volume of data is the maximum value of array type data in the MICREX series CPU
modules. For a high-performance CPU, it is 4096 words. For a standard CPU, there is no limitation on the maximum
volume of array type data, and it depens on the size of a memory area where the array type data is stored.

2-2-4 Transfer timing of P/PE-link


P/PE-link module transmits data of high-speed and low-speed areas and/or transmites messages to other stations by moving
the right of transmission (token) in a sequence.

Area Transmission
High-speed area Data is transmitted whenever each module obtains the right of transmission. (1st block and 2nd block)
Only one station transmits while the right of transmission is transferred around all the modules. When the right
Low-speed area of transmission is set to both the 3rd and 4th blocks, at first, only one block is transmitted. The other block is
transmitted at the next turn.
Message One message is transmitted whenever each module obtains the right of transmission. There is no
transmission transmission when there are no messages to transmit.

<Image of transfer timing>

0 station H H H

1 station H H L H

15 station H H H M
1) High-speed case 2) High and low-speed case 3) Message and high-speed case
Time
H : High-speed area
L : Low-speed area
M : Message area

2-5
Section 2 Specifications
2-3 Cable Specifications
Use P/PE-link cable that has the following specifications. If a cable different from the specified cable (for example a twisted-
pair cable, etc.) is used, the system may stop due to faulty operation of the transmission line.

Type Coaxial cable


Item 5C-2V (JIS C 3501 standard)
Material JIS C 3102 annealed copper wire for electrical use
Conductor
Outer diameter (mm) 0.8
Material Polyethylene
Insulation
Outer diameter (mm) 4.9
Shielding Knitted annealed copper wire
Material Non-conversion PVC (black)
Sheath
Finished outside diameter (mm) 7.4
Mass (kg/km) Approx. 74
Conductor resistance (/km) 35.9
Electrical
Insulation resistance (M-km) 1000
characteristics
Dielectric strength (V AC/min.) 1000

2-6
Section 2 Specifications
2-4 Names and Functions
2-4-1 Names
(1) NP1L-PL1 (P-link module)

1) Status indicatin LED

3) Enable switch for the


station No. selection switch ONL RCV
2) CPU No. selection switch
SND

ERR LER TER

B c DE
ON

789A
CPU
4) Station No. selection switch

F 0 12
No.
OFF 3 456

3 456

F 0 12

789A
PH
B c DE
Reserved
3 456

F 0 12

789A
PL

5) P-link connector
B c DE
6) Nameplate (on the right side)
3 456

F 0 12

789A
DA
B c DE

6) Version seal

(2) NP1L-PE1 (PE-link module)

1) Status indication LED

3) Enable switch for the


station No. selection switch ONL SND RCV
2) CPU No. selection switch
ERR LER TER

B c DE
789A

ON CPU
4) Station No. selection switch
F 0 12

No.
OFF 3 456

3 456
F 0 12

789A

PH
B c DE
Reserved
3 456
F 0 12

789A

PL

6) Nameplate (on the right side)


B c DE

5) P-link connector 3 456


F 0 12

789A

DA
B c DE

7) Version seal

2-7
Section 2 Specifications
2-5 Names and Functions
2-4-2 Functions
1) Status indication LED
This LED indicates operation status of NP1L-PL1/PE-1.
10. 50& 4%8
Symbol Color Description
'44 .'4 6'4
Turns on when the module is operating normally.
ONL Green
(After power supply is turned on, blinks until the SX bus is setup.)
ERR Red Turns on when there is an error in module itself or on the SX bus.
SND Green Turns on during transmission of P/PE-link data.
RCV Green Turns on during reception of P/PE-link data.
Turns on when registered a P/PE-link station is not connected or a
LER Red
connected P/PE-link station is disconnected.
TER Red Turns on when a transmission error occurs.

< Example of status indication with LED >

Common indication Individual indication Status of module


ONL ERR SND RCV LER TER
Waiting for the SX bus initialization (common to all modules connected to the
Blink
SX bus).
Blink Blink Waiting for key code input to the communication part of the P/PE-link side
*
(blinking at long intervals).
ON Blink Blink In normal transmission (blinking at short intervals).
Blink Blink Blink Continuous operation is possible even though transmission error indicator
ON
(TER) occasionally turns on.
ON Blink Blink ON P/PE-link configuration fault.
ON Blink Blink Operation definition setting error. (slow and simultaneous blinking)
ON Hardware fault in module.

Note: The ( ) mark indicates OFF and the ( * ) mark indicates Blink, ON or OFF.

2) CPU No. selection switch


With the P/PE-link module, similar to the CPU module, it is necessary to assign a CPU station number. Never change settings
during system operation.

B c DE
789A

CPU
F 0 12

8 or 9 are set in the case of a P/PE-link module.


N o.
3 456

3) Enable switch for the station No. selection switch


This switch enables or disables the setting of CPU No. selection switch on the front panel of the module. Never change
settings during system operation.

ON Enabled

Disabled
OFF

2-8
Section 2 Specifications
2-4 Names and Functions
4) Station No. selection switch
This switch sets the station number of the P/PE-link within a range of 0 to F for the P-link module, and within 00 to 3F
for the PE-link module.

3 456
F 0 12

789A

PH Upper-digit
B c DE Note: In the case of the P-link module, set with the lower digit switch after
fixing the upper digit to 4. If a value other than 4 is set, proper
3 456 operation cannot be guaranteed.
F 0 12

789A

PL Lower-digit
B c DE

5) P/PE-link connector
The P/PE-link connector is connected here. The tightening torque of the screw for fixing the connector is 0.9 to 1.0Nm. For a
description of the method of assembling the P/PE-link connector, refer to Section 5-2 Cable terminal processing of P/PE-
link.

6) Nameplate
The type, date of manufacture and serial number are printed on the side of the module.

7) Version seal
Versions of the hardware and firmware of this module are indicated on this seal.

20 Hardware version

30 Firmware version

2-9
Section 2 Specifications
2-5 Dimensions
Dimensions of NP1L-PL1 are same as those of NP1L-PE1.

35 (44) 90
105

Note: When this module is used at the end of the P/PE-link,


P/PE-link terminating resistance is needed.
The height of P/PE-link terminating resistance is 22 to 24mm.

2-10
Section 3 System Configuration
3-1 Mounting the Module
3-1-1 Mounting position
NP1L-PL1 and NP1L-PE1 are communication modules connected to the SX-bus. Mounting positions on the base board are
restricted as follows.

The modules are mounted in slots where there are processor connectors.

Processor bus connectors

P/PE-link module mountable slots


*NP1BP-13 and NP1BP-13S provide processor bus connectors for 10 slots.

Note: Mounting on the base board of remote I/O such as T-link, OPCN-1, DeviceNet etc. is not possible.

I/O I/O I/O I/O


Power CPU Power
supply supply

3-1-2 Number of mountable modules


In one configuration, up to 2 modules can be mounted together with P-link and PE-link modules.

3-1
Section 3 System Configuration
3-2 Example of Basic System Configuration
By using broadcast communication, data communication is carried out between two configurations. An example utilizing a P-
link module will be explained below.
As shown in the following figures, by setting the CPU number of P-link module A to 8 and that of P-link module B to 9,
1 block (32 words) for high-speed 1 area is used for each transmission area.

< Configuration A > P-link station No.0 < Configuration B > P-link station No.1
CPU number 8 CPU number 9

I/O I/O I/O I/O

Power Power
supply CPU supply CPU
A B

P-link

< P-link memory >


P-link memory for broadcast is provided in a P-link module.

< CPU A side > < CPU B side >

%MW8.1.0 %MW9.1.0
Transmission area of Reception area of
P-link module A P-link module B

%MW8.1.31 %MW9.1.31
%MW8.1.32 %MW9.1.32
Reception area of Transmission area of
P-link module A P-link module B
%MW8.1.63 %MW9.1.63

< Example of data transfer program >


The current value of CPU-A counter CTU_1 is transmitted to the CPU-B variable counter current value A.
1) Example of program with D300win loader

< CPU A side > < CPU B side >


CTU_1
(Note) %MX10.11.14
CTU MOVE
EN ENO
Input signal CU Q Up A

Reset A RESET CV Current value %MW9.1.0 Counter current


Value A
INT100 PV

(Note) %MX10.11.14
MOVE
EN ENO

Current value %MW8.1.0

Note: In the case of access to the broadcast transmission area of the P-link (PE-link) through the processor bus, read and
write data after checking that the processor bus access fault flag (%MX10.11.14) is not on. If the flag is on, data that is
accessed to the broadcast transmission area in the P-link (PE-link) is not guaranteed.

3-2
Section 3 System Configuration
3-2 Example of Basic System Configuration
2) Example of program with PLC Programmer

< CPU A side > < CPU B side>

X1.0
SM11E
CTUC0100
MOVEWM9.0WM100
X1.1 (Note)
CRST

SM11E
MOVEC0WM8.0
(Note

Note: In the case of access to the broadcast transmission area of the P-link (PE-link) through the processor bus, read and
write data after checking that the processor bus access fault flag (SM11E) is not on. If the flag is on, data that is
accessed to the broadcast transmission area in the P-link (PE-link) is not guaranteed.

3-3
Section 3 System Configuration
3-3 P/PE-link System with Optical Converter
By constructing the transmission line of the P/PE-link with optical cables, the transmission distance of the P/PE-link can be
extended. Further, since an optical transmission line is less influenced by noise, it is also effective if any device generating
noise exists in the middle of the transmission line.

3-3-1 Summary of P/PE-link optical converters


The following optical converters are available for the P/PE-link.

Optical converter General specifications


FNC300A-C10 Quartz fiber SI type, Distance between converters: max. 1km, Main power supply: 100V AC/DC
FNC300A-A20 Quartz fiber SI type, Distance between converters: max. 1km, Main power supply: 200V AC
FNC320A-C10 Quartz fiber GI type, Distance between converters: max. 3km, Main power supply: 100V AC/DC
FNC320A-A20 Quartz fiber GI type, Distance between converters: max. 3km, Main power supply: 200V AC

3-3-2 System configuration with optical converter (FCN300)


(1) Basic configuration
1) The transmission line is changed to an optical line by use of two optical converters.
< Maximum length of total distance >
P-link: 1.5km (Electrical line 250m x 2, Optical line 1km)
PE-link: 2km (Electrical line 500m x 2, Optical line 1km)
< P/PE-link module >
P-link: Max. 16
PE-link: Max. 64

Max. 1km

Optical line
FNC300 FNC300

Electrical line Electrical line

P/PE P/PE P/PE P/PE

PE-link (Max. 500m) PE-link (Max. 500m)


P-link (Max. 250m) P-link (Max. 250m)

2) By linking two optical converters through two optical cables, the optical transmission line can be duplicated. In this case,
if any part of the optical cable becomes broken, transmission can be continued without interruption and a highly reliable
system can be configured.

Max. 1km

Optical line
FNC300 FNC300

Electrical line Electrical line

P/PE P/PE P/PE P/PE

PE-link (Max. 500m) PE-link (Max. 500m)


P-link (Max. 250m) P-link (Max. 250m)

3-4
Section 3 System Configuration
3-3 P/PE-link System with Optical Converter
(2) Cascade connection (Number of optical converters that can be connected: max.17)
1) Cascade connection 1
By cascading optical converters, P-link modules distributed by large distances from each other can be connected effectively.
* Total length of optical transmission line: max. 16km

Optical line Optical line Optical line

FNC300 FNC300 FNC300 FNC300

Electrical line Electrical line Electrical line Electrical line

P/PE P/PE P/PE P/PE P/PE P/PE P/PE P/PE

2) Cascade connection 2
The optical transmission line can be duplicated for improved reliability.

Optical line Optical line Optical line

FCN300 FCN300 FCN300 FCN300 FCN300 FCN300

Electrical line Electrical line Electrical line Electrical line

P /P E P /P E P/PE P/PE P/PE P/PE P/PE P/PE

3-5
Section 3 System Configuration
3-3 P/PE-link System with Optical Converter
(3) Loop connection (Number of optical converters that can be connected: max. 17)
The optical transmission line can be connected in a loop for effective duplication of the configuration. Even if any part of the
optical cables is broken, transmission can continue without interruption.

P/PE Optical line


FNC
300
* Total length of optical
P/PE Transmission line:
Max. 16km
Electric line Optical line

P/PE P/PE
FNC FNC
300 300
P/PE P/PE

Electric line Electric line

Optical line Optical line

P/PE P/PE
FNC FNC
300 Optical line 300
P/PE P/PE

Electric line Electric line

(4) Star connection (8 pairs maximum)


With a star connection, capsule groups dispersed in a wide area can be effectively connected. Since the effect of an optical
converter error is limited to within the region where the error occurred, a highly reliable system can be configured. As shown in
the following figure, transmission lines can be duplicated (by connecting the lines shown as dotted lines).

P/PE P/PE P/PE

Electrical line

FNC300 FNC300 FNC300

Optical line Optical line Optical line

FNC300 FNC300 FNC300

Electrical line Electrical line Electrical line

P/PE P/PE P/PE P/PE P/PE P/PE

3-6
Section 3 System Configuration
3-3 P/PE-link System with Optical Converter
3-3-3 System configuration with long distance optical converter (FNC320)
(1) Basic configuration
1) The transmission line is changed to optical line by use of two converters.
< Maximum length of total distance >
P-link: 3.5km (Electrical line 250m x 2, Optical line 3km)
PE-link: 4km (Electrical line 500m x 2, Optical line 3km)
< Number of connectable P/PE-link modules >
P-link: Max. 16
PE-link: Max. 64

Max. 3km
T: Optical transmission module
R: Optical reception module

Optical line
TR TR TR TR
FNC320 FNC320

Electrical line Electrical line

P/PE P/PE P/PE P/PE

PE-link (Max. 500m) PE-link (Max. 500m)


P-link (Max. 250m) P-link (Max. 250m)

2) By connecting two optical converters through two optical cables, the optical transmission line can be duplicated. In this
case, if any part of the optical cable becomes broken, transmission can be continued without interruption and a highly
reliable system can be configured.

Max. 3km

Optical line
TR TR TR TR
FNC320 FNC320

Electrical line Electrical line

P/PE P/PE P/PE P/PE

PE-link (Max. 500m) PE-link (Max. 500m)


P-link (Max. 250m) P-link (Max. 250m)

3-7
Section 3 System Configuration
3-3 P/PE-link System with Optical Converter
(2) Cascade connection (Number of optical converters that can be connected: max. 17)
By cascading optical converters, P-link modules separated by large distances from each other can be connected effectively.
* Total length of optical transmission line: max. 48km

Optical line Optical line Optical line

TR TR TR TR TR TR TR TR
FNC320 FNC320 FNC320 FNC320

Electrical line Electrical line Electrical line Electrical line

module

module
module

module

module

module

module
module

P-link

P-link
P-link

P-link

P-link

P-link

P-link
P-link

(3) Loop connection (Number of optical converters that can be connected: max. 17)
The optical transmission line can be connected in a loop for effective duplication of the configuration. Even if any part of the
optical cables is broken, transmission can continue without interruption.
* Total distance length of optical transmission line: max. 48km

Optical line
P/PE T
R
FNC
320 T
P/PE R

Electrical line Optical line

P/PE T R P/PE
R T
FNC FNC
320 T 320 R
P/PE R T P/PE

Electrical line Electrical line

Optical line Optical line

P/PE T R P/PE
R T
FNC FNC
Optical line 320 R
320 T
P/PE R T P/PE

Electrical line Electrical line

3-8
Section 3 System Configuration
3-3 P/PE-link System with Optical Converter
(4) Star connection (8 pairs maximum)
With a star connection, capsule groups dispersed in a wide area can be effectively connected. Since the effect of an optical
converter error is limited to within the region where the error occurred, a highly reliable system can be configured. As shown in
the following figure, transmission lines can be duplicated (by connecting the paths shown as dotted lines).

P/PE P/PE P/PE

Electrical line

FNC320 FNC320 FNC320


RT RT RT RT RT RT

Optical line Optical line Optical line

TR TR TR TR TR TR
FNC320 FNC320 FNC320

Electrical line Electrical line Electrical line

P/PE P/PE P/PE P/PE P/PE P/PE

3-9
Section 4 System Definition

To construct a P-link system or a PE-link system with using a P-link module or a PE-link module of MICREX-SX series, the
system definitions listed below are required for each configuration.
System configuration definition
Operation definition
Configuration registration definition
(Registration of P/PE-link configured stations)
Area selection (Automatic sending area selection)
Change bank CPU definition

4-1 Module Registration


The P-link modules or PE-link modules that are used for the system definition are registered.
The configuration below is explained as an example.

< Configuration example > P-link station No.0


CPU number 8

I/O I/O

CPU
A

<Setting procedure>
Double-click the [System definition] icon in the project tree with the left button. The system configuration window is
displayed. If the program is written in the package displays mode of PLC programmer, the [System definition] dialog
box is displayed when PLC function [System definition] is executed. As shown in the figure below, the window
initially displays the 11-slot base with the registered power supply module and CPU module.

To change used base board, right-click


the base board that is currently
registered and then left-click the
[property] button to display the [Module
property] dialog box. Select the base
board that you use on it.

4-1
Section 4 System Definition
4-1 Module Registration
Register the P-link module. As the P-link module is mounted on the right of the CPU module (example of configuration
in the previous page), click the [Insert] button on the system definition window or click the <Insert> key with the CPU
module selected. The Module insertion dialog box is displayed.
Select the Processor link module for the module group type and then select the P-link for the outline specification.

Set the CPU number of the P-link module and click the [OK] button. The P-link module is registered.

Note: Registration of the P/PE-link module should be with slot which is on the processor bus.

4-2
Section 4 System Definition
4-2 Operation Definition (Local Station Number Selection)
This definition is used to select the local station number of P/PE-link.
<Setting procedure>
Right-click the P-link module registerd in the System definition dialog box and left-click the property button on the menu.
The [Module property] dialog box is displayed.

Click the [parameter] button on the [Module property] dialog box. The [P-link parameter setting] dialog box is displayed.

Register the P-link station number of the local station on this screen.

4-3
Section 4 System Definition
4-3 Configuration Registration Definition
This definition is used to register all station numbers of P/PE-link modules that are connected to the P/PE link.
<Setting procedure>
Left-click the [Structure definition] tab in the P-link parameters setting dialog box.
The following screen is displayed.

Left-click the station number of the P-link module that is connected to the P-link.

<Example of P-link configuration>

P-link

P-link station number


00 01 02 07 08

For the above configuration, the setting is as shown below.

4-4
Section 4 System Definition
4-4 Area Selection
The sending area of P/PE-link module is selected.
<Setting procedure>
Left-click the [Area setting] tab in the P-link dialog box. The following screen is displayed.

The figure is the area selection window for


the P-link. One block is equal to 32 words.
For the PE-link, one block is equal to 8 words.

Set the first block number and the number of sending blocks in the transmission area of the local station.

4-5
Section 4 System Definition
4-5 Changing Bank
When the data are exchanged between the broadcast area and the application program, it occurs that the uniqueness of the
data is important. The uniqueness of the data is maintained by changing the memory (bank) of the broadcast area for P/PE-
link modules.

4-5-1 Data exchanging mode in broadcast communication


In MICREX-SX series, there are two modes of exchanging the data between the broadcast area and the application program.
1) Asynchronous mode
The same memory (broadcast area) is accessed by the P/PE-link transmission and the application program at the same time.

P/PE transmission line


CPU P/PE
Note: Since the same area is accessed at the
Send area
same time, the uniqueness of the data
Application

in the whole is not maintained.


However, the uniqueness of the one word
Receive area is maintained.

2) Change bank mode (Synchronous mode)


There are two send memories which are the same size, and two receive memories which are the same size as all.
The P/PE-link transmission accesses different memory from the memory accessed by the application program.
Since the same memory is not accessed at the same time, the uniqueness of the data can be maintained.

CPU P/PE
P/PE transmission line

Send area
Application

* Note: The uniqueness of each bank (high-speed 2


area, low-speed 1 area, low-speed 2 area,
Send area
receive area) is maintained.
(Send buffer)

Receive area

*
Receive area
(Receive buffer)

* The application program (change bank FB) changes the send / receive area accessed by the application program of the
send / receive area accessed by the P/PE-link.

4-6
Section 4 System Definition
4-5 Changing Bank
4-5-2 Change bank CPU definition
This definition is used to register the CPU which issues a change bank command. Two or more CPUs can be specified.
When even one CPU is registered, the change bank mode is performed. When no CPU is registered, the asynchronous mode
is performed.

<Setting procedure>
Left-click the [Definition of bank change] tab in the P-link parameter setting dialog box. The following screen is
displayed.

Click the button to register the CPU tat performs the change bank.

Note 1: The application program (change bank FB) performs the change bank. Refer to Appendix 1-2.
Note 2: The CPU that performs the change bank and the P/PE-link module must be mounted on the same processor
bus (on the same base).
Note 3: For the transmission area in the NP1L-PL1 (P-link), the bank change of the high speed area, the low speed 1
area and low speed 2 area is performed collectively. Thus the settings of these areas must be same. For
example, if CPU 0 performs the change bank of the high speed area, CPU 0 must be set to perform also the
bank change of the low speed 1 area and low speed 2.

4-7
Section 4 System Definition
4-5 Changing Bank
<Setting of change bank in the redundant system>
1) 1 to 1 redundant mode
Set the CPU numbers of both operating CPU (CPU 0) and waiting CPU (CPU 1).
<Setting example>
Operating CPU Waiting CPU

2) N to 1 redundant mode
Register the CPU numbers of all the operating CPU (CPU 0, 1, 2) and waiting CPU (CPU 3).
<Setting example>
Operating CPU Waiting CPU

4-8
Section 5 Wiring
5-1 Wiring Precautions
(1) Before removing the connector, remove the fixing screws.
(2) Communications cables must be isolated from high-voltage cables and power cables as far as possible. Communication
cables must not be run parallel with those cables.
(3) These cables should be installed as shown in the following figure. Shielding cables should be used.

Communication cable

1)

300mm or more
Lower power cable

2)

1) P/PE-link cable
300mm or more 2) Input / Output current, PC power supply circuit
3) General-purpose control circuit
Control cable
4) Power circuit
3)

300mm or more
Power cable

4)
Metal plate

Grounding
(Grounding resistance of 100 or less)

200mm or more
?Communication cable Lower power cable Control cable Power cable

1) 2) 3) 4)

Grounding
(Grounding resistance of 100 or less)

5-1
Section 5 Wiring
5-2 P/PE-link Wiring
Process the ends of P/PE-link cables.
(1) Remove a part of the sheath
and internal insulation

Approx. Approx. Approx.


40 40 35

Cut the sheath Remove the cut part of Cut the internal insulation and expose
sheath to expose the shield the internal conductor.
wire (external conductor).

(2) Attach crimp terminals

When two P/PE-link cables are to be


connected to one terminal block, each
pair of wires can be connected to one
For the shield wire, apply the insulation crimp terminal for convenience.
tube before caulking the terminal.

Note: If wires are connected directly to the terminal (3) Assembling


block without using crimp terminals,
connection failure may result and P/PE-link
transmission errors may occur. Therefore,
Tightening torgue: 0.3 to 0.4Nm
crimp terminals must be used.

The followings are recommended.


Maker Type
JST(Nichiatsu) 2-M3
Toei 2-3.5, 2-4S

P/PE-link terminating resistance

Note: Connect P/PE-link terminating resistances


to both ends of the P/PE-link.

Shield wire

5-2
Section 5 Wiring
5-3 Wiring Rule
P (inner wire) must be connected P, SD (shield wire) must be connected SD.
P and SD must not be grounding.

Correct Incorrect

P P P P P P P

SD SD SD SD SD SD SD

P-link cable must be connected as a single line. Branching is not permitted.


The station numbers are not necessary to be in order.

Correct Incorrect

Station Station Station Station Station Station


0 3 2 0 3 2

Station Station
1 1

Terminating resistors must be connected at the both ends of the P/PE-link.


There are connected between P and SD.
In other cases, the transmission may be fault.

Correct Incorrect

Station Station Station Station Station Station


0 3 2 0 3 2

Station Station
1 : Terminating resistor 1

5-3
Section 6 Troubleshooting

Diagnosis of the system status and failure by using the P/PE-link module is carried out by the following three methods.
Diagnosis by the LED indication of the CPU module
Diagnosis by the system memory of the CPU module and the memory of the PE-link module.
Diagnosis by the failure diagnosis function of the loader

6-1 Diagnosis with Status Indication LED


With the lighting condition of the P/PE-link modules status indication LED, the summary status of the module and the
P/PE-link system can be diagnosed.

10. 50& 4%8

'44 .'4 6'4

Symbol Color Description


Lights when the P/PE-link module is operating.
ONL Green
Blinks until the SX bus is activated after the system power source is turned on.
ERR Red Lights when there is an error in mofule itself or on the SX bus.
SND Green Lights during transmission of P/PE-link data SND and RCV blink together until P/PE link
communication is established after the system
RCV Green Lights during reception of P/PE link data power source is turned on.
LER and TER blink together: setting error
Lights when a link error occurs; when a registered P/PE-link The transmission area is set out of allowable
LER Red station is not connected or a connected P/PE-link statioin is range.
disconnected. The setting of the station No. is not valid.
Duplication of the station No. is detected.
TER Red Lights when a transmission error occurs. Duplication of the transmission areas is
detected.

<LED light-on examples>

Common indication Individual indication


Status of module
ONL ERR SND RCV LER TER
Blink Waiting for the SX bus initialization (common to all modules

connected to the SX bus).
* Waiting for key code input to the communication port (blinking at
Blink Blink
long intervals).
ON Blink Blink In normal transmission (blinking at short intervals).
Continuous operation is possible even though transmission error
ON Blink Blink Blink
indicator (TER) occasionally turns on.
ON Blink Blink ON P/PE-link configuration fault.
ON Blink Blink Operation definition setting error. (blinking)
ON Hardware fault in module.

6-1
Section 6 Troubleshooting
6-2 Diagnosis with Flags
With flags in the system memory of the CPU module and flags in the PE-link module, the statuses of the stations that
configure the P/PE-link (whether they are normal) and the running definition (whether it is valid) can be diagnosed.
The processor-link running definition fault flag, the link configuration flag and fault flag that are explained below can be
used with an application program.

6-2-1 Initialization error flag


The P/PE- link initialization error flags are assigned at the system memory area in the CPU module.

Address

Expression in Expression in Description


D300win SX-Programmer Standard

%MX10.26.0 SM260 Processor-link 0 initialization error


Turns on when an error is found in the running definition of the CPU
station No.8 P-link module or the PE-link module.

%MX10.26.1 SM261 Processor-link 1 initialization error


Turns on when an error is found in the running definition of the CPU
station No.9 P-link module or the PE-link module.

Note: If the above flags turn on, the system is stopped by a fatal fault.

6-2
Section 6 Troubleshooting
6-2 Diagnosis with Flags
6-2-2 Link configuration flag / fault flag
This flag indicates the statuses of each P/PE link module that configure the P/PE-link. The corresponding station number
turns on. This flag is provided in the P/PE-link module.
(1) P-link module configuration / fault flag

For D300win
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
%MW.1.7808 F E D C B A 9 8 7 6 5 4 3 2 1 0 Configuration flag
%MW.1.7809 F E D C B A 9 8 7 6 5 4 3 2 1 0 Fault flag

For PLC Programmer


15(F) 8 0
WM.7808 F E D C B A 9 8 7 6 5 4 3 2 1 0 Cobfiguration flag
WM.7809 F E D C B A 9 8 7 6 5 4 3 2 1 0 Fault flag

(2) PE-link module configuration / fault flag

For D300win 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
%MW.1.25088 F E D C B A 9 8 7 6 5 4 3 2 1 0
%MW.1.25089 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10
%MW.1.25090 2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20
%MW.1.25091 3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30
%MW.1.25092 F E D C B A 9 8 7 6 5 4 3 2 1 0
%MW.1.25093 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10
%MW.1.25094 2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20
%MW.1.25095 3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30

For PLC Programmer


15(F) 8 7 0
WM.25088 F E D C B A 9 8 7 6 5 4 3 2 1 0
WM.25089 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10
WM.25090 2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20
WM.25091 3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30
WM.25092 F E D C B A 9 8 7 6 5 4 3 2 1 0
WM.25093 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10
WM.25094 2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20
WM.25095 3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30

Note: indicates the CPU number of the module.

6-3
Section 6 Troubleshooting
6-3 Diagnosis with Loader
With the failure diagnosis function of the program loader, the following information can be read out.

Information Information display

System module configuration System configuration display on the [Failure diagnosis] dialog box

P/PE-link module type information Detailed information display on the [Failure diagnosis] dialog box
System RAS screen

P/PE-link module intensive status information Detailed information display on the [Failure diagnosis] dialog box
System RAS screen

SX bus transmission information Detailed information display on the [Failure diagnosis] dialog box
Bus transmission information screen

RAS inmormation in the P/PE-link module Detailed information display on the [Failure diagnosis] dialog box
Dump list screen

<Procedure for diagnosis>


Make the system that needs to be diagnosed on-line and then display the [Failure diagnosis] dialog box.
Select the P-link module in the system configuration tree on the left-hand side of the screen. The detailed information is
displayed on the right-hand side of the screen.

System configuration display Detailed information display

The error information that is currently displayed is stored in a text file.

6-4
Section 6 Troubleshooting
6-3 Diagnosis with Loader
With the tabs on the detailed information display, the information display can be changed.
1) System RAS screen

2) SX bus transmission screen

3) Dump list screen

6-5
Section 6 Troubleshooting
6-3 Diagnosis with Loader
6-3-1 System RAS information
On the system RAS screen, the following information is displayed.
The type information of the P/PE-link module selected on the system configuration display
The module intensive status of the P/PE-link module selected on the system configuration display

(1) Type information


The module type and the software version No. (the firmware version of the module) are displayed.
(2) Module intensive status information

Classification Displayed message Description

Normal Module running normally Initialization is completed and module is running normally.

Module fatal fault: error input detection Hardware fault; module needs to be replaced.

Module fatal fault: WDT up fault Hardware fault; module needs to be replaced.

Module fatal fault: CPU fault Hardware fault; module needs to be replaced.

Module fatal fault: ROM fault Hardware fault; module needs to be replaced.

Fatal fault Module fatal fault: RAM fault Hardware fault; module needs to be replaced.

Module fatal fault: memory buckup fault Hardware fault; module needs to be replaced.

Check the status of the SX bus. A wire break, base board


Module fatal fault: SX bus fault
fault, or external effects such as noise can be expected.

Check the status of the processor bus. Base board fault or


Module fatal fault: processor bus fault
external effects such as noise can be expected.

P/PE-link apparatus fault; check the switch setting, the


Module nonfatal fault: external interface fault system definition setting and the wiring of the P/PE-link
cables.
Nonfatal fault
The P/PE-link module detects an error in the SX bus part.
Module nonfatal fault: TF, MC monitor time-out Check the status of the SX bus (the mounting condition of
the SX bus cables and terminating plugs).

Note: If Module disconnected is displayed on the system RAS screen , check the CPU station No. selection switch.
For P-link module, check that the upper digit of the P-link station No. selection switch is set at 4. These switch
setting errors cannot be detected as RAS information.

6-6
Section 6 Troubleshooting
6-3 Diagnosis with Loader
6-3-2 SX bus transmission information
If noise interferes with the SX bus transmission line or if the wiring of SX bus is defective, various errors that are related to SX
bus transmission are counted. When such error counter works, it means that the environment of the SX bus system is
problematic with respect to noise. And some measure needs to be taken.

<List of SX bus transmission status>

SX bus transmission status Descriotion

CRC error detected counter (Valid stamp) Counted up if CRC error is detected but stamp is valid.

Symbol error detected counter Counted up if symbol error is detected.

Frame length error detected counter Counted up if frame length error is detected.

Counted up if disconnection is detected (if transmission is stopped for


Disconnection detected counter
130 ms or longer time.)

CRC error detected counter Counted up if CRC error is detected.

Counted up if frame receiving is stopped in the middle of frame receiving


Frame error detected counter
operation.

Counted up if SD (the code indicating the top of a frame) is received in


SD detected counter
the middle of frame receiving operation.

Counted up if END is not at specified position during the 1st cycle of


TF1 END position error detected counter
total frame receiving.

Counted up if END is not at specified position during the 2nd cycle of


TF2 END position error detected counter
total frame receiving.

Counted up if error is found in a received frame during the 2nd cycle of


TF2 stamp error detected counter
total frame receiving.

Counted up if buffer full is detected in the middle of total frame receiving


Buffer full 1 detected counter
or multicast frame receiving.

Counted up if buffer full is detected in the middle of message, ACK or


Buffer full 2 detected counter
NAK receiving.

Counted up if buffer full is detected in the middle of token frame


Buffer full 3 detected counter
receiving.

6-7
Section 6 Troubleshooting
6-3 Diagnosis with Loader
6-3-3 Dump list
In the dump list of this module, the following information is stored.
Configuration / fault flag
P-link transmission information This information is the internal code that is used basically by FUJI engineer for
adjustment.
PE-link transmission information This information is the internal code that is used basically by FUJI engineer for
adjustment
Message error log This information is the internal code that is used basically by FUJI engineer for adjustment.
On-board hard error factor
P-link error information This information is the internal code that is used basically by FUJI engineer for adjustment.
PE-link error information This information is the internal code that is used basically by FUJI engineer for adjustment.
(1) Configuration / fault flag
This flag indicates the status of the stations that configure the P/PE-link.
P-link module

Station configuring (linkpreceding)


Station configuring link (newest)
Unused
0000:0401 0000 0000 0000 0000 0000 0000 0000
0008:0002 0000 0000 0000 0000 0000 0000 0000
0010:0800 0000 0000 0000 0000 0000 0000 0000
0018:0000 0000 0000 0000 0000 0000 0000 0000

Error station (newest) Error stationl (proceding)

Link configuration station (newest)


0 4 0 1
0401 0000010000000001 This shows P-link station No.00
P-link station No.00 and No.10 are connected to the
link normally.
P-link station NO.10 (Ah)
Link configuration station (preceding)
0 C 0 1
0C01 0000110000000001 This shows P-link station No.00 and
P-link station No.00 No.10were connected to the link
P-link station No.10 (Ah) normally in the preceding session.

P-link station No.11 (Bh)


Error station (newest) 0 8 0 0
0800 0000100000000000 This shows an error occurs in
the P-link station No.11.
P-station No.11 (Bh)
Error station (preceiding) 0 0 0 0
0000 0000000000000000 This shows there was no error
station in the preceding session.

Configuration flag and fault flag are updated when a change occurs in the configuration of the P-link stations.
6-8
Section 6 Troubleshooting
6-3 Diagnosis with Loader
PE-link module

Link configuration definition information


Link configuration station (newest)
Unused
0000:0001 0000 0000 0000 0000 0000 0000 0000
0008:000F 0000 0000 0000 0000 0000 0000 0000
0010:000E 0000 0000 0000 0000 0000 0000 0000
0018:0000 0000 0000 0000 0000 0000 0000 0000

End link station information Disconnected station information

Link configuration station (newest)


0 0 0 1 This shows PE-link station No.00 is
0001 0000000000000001 connectedto the link normally.

PE-link station No.00


Link configuration definition information
0 0 0 F
000F 0000000000001111 This shows PE-link station No.1, No.2
and No.3 are registrated as stations to be
PE-link station No.00 to 03 conected to the link in the system definition.

End link station information


0 0 0 E
000E 0000000000001110 This shows PE-link station No.01, No.02
andNo.03 that are registered in the system
PE-link station No.01 to 03 definition are not connected to the link.

Disconnected station information


0 0 0 0
When a station that is registered in the system
0000 0000000000000000
definitionand normally connected to the link is
disconnected later, the corresponding bit turns on.

6-9
Section 6 Troubleshooting
6-3 Diagnosis with Loader
(2) On-board hard error factor
The error information about the P/PE-link is shown. If any flag in this area turns on, the module needs to be replaced.

15(F) 8 7 0
0 0 0 0 0 0 0 0 0 0 0 0

CPU error
Unused
ROM error

RAM error
Communication LSI error

6-10
Appendix 1 Example Programs
Appendix 1-1 Message Communication Program between SX series
Appendix 1-1-1 Overview of communication methods
The methods for message communication between SX series (between configurations) with P/PE-link are as follows.
1) Data write by R_WRITE FB (Data receive program is not necessary on the other side.)
2) Data read by R_READ FB (Data send program is not necessary on the other side.)
3) Data send by M_OPEN+M_SEND (Data receive program by M_OPEN+M_RECEIVE) is necessary on the other side.
Note: Never have access to the memory of the P/PE-link module by the following instructions.
1) WRITE_BOOL: The access data cannot be guaranteed.
2) EXT_T_S: The result of the execution of the instruction ends abnormally. (Error code: INT#32)

Appendix 1-1-2 System configuration of sample program


< Configuration diagram >

PE-link module A PE-link module B


SX bus station number : 246 SX bus station number : 246
Configuration A PE-link station number : 1 Configuration B PE-link station number : 3F
(transmission side) Used port number :1 (reception side) Used port number :1

I/O I/O I/O I/O

Power CPU Power CPU


supply A supply B

PE-link

App.1-1
Appendix 1 Example Programs
Appendix 1-1 Example of Message Communication Program
Appendix 1-1-3 Sample programs
(1) Sample program of R_WRITE
<Operation>
Data in WORD form of CPU_A is written to the standard memory (%MW1.2048 to %MW1.2048) of CPU_B in another system
(configuration).

SX SX

CPU A CPU B %MW1.2048 1111


%MW1.2049 2222
R_WRITE
%MW1.2050 3333
%MW1.2051 4444
%MW1.2052 5555

<Program CPU A side>


The data receive program is not necessary on the CPU B side.

WORD#16#1111 W_DATA1 Declaration of data type


WORD#16#2222W_DATA2 TYPE
Write data WORD#16#3333W_DATA3 W_1_5ARRAY1...5OF WORD
WORD#16#4444W_DATA4 I_1_4ARRAY1...4OF INT
WORD#16#5555W_DATA5 END_TYPE

INT#0ADD_DATA1 CPU No.0


Address of write INT#1ADD_DATA2 Memory type 1 (standard memory)(Note4)
memory area INT#2048ADD_DATA3 Low-order digit of address
INT#0ADD_DATA4 High-order digit of address (normally 0)

R_WRITE_1

R_WRITE END
W_START REQ DONE S
SX bus station No. in ERR
UINT#246 MODULE_NO ERROR S
CPU A side PE-link module
(Note1) UINT#0 CHANNEL_NO STATUS STA1
PE-link station No. in
UDINT#16#3F STATION_NO
CPU B side PE-link module.
(Note2) UINT#0 VAR_TYPE

(Note3) ADD_DATA REMOTE_VAR REMOTE_VAR ADD_DATA

UINT#5 SIZE

(Note3) W_DATA SD SD W_DATA

001
F_REST END
R
ERR
R

Note 1: In the case of P/PE-link module, fixed to 0.


Note 2: If the write memory area is in SX series CPU, entered 0.
Note 3: The data type for ADD_DATA is I_1_4, and the data type for W_DATA is W_1_5.
Note 4: Memory types 1: Standard memory 2: Retain memory 3: System memory

App.1-2
Appendix 1 Example Programs
Appendix 1-1 Example of Message Communication Program
(2) Sample program of R_READ
<Operation>
Data in CPU_B (%MW1.2048 to %MW1.2052) is read to CPU_A in another configuration.

SX SX

CPU A CPU B
R_READ

<Program CPU A side>


The data send program is not necessary on the CPU B side.

INT#0ADD_DATA21 CPU No.0 Declaration of data type


INT#1ADD_DATA22 Memory type 1standard memory TYPE
Read
address INT#2048ADD_DATA23 Low-order digit of address W_1_5ARRAY1...5OF WORD
INT#0ADD_DATA24 High-order digit of address I_1_4ARRAY1...4OF INT
END_TYPE
R_READ_1

R_READ
END2
W_START REQ DONE S
SX bus station No. in ERR2
UINT#246 MODULE_NO ERROR
CPU A side PE-link module S
(Note1) UINT#0 CHANNEL_NO STATUS STA2
PE-link station No. in
UDINT#16#3F STATION_NO
CPU B side PE-link module
(Note2) UINT#0 VAR_TYPE

(Note3) ADD_DATA2 REMOTE_VAR REMOTE_VAR ADD_DATA2

UINT#5 SIZE

(Note3) R_DATA RD RD R_DATA

R_DATA[1]MON1
R_DATA[2]MON2 Read data monitor
R_DATA[3]MON3 The data type for variable from MON1 to MON5 is WORD type.
R_DATA[4]MON4
R_DATA[5]MON5

001
F_REST2 END2
R
ERR2
R

Note 1: In the case of P/PE-link module, fixed to 0.


Note 2: If the read memory area is in SX series CPU, entered 0.
Note 3: The data type for ADD_DATA 2 is I_1_4, the data type for R_DATA is W_1_5.

App.1-3
Appendix 1 Example Programs
Appendix 1-1 Example of Message Communication Program
(3) Data send with M_OPEN+M_SEND
<Operation>
By using M_SEND FB from CPU A, data is transmitted to CPU_B in another configuration.
<Program CPU A side (data send program)>
If SND_SW is turned on, send data (S_DATA) is transmitted in message communication.

1234-S_DATA [1] Declaration of data type


2345-S_DATA [2] TYPE
Send data 3456-S_DATA [3] I_1_5 : ARRAY [1...5] OF INT ;
4567-S_DATA [4] END_TYPE
5678-S_DATA [5]

001
SND_SW S_END
R
S_ERR
R

M_OPEN_1
M_SEND_1
M_OPEN SND_SW M_SEND S_END
BOOL#1 EN_C VALID REQ DONE S
S_ERR
SX bus station No.in PE-link module A UINT#246 MODULE_NO CON_NO CON_NO ERROR S
(Note1) UINT#0 CHANNEL_NO STATUS OPEN_STA STATUS S_STA1

PE-link station No. in PE-link module B UDINT#16#3F STATION_NO (Note2) W_DATA SD SD S_DATA

Communication with other configuration UINT#1 MODULE_TYPE UINT#5 SIZE

(Note1) UINT#0 MODE

(Note1) UINT#0 SUB_MODE


0_ERR
UINT#2 RPORT_NO ERROR S

UINT#1 SPORT_NO

Note 1: In the case of P/PE-link module, fixed to 0.


Note 2: The data type for S_DATA is I_1_5.

App.1-4
Appendix 1 Example Programs
Appendix 1-1 Example of Message Communication Program
<Program CPU B side (Data receive program)>
When R_SW is turned ON, the state changes to waiting for message reception. When data is transmitted, send data from
CPU-A is received and R_END turns ON. Received data is stored in R_DATA.

R_SW R_END
R
R_ERR
R

M_OPEN_1
M_RECEIVE_1
(Note 2)
M_OPEN
R_SW M_RECEIVE R_END
BOOL#1 EN_C VALID EN_R NDR S
R_ERR
SX bus station number in PE-link module B UINT#246 MODULE_NO CON_NO CON_NO ERROR S
(Note1) UINT#0 CHANNEL_NO STATUS R_STA

PE-link station number in PE-link module A UDINT#16#00 STATION_NO R_DATA RD RD

Communication with other configuration UINT#1 MODULE_TYPE UINT#5 SIZE

(Note1) UINT#0 MODE

(Note1) UINT#0 SUB_MODE


O_ERR
UINT#1 RPORT_NO ERROR S

UINT#2 SPORT_NO STATUS OPEN_STA

Note 1: In the case of a P/PE-link module, fixed to 0.


Note 2: During message reception processing (from the rising edge of EN_R until NDR or ERROR turns ON),
maintain the EN_R reception enable input as ON.
Note 3: The data type for R_DATA is I_1_5.

App.1-5
Appendix 1 Example Programs
Appendix 1-2 Example of Bank-change Program
With two configurations linked through the PE-link as shown in the following figure, a program used to change the bank of data
transmission in broadcast communication will be explained.
<Configuration diagram>

PE-link module A PE-link module B


Configuration A SX bus station number : 246 Configuration B SX bus station number : 246

I/O I/O I/O I/O

Power CPU Power CPU


supply A supply B

PE-link

< Example of data read-out program (CPU-A) >


When B_CHG is turned ON, the bank is changed. After the bank-change is completed, broadcast data of the PE-link is read-
out. In this example, if the bank-change is completed correctly, data of %MD8.1.0 is stored in D_DATA. 0 is stored if there was
an error in the bank-change.
BANK_CHG_1

BANK_CHG
B_CHG REQ DONE OK
SX bus station No. in UINT#246 MODULE_NO ERROR ERR
PE-link module A
STATUS STA

BUSY BUSY

Processor bus access error


001 Note3)
OK %MX10.11.14 ERR SEL_DWORD
G D_DATA1
D_DATA1 IN0
%MD8.1.0 IN1

Note 1: For using BANK_CHG FB, the CPU module that performs change bank and P/PE link module must be mounted on the
same processor bus (on the same base). If they are not mounted on the same processor bus and this FB is executed,
an application program execution error occurs.
Note 2: For using BANK_CHG FB, be sure to perform the change bank CPU definition in 4-5-2.
Note 3: Data read is performed through the processor bus. Check with an application that there is no error in the processor
bus.

App.1-6
Appendix 1 Example Programs
Appendix 1-2 Example of Bank-change Program
< Example of data write-in program (CPU-B) >
After the write-in data is set, the bank is changed.
In this example program, the bank is changed after data #12345678 in the DWORD format is written-in.

Sampled write-in data DWORD#16#12345678-%MD8.1.0

BANK_CHG_1

BANK_CHG
B_CHG_S REQ DONE OK
SX bus station number in
PE-link module B UINT#246 MODULE_NO ERROR ERR

STATUS STA

BUSY BUSY

001 R_TRIG_1
B_CHGS SEND_OK
R_TRIG
R
CLK Q
SEND_ERR
R

002
BUSY OK SEND_OK
S

ERR SEND_ERR
S

App.1-7
Appendix 1 Example Programs
Appendix 1-3 Message Communication Program with MICREX-F series
Appendix 1-3-1 Overview of communication methods
Message communication methods between MECREX-SX series and MICREX-F series are as follows.
(1) Data transmission (SX_CPU M/F_processor)

SX side (write/send) program M/F side (receive) program

1) Data write with R_WRITE FB Data receive program unnecessary

Message module registration in the system definition and


2) Data send with M_OPEN+M_SEND
Message receive instruction with announce relay

(2) Data read (SX_CPU M/F_processor)

SX side (read) program M/F side program

3) Data read with R_READ FB Data send program unnecessary

(3) Data transmission (M/F_processor SX_CPU)

SX side (send) program M/F side (receive) program

Message module registration and


4) Data receive with M_OPEN+M_RECEIVE
message send instruction with announce relay

Appendix 1-3-2 System configuration of sample program


The system configuration of the sample program explained in the following section.

PE-link module
SX bus station No.246 MICREX-F120S
PE-link station No.00
MICREX-SX

PE-link station No.01

Power CPU
supply

PE-link

App.1-8
Appendix 1 Example Programs
Appendix 1-3 Message Communication Program with MICREX-F series
Appendix 1-3-3 Sample programs
(1) Sample program of R_WRITE
<Operation>
WORD type data is written to the auxiliary memory (WM100 to WM104) in the MICREX-F series processor bus.

M/F Auxiliary memory


R_WRITE
SX WM100 1111
WM101 2222
WM102 3333
WM103 4444
WM104 5555

<Program>

WORD#16#1111W_DATA1 Declaration of data type


WORD#16#2222W_DATA2 TYPE
Write data WORD#16#3333W_DATA3 W_1_5ARRAY1...5OF WORD
WORD#16#4444W_DATA4 W_1_2ARRAY1...2OF WORD
WORD#16#5555W_DATA5 END_TYPE

Address of write WORD#16#0001ADD_DATA1 File No.1auxiliary memory M


write memory area WORD#16#0064ADD_DATA2 Address in fileh64=100

001
START END_F01
R
ERR_F01
R

R_WRITE_1

R_WRITE END_F01
START REQ DONE S
SX bus station No. in ERR_F01
UINT#246 MODULE_NO ERROR S
PE-link module
Note 1) UINT#0 CHANNEL_NO STATUS ERR_STA
PE-link station No. in
M/F PE-link card UDINT#1 STATION_NO

If the target is M/F series, UINT#1 VAR_TYPE


entered 1.
Note 2) ADD_DATA REMOTE_VAR REMOTE_VAR

UINT#5 SIZE

Note 2) W_DATA SD SD

Note 1: In the case of P/PE-link module, fixed to 0.


Note 2: The data type for ADD_DATA is W_1_2, and the data type for the W_DATA is W_1_5.

App.1-9
Appendix 1 Example Programs
Appendix 1-3 Message Communication Program with MICREX-F series
(2) Sample program of M_OPEN+M_SEND
<Operation>
WORD type data is transferred to the file area (W30.0 to W30.4) in MICREX-F series processor. Data receive program is
necessary for MICREX-F series.
<Program SX side>

WORD#16#1111W_DATA [1] Declaration of data type


WORD#16#2222W_DATA [2] TYPE
Send data WORD#16#3333W_DATA [3] W_1_5 : ARRAY [1...5] OF WORD ;
WORD#16#4444W_DATA [4] END_TYPE
WORD#16#5555W_DATA [5]

001
START END
R
ERR
R

M_OPEN_1
M_SEND_1
M_OPEN SND_SW M_SEND END
START EN_C VALID REQ DONE S
ERR
SX bus station No. in PE-link module UINT#246 MODULE_NO CON_NO CON_NO ERROR S
(Note1) UINT#1 CHANNEL_NO STATUS STATUS STA1

PE-link station No. in M/F PE-link card UDINT#1 STATION_NO (Note3) W_DATA SD SD

Communication with other configuration UINT#1 MODULE_TYPE UINT#5 SIZE

(Note1) UINT#0 MODE

(Note1) UINT#0 SUB_MODE


ERR
(Note2) UINT#2 RPORT_NO ERROR S

(Note2) UINT#1 SPORT_NO STA

Note1: In the case of a P/PE-link module, fixed to 0.


Note2: For RPORT_NO, enter the receive message No. registered in the M/F system definition.
For SPORT_NO, enter the send message No. registered in the M/F system definition.
Note2: The data type for W_DATA is W_1_5.

<Program M/F side>


A102 A102
R

Note: For the detailed use of the MICREX-F series instruction,


FILE30110SI refer to MICREX-F series instruction (FH160) and
MICREX-F series communication (FH161).

System definition (Message module registration)

Message module No. No. Data module No. Use Link


0
SPORT_No. 1 31 2 4
RPORT_No. 2 30 3 4
3

Send Receive P/PE-link


0ch

App.1-10
Appendix 1 Example Programs
Appendix 1-3 Message Communication Program with MICREX-F series
(3) Sample program of R_READ
<Operation>
The values of the auxiliary memory (WM0 to WM4) in the MICREX-F series processor is read to SX CPU.

M/F Auxiliary memory


R_READ
MW0 SX
MW1
MW2
MW3
MW4

<Program>

Read address WORD#16#0001ADD_DATA1


File No.1Auxiliary memory
WORD#16#0000ADD_DATA2
Word address in fileh0=0

001
START END_F01 Declaration of data type
R TYPE
W_1_10ARRAY1...10OF WORD
ERR_F01 W_1_2ARRAY1...2OF WORD
R END_TYPE

R_READ_1

R_READ END_F01
START REQ DONE S
ERR_F01
SX bus station No. in PE-link module UINT#246 MODULE_NO ERROR S

(Note1UINT#0 CHANNEL_NO STATUS ERR_STA

SX bus station No. in M/F PE-link card UDINT#1 STATION_NO

If the target is M/F series, entered 1. UINT#1 VAR_TYPE

(Note2ADD_DATA REMOTE_VAR REMOTE_VAR ADD_DATA

UINT#5 SIZE

(Note2R_DATA RD RD R_DATA

Note 1: In the case of P/PE link module, fixed to 0.


Note 2: The data type for ADD_DATA is W_1_2, and the data type for R_DATA is W_1_10.

App.1-11
Appendix 1 Example Programs
Appendix 1-3 Message Communication Program with MICREX-F series
(4) Data transmission program from M/F with announce relay
<Operation>
The file area (W31.0 to 31.4) data in the MICREX-F series processor is transmitted to SX_CPU. Data receive program with
M_OPEN+M_RECEIVE is necessary on SX_CPU.

001
B0 D0
System definitionMessage module registration

D0 A51 Message module No. No. Data module No. Use Link
S 0
A101 B100 SPORT_No. 1 31 2 4
RPORT_No. 2 30 3 4
3
A150 B101
Send Receive P/PE-link
0ch

FILE3115SI If message communication complete flag (A101) is turned off,


message communication start flag (A51) turns off.

Note: For the detailed use of MICREX-F series instruction, refer to MICREX-F series instruction (FH160) and MICREX-F
series communication (FH161).
<Program SX side>

M_OPEN_1
M_RECEIVE_1
M_OPEN
M_RECEIVE R_END
START EN_C VALID EN_R NDR S
R_ERR
SX bus station No. in PE-link module UINT#246 MODULE_NO CON_NO CON_NO ERROR S
(Note1UINT#0 CHANNEL_NO STATUS STA1

PE-link station No. in M/F PE-link card UDINT#1 STATION_NO (Note3R_DATA RD RD R_DATA

Communication with other configuration UINT#1 MODULE_TYPE UINT#5 SIZE

(Note1UINT#0 MODE

(Note1UINT#0 SUB_MODE
ERR
(Note2UINT#2 RPORT_NO ERROR S

(Note2UINT#1 SPORT_NO STATUS STA

001 Declaration of data type


F_RESET R_END TYPE
W_1_10ARRAY1...5OF WORD
R
END_TYPE
R_ERR
R

Note 1: In the case of PE-link module, fixed to 0.


Note 2: For RPORT_NO, enter the receive message number registered in the M/F system definition.
For SPORT_NO, enter the send message number registered in the M/F system definition.
Note 3: The data type for R_DATA is W_1_10.

App.1-12
Mitsui Sumitomo Bank Ningyo-cho Bldg.,
5-7, Nihonbashi Odemma-cho, Chuo-ku, Tokyo 103-0011, Japan
Phone: +81-3-5847-8011
Fax: +81-3-5847-8172
URL http://www.fujielectric.co.jp/fcs/eng/

Information in this manual is subject to change without notice.

Das könnte Ihnen auch gefallen