This User’s Manual explains the system configuration of SPH general purpose communication module, the specifications
and operation of the modules.
Read this manual carefully to ensure correct operation. When using modules or peripheral devices, be sure to read the
corresponding user’s manuals listed below.
<Relative manuals for the SX-Programmer Expert (D300win)>
<Relative manuals for the SX-Programmer Standard (Standard Loader)>
eltiT.oNlaunaMstnetnoC
,noitcurtsnIlaunaMs'resU
seiresXS-XERCIM
s'resU,erawdraHlaunaM
HPSseiresXS-XERCIM
launaMs'resU
,>ecnerefeR<dradnatSremmargorP-XS
seiresXS-XERCIM
*This manual is structured to be applicable to both D300win and Standard Loader.
*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.
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.
Page 3
Be sure to read the “Safety Precautions” thoroughly before using the module.
Here, the safety precaution items are classified into “Warning” and “Caution.”
Safety Precautions
Warning
Caution
Even some items indicated by “Caution” may also result in a serious accident.
Both safety instruction categories provide important information. Be sure to strictly observe these instructions.
: Incorrect handling of the device may result in death or serious injury.
: Incorrect handling of the device may result in minor injury or physical damage.
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 PLC.
A failure of PLC 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.)
Page 4
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.
Remove the dust-cover seals of modules after wiring, fire, accidents, failue or fault 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 PLC, 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.
External power supply (such as 24V DC power supply) which is connected to DC I/O should be strongly isolated from
Section 1 General ..........................................................................................1-1
1-1 General ............................................................................................................................................ 1-1
1-2 Selections and Programs for the Communication ..................................................................... 1-2
1-3 General Purpose Communication Package for Factory Automation Machine ........................ 1-3
1-4 Product Versions and Supported Functions ............................................................................... 1-4
3-1-1 Mounting position ................................................................................................................................. 3-1
3-1-2 Number of mountable modules ............................................................................................................ 3-1
3-2 System Configurations .................................................................................................................. 3-2
3-2-1 1:1 Connection using RS-232C port ..................................................................................................... 3-2
3-2-2 1:N Connection using RS-485 port (N = max. 31 modules) ................................................................. 3-3
3-2-3 Connecting independently to RS-232C and RS-485 ports ................................................................... 3-4
3-2-4 Connection using RS-232C and RS-485 ports (2) ............................................................................... 3-5
3-2-5 Connecting a personal computer loader to the RS-232C port and RS-485 port ................................. 3-7
3-2-6 Loader network configuration using RS-485 ........................................................................................ 3-7
3-2-7 Loader network configuration using modems (1) ................................................................................. 3-8
4-1 General ............................................................................................................................................ 4-1
4-2 Specifications for Non-procedural FB ......................................................................................... 4-3
4-2-1 Communication specification ................................................................................................................ 4-3
4-2-2 FB format ............................................................................................................................................... 4-4
4-3-3 OPEN status list .................................................................................................................................. 4-10
4-4 Data Sending ................................................................................................................................ 4-11
4-4-1 Data sending procedure ...................................................................................................................... 4-11
4-4-2 Send status list .................................................................................................................................... 4-12
4-5 Data Receiving .............................................................................................................................. 4-13
4-5-1 Data receiving procedure .................................................................................................................... 4-13
4-5-2 Receiving status list ............................................................................................................................ 4-14
4-6 RAS Information ........................................................................................................................... 4-15
6-2-1 When RS-485 is used (2-wire) .............................................................................................................. 6-2
6-2-2 When RS-485 is used (4-wire system) ................................................................................................. 6-2
6-2-3 When RS-232C is used ......................................................................................................................... 6-3
1-4-2 Available standard extended FB ........................................................................................... 1-4
Page 10
General
Section 1 General
1-1 General
NP1L-RS1/2/4 are communication modules which enable data communication between a CPU module and external
devices, and which are connected to the base board (on the SX bus) of MICREX-SX series. (NP1L-RS1/2/4 are
sometimes abbreviated as RS1/2/4.)
The port type and the number of ports are as follows:
epyTstropfo.oN
1SR-L1PNlennahc1:584-SR,lennahc1:C232-SR
2SR-L1PNlennahc1:C232-SR
4SR-L1PNlennahc1:584-SR
RS1
RS-232C
Power
supply
(1:1)
CPU I/OI/OI/OI/O
RS-485
(1:n) n = Max. 31
External
device
As an external device,
it is possible to connect
a loader software
package for in a
personal computer.
<Overview of SX bus connection>
Total length of SX bus: Max. 25m
I/OI/OI/OI/O
CPU
Data transmission between CPU and an
external device is performed via the SX bus.
External
device
Loader software package for a personal computer
External
device
External
device
General purpose
communication module
External device
1-1
Page 11
1-2 Selections and Programs for the Communication
The following preparations are necessary for RS1/2/4 to communicate between a CPU module of MICREX-SX series and
external devices.
MICREX-SX series
RS1/2/4
Power
supply
<CPU modules side>
Initializing parameters for a RS-232C port and a
RS-485 port.
(Transmission speed, data length, parity bit, stop
bits etc.,)
Application software for the communication.
FA packages are optionally provided
for each external device.
External device
CPU I/OI/OI/OI/O
<RS1/2/4 side>
Selection switch of the module is used.
RS-485 station No. selection switch (0 to F)
If RS-485 port is not used, the selection is not
necessary.
Mode selection switch
Device selection of RS-232C port and RS-485
port, Data conversion
RS-485 terminating resistor ON/OFF switch
ON/OFF of terminating resistor is selected.
If RS-485 port is not used, this switch is ignored.
<External device side>
Transmission speed, data length, parity bit, stop bits etc.
Application software for the communication.
1-2
Page 12
1-3 General Purpose Communication Package
for Factory Automation Machine
Nonsequenced FB is provided for NP1L-RS1/2/4 to communicate with external serial devices. (Included in D300win.)
General purpose communication package for Factory Automation machine (NP4N-COMF) is provided to communicate
Note 1: The modem-based loader functions are functions which realize remote operation and programming by connecting
a modem to the RS-232C port and using the public circuit. These functions cannot be used with the NP1L-RS4
which is provided only with the RS-485 port.
Note 2: With modem-based function 1, the transmission rate between this module and a commercial modem is fixed to
19200 bps. With modem-based function 2, the transmission rate can be selected from 9600, 19200, and 38400
bps.
Note 1: This FB uses the RS-485 port. Cannot be used with the NP1L-RS2 which is provided only with the RS-232C port.
Note 2: This FB uses the RS-232C port. Cannot be used with the NP1L-RS4 which is provided only with the RS-485 port.
1-4
Page 14
Section 2 Specifications
Page
2-1 General Specifications ............................................................................................... 2-1
2-2 Communication Specifications ................................................................................. 2-2
2-3 Names and Functions................................................................................................. 2-3
Note 1: The use of the non-procedural FB allows this mode to be used like the full-duplex mode on applications.
Note 2: Transmission rates 300, 600, 76800, and 115200 bps can be used in the following combinations:
This switch is used to select a connectable device, the signal conversion and the self-diagnosis for the RS-232C port and
the RS-485 port.
C
MODE
D
B
E
A
F
9
8
7
6
3
5
4
Switch
0
1
2
No.
Mode
RS-232C portRS-485 port
RS-232C <=> RS-485
Signal conversion
Remarks
0General purpose device General purpose device Not available
1Programming loaderGeneral purpose device Not available
2General purpose device Programming loaderNot available
3Programming loaderProgramming loaderNot available
Applies to
V2535 or later.
4General purpose device General purpose device Available
5
Not used
6
Modem-loder
19200 bps
General purpose device Not available
Applies to
V1031 or later.
7Self-diagnosis mode 1 (diagnoses internal memory and LED)
8Self-diagnosis mode 2 (diagnoses RS-232C, RS-485 turning back)
Modem-loder
9
19200 bps
Modem-loder
A
9600 bps
Modem-loder
B
9600 bps
Modem-loder
C
38400 bps
Modem-loder
D
38400 bps
Modem-loder
E
76800 bps
(Note 5)FModem-loder
115200 bps
Programming loaderNot available
General purpose device Not available
Programming loaderNot available
General purpose device Not available
Programming loaderNot available
General purpose device Not available
Modem-loder
115200 bps
—
Applies to
V1031 or later.
Applies to
V2535 or later.
Applies to
V2536 or later.
Note 1: For details of the function mode, refer to “3-2 System configuration.”
Note 2: For the self-diagnosis, refer to “3-4 Self-diagnosis.”
Note 3: “Programming loader” is the mode for connecting to D300win. Communication specifications are fixed to” 38400
bps” for transmission speed, “8 bits” for data length, “1 bit” for stop bits, and “even” for parity.
Note 4: “Modem-loader" is the mode that is basically used to connect to D300win loader via a modem. In general, for
modems, “none” is specified for parity. Therefore, in this mode, communication specifications become “8 bits” for
data length, “1 bit” for stop bits, and “none” for parity.
Note 5: Either channel is selected and used.
3) RS-485 station No. selection switch
This switch used to select a RS-485 station number of NP1L-RS1 or NP1L-RS4. Selecting range is 0 to F.
C
D
B
E
A
RS485
No.
(0-F)
F
9
0
8
1
7
2
6
3
5
4
2-5
Page 20
2-3 Names and Functions
Functions
4) RS-232C port
This port is D-sub, 9-pin connector (female). This connector is connected to D-sub, 9-pin connector (male).
(1) RS to CS signal check .......................................................................................................................... 3-11
(2) ER to DR signal check .......................................................................................................................... 3-11
(3) RS-232C/RS-485 data check................................................................................................................ 3-11
(4) Preservation of the result of the check.................................................................................................. 3-11
Page 23
Mounting restrictions
Section 3 System Configuration
3-1 Mounting Restrictions
3-1-1 Mounting position
NP1L-RS1/2/4 is a general purpose communication module which is connected to the SX bus of MICREX-SX series. The
mounting position on the base board is restricted as follows:
They can be mounted in any slot except those for the power supply module (the two slots from the left on the base board).
<Base board other than 6-slots base board>
<6-slots base board>
Mountable slots
Note: The general purpose communication modules cannot be mounted on T-link or OPCN-1 slave station base boards.
Power
supply
T-link master module
CPU
Mountable slots
T-link interface module
I/OI/OI/OI/O
Power
supply
3-1-2 Number of mountable modules
A maximum of 16 modules per configuration can be connected. However, when other communication related modules are
used in the same configuration, the maximum number of 16 is the total of these and NP1L-RS1/2/4 modules.
P-link module (NP1L-PL1)
PE-link module (NP1L-PE1)
FL-net (OPCN-2) module (NP1L-FL1)
General purpose communication module (NP1L-RS1/2/4)
PC card interface module (NP1F-PC2)
Memory card interface module (NP1F-MM1)
Maximum of 16 modules per configuration.
3-1
Page 24
3-2 System Configurations
3-2-1 1:1 Connection using RS-232C port
This configuration connects to an external device having an RS-232C interface via the RS-232C port.
The mode selection switch is set to “0” (zero).
RS1 or RS4
<Mode selection switch: “0”>
RS-232C port
1: 1 connection
General purpose device
Power
supply
CPU
RS-485 port
Signal conversion
General purpose device
None
RS-232C
External device
* With RS1, a D300win personal computer loader can be connected to an RS-485 port which is not used.
In this case, the mode selection switch needs to be set to “2.”
RS1
<Mode selection switch: “2”>
General purpose device
Loader
None
Power
supply
CPU
RS-485
RS-232C port
RS-485 port
Signal conversion
RS-232C
External device
For the connection, refer to “3-3-2 When
connecting to RS-485 port.”
3-2
Page 25
1: N connection
3-2 System Configurations
3-2-2 1:N Connection using RS-485 port (N = max. 31 modules)
This configuration connects to external devices having an RS-485 interface via the RS-485 port. The mode selection
switch is set to “0.” A maximum of 31 external devices can be connected. However, when all external devices are RS1 or
RS4, the maximum number is limited to 15 because only 0 to F are available for addressing.
RS1 or RS4
<Mode selection switch: “0”>
Power
supply
CPU
RS-232C port
RS-485 port
Signal conversion
RS-485
General purpose device
General purpose device
None
External deviceExternal deviceExternal device
ABC
Note: External devices A , B and C must be the same in type as well
as communication protocol. For example, this connection is not
available when A and B are temperature controllers and C is a
bar code reader.
* With NP1L-RS1, a D300win personal computer loader can be connected to an RS-232C port which is not in use.
In this case, the mode selection switch needs to be set to “1.”
RS1
<Mode selection switch: “1”>
Loader
General purpose device
None
Power
supply
CPU
RS-232C
RS-232C port
RS-485 port
Signal conversion
RS-485
External deviceExternal deviceExternal device
ABC
For the connection, refer to “3-3-1 When
connecting to RS-232C port.”
3-3
Page 26
3-2 System Configurations
1: 1 / 1: N connection
3-2-3 Connecting independently to RS-232C and RS-485 ports
This configuration connects to external devices using the RS-232C port and RS-485 port. In this case, communication
through these ports is performed independently.
Power
supply
RS1
CPU
RS-485
<Mode selection switch: “0”>
RS-232C port
RS-485 port
Signal conversion
General purpose device
General purpose device
None
External device
ABC
Note: External devices A , B and C must be the same in type as well
as communication protocol. For example, this connection is not
available when A and B are temperature controllers and C is a
bar code reader.
RS-232C
External deviceExternal device
External device
3-4
Page 27
1: 1 / 1: N connection
3-2 System Configurations
3-2-4 Connection using RS-232C and RS-485 ports (2)
This configuration connects to external devices using the RS-232C port and RS-485 port.
RS1
Power
supply
CPU
External device
External deviceExternal device
BCD
RS-232C
External device
(personal computer, etc.)
With this configuration, the following communications can be performed :
1) Communication between external device A and external device B, C or D (not via the CPU module)
2) Communication between external device A and CPU module
3) Communication between external device B, C or C and CPU module
<Mode selection switch: “0”>
RS-232C port
RS-485 port
Signal conversion
RS-485
A
General purpose device
General purpose device
Yes
<1) Communication between external device A and external device B, C or D>
This communication is performed directly, namely not via the CPU module.
RS1
Transmission speed is 38400 bps (default) for
both RS-232C and RS-485. Changing
transmission speed is done through the user
Power
supply
CPU
program (expansion FB).
RS-485
External device
External deviceExternal device
BCD
RS-232C
External device
(personal computer, etc.)
A
3-5
Page 28
3-2 System Configurations
<2) Communication between external device A and the CPU module>
RS1
1: 1 / 1: N connection
Power
supply
CPU
RS-485
External device
B
External deviceExternal device
C
RS-232C
External device A
(personal computer, etc.)
(Note)
<3) Communication between external device B, C or D and the CPU module>
RS1
D
Note: A user program for
controlling external
device A is necessary.
Power
supply
CPU
Note: When the station number designated in the
send data is the same as the setting of the
RS-485 station number setting switch of RS1,
FB in the CPU module receives the data.
RS-485
External device
External deviceExternal device
BCD
Note: External devices A, B and C must be the same in type as well as
communication protocol. For example, this connection is not available
when A and B are temperature controllers and C is a bar code reader.
RS-232C
External device A
(personal computer, etc.)
3-6
Page 29
1: 1 / 1: N connection
3-2 System Configurations
3-2-5 Connecting a personal computer loader to the RS-232C port and RS-485 port
This configuration connects a D300win personal computer loader to each of RS-232C and RS-485 ports.
Power
supply
RS1
CPU
RS-232C
<Mode selection switch: “3”>
RS-232C port
RS-485 port
Signal conversion
RS-485
Loader
Loader
None
For the connection, refer to
“3-3 Loader Connecting Cable.”
3-2-6 Loader network configuration using RS-485
This configuration connects a D300win personal computer loader to the RS-232C port of RS1 on System 1.
A D300win can communicate with both CPUs of System 1 and System 2.
<Mode selection switch of System 1: “5”>
RS-232C port
RS-485 port
Signal conversion
Power
supply
Loader
General device/loader
Yes
CPU
RS-232C
<Mode selection switch of System 2: “2”>
RS-232C port
Loader
Normal
RS1
RS1
RS-485 port
Signal conversion
Power
supply
CPU
RS-485
• When connected to the CPU of System 1, designate, from the
programming loader, the CPU which is in the configuration.
• When connected to the CPU of System 2, designate, from the
programming loader, the RS-485 station number of RS1 on System 2.
3-7
Page 30
3-2 System Configurations
Modem connecting
3-2-7 Loader network configuration using modems (1)
This configuration enables remote programming using the public circuit by connecting a modem to the RS-232C port.
RS1 or RS2
When the NP1L-RS1 is used and the mode
Power
supply
CPU
selection switch is set to 6, A, or C,
general purpose devices can be
connected to the RS-485 port.
RS-232C
Straight
cable
External device
*
Modem
Modem
Set with
D300win.
RS-485
External deviceExternal device
ABC
Modem setup is made using "WINDOWS Hyper Terminal and
other application software" with the following communication mode:
Stop bit: 1 Data length: 8 bits Parity: None
Baud rate: 9600/19200/38400/76800/115200
(set by the mode selection switch of this module)
Issue AT commands to perform the following:
Restore the setup of the current value area to "Factory Setup."
Do not perform the flow control.
Set the number of rings until automatic receive of the modem to 3.
Do not return the response code.
Write the current modem setup condition to PROFILE(1).
Use the contents of PROFILE(1) as the setup used when the power
is turned ON.
Example: AT&F&K0S0=3Q1&W0&Y0
Note: For details, refer to the instruction manual supplied
with the modem used.
3-8
Page 31
Loader connecting
To connect a D300win personal computer loader to the RS-232C or RS-485 port of the general purpose communication
module, the cable must be connected in the following manner.
3-3 Loader Connecting Cable
3-3-1 When connecting to RS-232C port
Because the RS-232C connector of the general purpose communication module is “female,” attach the male connector
onto the cable connector for the general purpose communication module, as shown in the figure below:
General purpose communication module sidePersonal computer side
Because the RS-485 connector of the general purpose communication module is “male,” attach the female connector onto
the cable connector for the general purpose communication module, as shown in the figure below:
General purpose communication modulePersonal computer side
For conversion from RS-232C to RS-485
port on personal computer, use a
commercially available converter.
3-9
Page 32
3-4 Self-diagnosis
3-4-1 Self-diagnosis mode 1
Setting the mode selection switch of the module to “7” activates Self-diagnosis Mode “1.”
This mode is used to check the internal memory and the lighting condition of LEDs.
<Diagnosis flow>
Start Set the mode selection switch to “7.”
Check the internal
memory of general
purpose communication
module.
Self-diagnosis
Normal?
Yes
Repeat Self-diagnosis
Mode operations when
there is no change in the
status of the mode
selection switch.
1) Internal memory check
After the completion of LED lighting check, automatically returns to the diagnosis of the internal memory of general
purpose communication module.
If an internal memory error is detected, “TS1” blinks.
2) LED lighting check
Of the external LEDs of the module, the lighting condition of those operated by the general purpose communication
module are checked. When the mode selection switch is set to “7,” “TS1,” “TS2,” “RS-485 ALM” and “RS-232C ALM” LEDs
light up in this order.
<Normal lighting condition of LEDs>
TS1
TS2
Check the lighting
of LEDs.
No
TS1 blinks (0.25s)
Continue to blink if RAM error
is detected, and the check of
LED lighting condition will not
be executed.
RS485 ALM
RS232C ALM
1s
1s10s
1s
1s
3-10
Page 33
Self-diagnosis
3-4 Self-diagnosis
3-4-2 Self-diagnosis mode 2
This mode is used to check the completeness of communications by looping back sent data and control signals via the
communication port.
(1) RS to CS signal check
In this check, the general purpose communication module turns RS signal ON to check whether CS signal is looped back
and turns ON, and then checks that this signal turns OFF.
When normal, “TS2” lights up; proceeds to step (2).
If abnormal, “TS2” blinks (at 0.5-second intervals) after 5 seconds; proceeds to step (2).
(2) ER to DR signal check
In this check, the general purpose communication module turns ER signal ON to check whether DR signal is looped back
and turns ON, and then checks that this signal turns OFF.
When normal, “TS1” lights up; proceeds to step (3).
If abnormal, “TS1” blinks (at 0.5-second intervals) after 5 seconds; proceeds to step (3).
(3) RS-232C/RS-485 data check
The general purpose communication modules sends 16 bytes of data once and checks the looped back data received.
If both ports are normal, “RS-232C ALM” and “RS-485 ALM” light up; proceeds to step (4).
If RS-485 is abnormal, “RS-232C ALM” lights up after 10 seconds and “RS-485 ALM” blinks (at 0.5-second intervals);
proceeds to step (4).
If RS-232C is abnormal, “RS-232C ALM” blinks (at 0.5-second intervals) after 10 seconds and “RS-485 ALM” lights up (at
0.5-second intervals); proceeds to step (4).
If both ports are abnormal, “RS-232C ALM” and “RS-485 ALM” blinks (at 0.5-second intervals); proceeds to step (4).
(4) Preservation of the result of the check
After 10 seconds of displaying the results from (3) above, the module returns to step (1). Here, if the setting of the mode
selection switch has been changed, Self-diagnosis Mode 2 is ended to enter the designated mode.
Note 1: When an RS-232C dedicated module (NP1L-RS2) is used, “RS-485 ALM” is kept turned off. When an RS-485
dedicated module (NP1L-RS4) is used, “RS-232C ALM,” “TS1” and “TS2” are kept turned off.
Note 2: When judged as “normal,” the next operation is started without any waiting time. Therefore, after all LEDs have
turned off at the start of diagnosis, the corresponding LED lights up instantaneously.
The non-procedural FB supplied with the D300wind is used for communication between the NP1L-RS1/2/4 and external
devices. The non-procedural FB performs data communication between the CPU module and external devices based on
the start-stop synchronous transmission protocol.
The following seven types of non-procedural FBs are offered.
Note 1: _Cfrpr FB can be used with V.2535 or later versions of the NP1L-RS1, JP1L-RS2, and NP1L-RS4. The functions
of the non-procedural FB are shown below.
Note 2: _Cfrp2 FB can be used with V.2536 or later versions of the NP1L-RS1, JP1L-RS2, and NP1L-RS4. For the
specifications of _Cfrp2, refer to “EXTENDED FB FOR COMMUNICATION USER’S MANUAL FH255.”
1) Initialization of communication ports
Initializes RS-232C and RS-485 ports (sets transmission speed, data bit length, parity bits, etc., so as to match the
external device.)
2) Data sending/receiving function
Sends the data from an application program in the CPU of MICREX-SX series via RS1 to an external device, or outputs
the data received via the general purpose communication module to an application program.
3) Monitoring of transmission condition
Monitors the condition of data transmission and, if abnormal, outputs error information.
<Function diagram of Non-procedural FB>
CPU moduleRS1/2/4
Application program
Non-procedural
FB
1)
External device
2) 3)
4-1
Page 36
4-1 General
<FB operating conditions>
System configuration:
One FB is necessary for each external device which is connected by RS-232C or RS-485 to one general purpose
communication module. However, when RS-232C/RS-485 signal conversion is enabled (the mode selection switch is set
to 4) for the general purpose communication module, each FB is used by two channels.
Processor
Non-procedural
FB
for RS-232C
Non-procedural
FB
for RS-485
Processor
Non-procedural
FB
for both channels
General purpose
communication
module
(normal mode)
General purpose
communication
module
(conversion mode)
External device
connected to
RS-232C
External device
connected to
RS-485
External device
connected to
RS-232C
External device
connected to
RS-485
* When used in RS-232C/RS-485 conversion mode, channel number for the parameter (PARA [1]) is 1 (= RS-485).
Memory capacity:
emaNBF
eerf_C_6562sdrow204sdrow6563sdrow0sdrow28
252rfC_7572sdrow474sdrow4712sdrow0sdrow28
821rfC_7572sdrow474sdrow6881sdrow0sdrow28
46rfC_7572sdrow474sdrow8571sdrow0sdrow28
23rfC_7572sdrow474sdrow2761sdrow0sdrow28
rprfC_0911sdrow221sdrow8061sdrow0sdrow28
Note 1: The above memory capacity includes that of non-procedural FB itself as well as of the sub-FB which is called
from non-procedural FB.
Note 2: “Standard memory” or “Retain memory” includes the memory capacity necessary for data transmissin.
yticapacmargorP
)petS(
yromemecnatsnI
BFresurof
yromemdradnatSyromemniateR
metsysrof
4-2
yromemecnatsnI
Page 37
4-2-1 Communication specification
metInoitacificepS
deepsnoissimsnarT
stibataD
tibytiraP
stibpotS
ECD
lortnoclangiS
wolflangiS
lortnoc
lortnocFFOX/NOX
edom584-SR
noisrevnocedoC
noitcetedemarF
ytiraplatnoziroH
)CCB(
edomETD
edomECD
edomETD
edomECD
enoN
htgneldexiF
htgnelelbairaV
enoN
eulavremitnoissimsnarT
4-2 Specifications for Non-procedural FB
)etoN(spb00675/00483/00291/0069/0084/0042/0021
stib8/7morfdetceleS
neve/ddo/enoN
stib2/1morfdetceleS
edomETDmedom/ECD/ETDmorfdetceleS
gniviecernehwNODCnruT:edomETDmedoM
NOsyawla:RE
NOsyawla:RD
lanoitidnocnu:gnidneS;NOsyawla:SRffO
NOsiSCnehw:gnidneS;gnidnesgnirudNO:SRnO
lanoitidnocnu:gnidneS;NOsyawla:SCffO
NOsiREnehw:gnidneS;NOsiSRnehwNO:SCnO
elbatceleS
eriw-2/eriw-4morfdetceleS
noisrevnocCIDCBE/noisrevnocIICSA/enoNmorfdetceleS
).elbairavgnirtsretcarahcotniatadyranibtrevnoC(
.noitcnufnoitcetedemarfelbasiD
setybatadeviecerforebmunehtetangiseD
.sedocdnednatratsetangiseD
enoN
redrorewoL/redroreppU
redroreppU/redrorewoL
sm01x
.noitisopetangiseD.noitangisedegnarnoitaluclaC
CRC/ROE/trevnidnadda/ddamorfdetceleS:alumroF
edocyranib/edocretcarahcmorfdetceleS:edocCCB
Note: Transmission rates 300, 600, 76800, and 115200 bps can be used in the following combinations:
Note 1: All non-procedural FBs have the same pin assignment.
Note 2: Only the FB pins necessary for control are used by connecting variables to them. However, be sure to connect
Note: The data format differs for each non-procedural FB.
<Send data S_DAT(WORD array)>
<Variable declaration example>
S_DAT [0]
VAR
S_DAT:_C_SND_TYP11;
END_VAR
S_DAT [1]
S_DAT [31]
<Data type list>
emaNBFTAD_SfoepytataD
eerf_C_11PYT_DNS_C_
252rfC_61PYT_DNS_C_
821rfC_41PYT_DNS_C_
46rfC_31PYT_DNS_C_
23rfC_51PYT_DNS_C_
rprfC_RP11PYT_DNS_C_
S_DAT [63]
S_DAT [127]
S_DAT [251]
S_DAT [511]
Upper order
Data 2
Data 4
Data 64
Data 128
Data 256
Data 504
Data 1024
4-5
Lower order
Data 1
Data 3
Data63
Data127
Data255
Data503
Data1023
Up to here is assigned to _Cfr32.
Up to here is assigned to _Cfr64.
Up to here is assigned to _Cfr128.
Up to here is assigned to _Cfr252.
Up to here is assigned to _C_free,_Cfrpr.
Page 40
4-2 Specifications for Non-procedural FB
<Receive data R_DAT(WORD array)>
<Variable declaration example(_C_free)>
VAR
R_DAT:_C_RCV_TYP11;
END_VAR
R_DAT [0]
R_DAT [1]
R_DAT [31]
<Data type list>
emaNBFTAD_RfoepytataD
eerf_C_11PYT_VCR_C_
252rfC_61PYT_VCR_C_
821rfC_41PYT_VCR_C_
46rfC_31PYT_VCR_C_
23rfC_51PYT_VCR_C_
rprfC_RP11PYT_VCR_C_
R_DAT [63]
R_DAT [127]
R_DAT [251]
R_DAT [511]
<Communication parameter PARA(INT array)>
<Variable declaration example(_C_free)>
VAR
PARA:_C_PAR_TYP11;
END_VAR
Upper order
Data 2
Data 4
Data 64
Data 128
Data 256
Data 504
Data 1024
Lower order
Data 1
Data 3
Data63
Data127
Data255
Data503
Data1023
Up to here is assigned to _Cfr32.
Up to here is assigned to _Cfr64.
Up to here is assigned to _Cfr128.
Up to here is assigned to _Cfr252.
Up to here is assigned to _C_free,_Cfrpr.
<Data type list>
emaNBFARAPfoepytataD
eerf_C_11PYT_RAP_C_
252rfC_61PYT_RAP_C_
821rfC_41PYT_RAP_C_
46rfC_31PYT_RAP_C_
23rfC_51PYT_RAP_C_
rprfC_RP11PYT_RAP_C_
emanelbairaV
]0[ARAP
]1[ARAP.oNtroP
]2[ARAP.oNtropegasseM
]3[ARAP
]4[ARAPdeepsnoissimsnarT
]5[ARAPtibataD
]6[ARAPtibytiraP
]7[ARAPtibpotS
]8[ARAPnoitangisedECD
]9[ARAPlortnoclangisRSD/RTD
]01[ARAPlortnocwolflangisSTC/STR
]11[ARAPlortnocFFOX/NOX
]21[ARAPedom584-SR
]31[ARAP
]41[ARAP
]51[ARAP
]61[ARAPnoisrevnocedoC
]71[ARAPnoitcetedemarF
]81[ARAPsetybatadeviecerforebmuN
* After FBopens,
the parameter from
"PARA [16]" to "PARA [35]"
is effective.
]91[ARAPsetybedoctratsforebmuN
]02[ARAP1edoctratS
]12[ARAP2edoctratS
]22[ARAP3edoctratS
noitacinummocesopruplareneG
.oNnoitatseludom
]32[ARAP4edoctratS
]42[ARAP5edoctratS
]52[ARAPsetybedocdneforebmuN
]62[ARAP1edocdnE
devreseR
]72[ARAP2edocdnE
]82[ARAP3edocdnE
]92[ARAP4edocdnE
]03[ARAP5edocdnE
]13[ARAPnoitangisedCCB
]23[ARAPnoitisop,egnarnoitaluclaC
]33[ARAPalumroF
]43[ARAPepytedoC
]53[ARAPeulavremitdneS
]63[ARAP
devreseR
devreseR
devreseR
]73[ARAP
]83[ARAP
]93[ARAP
devreseR
devreseR
devreseR
devreseR
4-6
Page 41
4-3 Initialization
4-3-1 Initialization parameters
In order to initialize each individual port of the general purpose communication module, it is necessary to set values which
match the communication specifications of the object external device to the individual communication parameters. The
table below shows the setting contents of these parameters.
Designates the number of receive data bytes when "Fixed length" is selected for
frame detection. When "Variable length" is selected, set this item to "0."
19
Number of start code bytes
Start code 1
20
21
Start code 2
22
Start code 3
23
Start code 4
24
Start code 5
Number of end code bytes
25
End code 1
26
End code 2
27
End code 3
28
End code 4
29
End code 5
30
31
BCC designation
Designates the number of start code bytes when "Variable length" is selected.
"0" means no start code.
Designates start code when "Variable length" is selected.
Designates the number of end code bytes when "Variable length" is selected.
Designates end code when "Variable length" is selected.
Sets whether or not to add horizontal parity for checking text data transmission
error.
0: None
1: Set in the order of upper- and lower-order byte
Upper byte of BCC Lower byte of BCC
32
Calculation range, position
2: Set in the order of lower and upper byte
Lower byte of BCC Upper byte of BCC
Sets the calculation range and BCC position.
0: Calculates the text part and enters it ahead of the end code.
Start code TEXT BCC End code
1: Calculates text part and end code and inserts them behind the end code.
Start code TEXT End code BCC
2: Calculates start code and text part and inserts them ahead of the end code.
Start code TEXT BCC End code
3: Calculates start code, text part and end code and inserts them behind the end code.
Start code TEXT End code BCC
Note: In this case, the BCC code type cannot be designated as "binary."
Specify other than CRC-16 for the BCC expression.
(Note)
(Note)
: Calculation range
4-8
Page 43
No. ItemDescription
Calculation method to check for transmission error.
4-3 Initialization
33BCC calculation formula
34
BCC code type
35
Send timer value
36
Reserved
D1 D2
0: Add
D1 + D2 + ... + Dn
1: Add and invert
Inversion of (D1 + D2 + ... + Dn)
2: EOR
D1 EOR D2 EOR ... EOR Dn
3: CRC * When CRC is selected, specify "BCC Code Format" to "0: Binary."
CRC-16:X
Designates the code type of BCC data.
0: Binary
1: ASCII
2: EBCDIC
The timer value for monitoring transmission since the data send request has been
sent from the CPU module onto the RS-232C line until sending is completed.
Normally set to 100 (1 second) (in 0.01-second steps).
Not used.
Dn
16+X15+X2
+1
39
Reserved
Note 1: Parameter Nos. 16 to 35 are valid even if changed after opening.
After opening, if parameter Nos.16 to 35 are changed and a setup error occurs, or if other parameters are
changed, an open error results and communication “OK” is turned OFF.
Note 2: If you use “EBCDIC” at parameter No. 16 and/ or 34, make sure to select “8 bit” at parameter No. 5.
Note 3: This module ignore data when error detected while receiving data.
We recommend to use No. 6 (Parity), No. 31 (BCC) to detect data error if you use this module on noise
environment.
In this case, external device also support parity, BCC.
4-9
Page 44
4-3 Initialization
4-3-2 Initialization procedure
When the OPEN terminal of FB is turned ON, communication parameters are transferred to the general purpose
communication module, which executes processing for initialization. If initialization is impossible due to a communication
parameter setting error or hardware error, FB outputs the corresponding error code (word type) to the OPEN Status
(O_STS).
Note: OPEN signal shall be set to Always ON during data communication.
Error status
eludomnoitacinummocesopruplareneG
eludomnoitacinummocesopruplarenegnonoitcetedrorrE
eludomnoitacinummocesopruplarenegnonoitcetedrorrE
eludomnoitacinummocesopruplarenegnonoitcetedrorrE
4-10
Page 45
4-4-1 Data sending procedure
Send data (S_DAT)
Send data length (S_LEN)
4-4 Data Sending
Set data.
Set data length.
Turned ON by the application program.
Send request (S_REQ)
Processing for sending
Send end (S_END)
In case of sending error
Send status (S_STS)
Send error (S_ERR)
After setting send data and its data length, turn S_REQ (send request) ON by the application program. Then FB detects
the rising edge to execute the processing for sending.
When sending has ended, S_END (send end) flag is turned ON (for only one pulse). If a send error has occurred, S_END
(send end) and S_ERR (send error) are turned ON (for only one pulse), and the corresponding error code is output to
S_STS (send status) (“00” when ended normally).
While the communication ready flag is turned ON, whether the data to be received exists or not is checked continuously
and, when it exists, the operation for receiving is executed. When a delimiter between data frames is detected, the
received data and the number of receive data bytes are stored in R_DAT (receive data) and R_LEN (receive data length),
respectively, and the R_END (receive end) flag is turned ON (for only one pulse). The result of receiving is stored in
R_STS (receive status). If a receive error has occurred, R_END (receive end) and E_ERR (receive error) are turned ON
(for only one pulse).
The processing for receiving differs with the setting of parameter “Frame detection.”
None: Receiving completes when data is received.
Fixed length: Receiving completes when receive data reaches the specified number of receive data bytes.
Variable length: Receiving completes when the data in a range between start and end codes is received.
4-14
Page 49
Operating status of FB is stored in the RAS infomation area.
<Variable declaration example of RAS (_C_free)>
VAR
RAS: _C_work_TYPE11;
END_VAR
< Data type list >
emaNBFSARfoepytataD
eerf_C_11EPYT_krow_C_
252rfC_61EPYT_krow_C_
821rfC_41EPYT_krow_C_
46rfC_31EPYT_krow_C_
23rfC_51EPYT_krow_C_
rprfC_RP11EPYT_krow_C_
4-6 RAS Information
<RAS information area (INT array)>
]0[SAR.SARsutatstroP>---.egaptxenotrefeR
]1[SAR.SAR
]2[SAR.SARtnuoctseuqerdneS
]3[SAR.SARtnuocdnedneS
]4[SAR.SARtnuocevieceR
]5[SAR.SARtnuocnoitcetedemarF
]6[SAR.SARsutatsNEPO_M
]7[SAR.SARsutatsDNES_M
]8[SAR.SARsutatsEVIECER_M
]9[SAR.SARtnuocrorreDNES_M
]01[SAR.SARtnuocrorreEVIECER_M
]11[SAR.SARdevreseR
]21[SAR.SARdevreseR
]31[SAR.SARdevreseR
]41[SAR.SARdevreseR
]51[SAR.SARdevreseR
]61[SAR.SARdevreseR
]71[SAR.SARdevreseR
]81[SAR.SARdevreseR
]91[SAR.SARdevreseR
esopruplarenegfosutatS
eludomnoitacinummoc
>---.egaptxenotrefeR
4-15
Page 50
4-6 RAS Information
• Port status
Control data
14
13 12 11 10 9 8 7 6 5 4 3
15
Error data
2
10
RS signal
CS signal
DR signal
ER signal
CD signal
CI signal
Initialization end
Reserved
Send error
Receive error
Framing error
Overrun
Parity error
Reserved
Reserved
Reserved
Have a meaning when RS-232C port is used.
Reserved when RS-485 port is used.
• Status of general purpose communication module
14
13 12 11 10 9 8 7 6 5 4 3
15
2
10
Mode switch (x8)
Mode switch (x4)
Mode switch (x2)
Mode switch (x1)
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
RS-485 station No. (x8)
RS-485 station No. (x4)
RS-485 station No. (x2)
RS-485 station No. (x1)
Reserved when NP1L-RS2 is used.
4-16
Page 51
Section 5 Programming
Page
5-1 Communication Program Creating Procedure......................................................... 5-1
5-2 Installation Procedure of Standard Extended FB .................................................... 5-2
5-3 Registration in Library................................................................................................ 5-5
5-5 Communication Parameters Setting ......................................................................... 5-7
5-6 Writing the Send Data ................................................................................................. 5-8
5-7 Connecting Variables and Commands to FB Terminals .......................................... 5-9
5-7-1 Connecting variable to “PARA” terminal ................................................................................ 5-9
5-7-2 Operation for starting FB ....................................................................................................... 5-9
5-7-3 Operation for sending data.................................................................................................. 5-10
5-7-4 Data receiving operation ..................................................................................................... 5-10
Page 52
Section 5 Programming
5-1 Communication Program Creating Procedure
Taking non-procedural FB (_C_free) for example, the procedure for
creating a communication program is explained below:
1) Install the standard expansion FB.
Refer to “5-2 Installation Procedure of Standard Extended FB.”
2) Register the library in the project tree.
Refer to “5-3 Registration in Library.”
3) Paste non-procedural FB (_C_free) onto the program work sheet.
Refer to “5-4 Pasting Non-procedural FB.”
4) Assign values (baud rate, start/end cord, etc.) to the communication parameters.
Refer to “5-5 Setting Communication Parameters.”
5) Write send data.
Refer to “5-6 Writing Send Data.”
6) Connect variables or commands to each terminal of the expansion FB.
Refer to “5-7 Connecting Variables and Commands to FB Terminals.”
5-1
Page 53
5-2 Installation Procedure of Standard Extended FB
The standard extended FB is included in the Programming Support Tool D300win System Software Package (CD-ROM).
< Operating Procedure >
(1) Activate Windows and then insert the product CD-ROM into the CD-ROM drive. The following dialog appears.
Installation
Note: If the installation dialog box does not appear, perform the following operations.
Click [Start] and then [Run], enter: \autorun.exe, then click the [OK] button.
(2) When you click [Standard Expansion FB Setup], the following [Welcome] dialog box appears.
Click here first.
5-2
Page 54
Installation
(3) When you click the [Next>] button in the [Welcome] dialog box, the [Choose Destination Locarion] dialog box appears.
5-2 Installation Procedure of Standard Extended FB
The target folder appears here.
To change the target folder, click the [Browse...] button. The following [Choose Directory] dialog box appears. Specify a
folder and then click the [OK] button. Control returns to the [Choose Destination Location] dialog box.
(4) When you click the [Next>] button in the [Choose Destination Location] dialog box, the installation processing is
started.
5-3
Page 55
5-2 Installation Procedure of Standard Extended FB
(5) When installation is completed, the following [Setup Complete] dialog box appears. Click the [OK] button to complete
the installation procedure.
When you check here and then click
the [OK] button, the product information
of the standard extended FB appears.
Installation
<Example of release note>
5-4
Page 56
Library registration
Individual communication FBs included in the standard expansion FB package can be used when registered in a library
under a created project.
(1) Left-click the [Libraries], a subtree in the “Project” tree, and then on the [Insert...] button. Then the [Include library]
dialog box will appear on the screen.
[INSERT] button
(2) Select an FB (file name) which you want to register in the library, and left-click the [Insert] button.
(3) The FB is registered in the library, as shown in the figure below.
5-3 Registration in Library
(Note)
When _C_free is registered
in the same manner
Note: The common FB “_C_COM” is required when using any communication FB. “_C_COM” is used inside each
extended communication FB. It is not necessary to call it on the code worksheet and use it.
(4) FBs in the project registered in the library can be selected from the [Function/Function Block] dialog box. In this case,
child FBs (FBs which start with “C” like _CBCCII, etc.) used inside _C_free or other extended communication FBs are
also displayed. However, use only parent FBs (_C_free, etc.) on the code worksheet.
5-5
Page 57
5-4 Pasting Non-procedural FB
The following procedure pastes non-procedural FB “_C_free” on the LADDER code worksheet.
<Pasting procedure>
1) Open the code work sheet on which you want to paste “_C_free.”
Code work sheet
Double-click this
item with the left
button.
2) Select non-procedural FB “_C_free”.
Left-click the desired point on the
code work sheet to determine the
pasting position.
Left-click this button.
Set the necessary items
in the dialog box.
5-6
Page 58
Communication Parameters
5-5 Communication Parameters Setting
Setting
Parameter values are assigned to the variables (INT type array data) which are connected to the communication
parameter terminal “PARA” of non-procedural FB. In this paragraph, how to do this using ST language is described.
<Sample variable declaration>
Because it is used by the POU on which an expansion FB is pasted, communication parameter variable "PARA" must be
global. Therefore, it is necessary to make a variable
Local variable declaration
VAR_EXTERNAL
PARA : _C_PAR_TYP11 ;
PSET : BOOL ;
END_VAR
Data type "_C_PAR_TYP11" is
automatically declared when non-procedural
FB is pasted.
Setting operation flag
Used by the POU for writing send data
<Sample setting program>
This sample program assigns necessary communication parameter values to INT type array data "PARA."
When no setting changes are required, setting is made during the first scan. It is not necessary for each scan.
Starting and end codes are also set by INT type.
For example, when you want to set ":" for starting
code, it is described by "INT 16#003A" or
"INT #58" because the code for ":" is "3A."
After all necessary parameters are set, the processing for
the above setting will not be executed from the next scan
when the flag is set to "FALSE."
5-7
Page 59
5-6 Writing the Send Data
Send data is written in the variables (WORD type array data) which are connected to send data terminal “S_DAT.” When
the volume of send data is small, the send data writing program is created on the same work sheet as that for expansion
FB; when the volume is large, it is better to create the program on separate work sheet or POU. This paragraph describes
how to create a send data writing program on a POU other than that including the non-procedural FB.
<Sample variable declaration>
Because it is used by the POU on which an expansion FB is pasted, the send data variable "SDAT" must be global.
Therefore, it is necessary to make variable declaration at 2 locations, as below:
Data type "_C_SND_TYP11" is
automatically declared when non-procedural
FB is pasted.
Setting operation flag
Used by the POU for setting parameter values
After all necessary values are set, the processing for
the above setting will not be executed from the next
scan when the flag is set to "FALSE."
5-8
Page 60
Connecting to FB terminals
5-7 Connecting Variables and Commands
This paragraph describes how to program for each expansion FB terminal.
_C_free
BOOL
OPEN
OK
BOOL
to FB Terminals
BOOL
INT
WORD array
INT array
S_REQ
S_LEN
O_STS
S_END
S_ERR
S_STS
R_END
R_ERR
R_STS
R_LEN
STN_NO
S_DAT
R_DAT
PARA
RAS
WORD
BOOL
BOOL
WORD
BOOL
BOOL
WORD
INT
INT
WORD array
Structure
5-7-1 Connecting variable to “PARA” terminal
The variable which was assigned data in “5-5 Communication Parameter Setting” is connected to communication
parameter terminal “PARA.”
PARA
Because data was assigned to array data type variable “PARA” in “5-5 Communication Parameter
Setting”, connection is made only by writing variable name “PARA” at the terminal.
PARA
5-7-2 Operation for starting FB
After all necessary communication parameters are set, initialization will start when the input terminal “OPEN” is turned ON.
When initialization ends, the output terminal “OK” turns ON, and communication becomes possible.
FB starting conditions
PSET
PSET is a flag which is programmed to turn
OFF when parameter setting ends. Refer to
“<Sample setting program>” in 5-5.
(Note)
OPEN
S_REQ
S_LEN
_C_free
Note: FB starting conditions need
to be programmed such that
the ON status is kept.
5-9
Page 61
5-7 Connecting Variables and Commands
to FB Terminals
5-7-3 Operation for sending data
Send request is made after send data and its byte length are set.
Connecting to FB terminals
Send condition
SSET
18 bytes (9 words) for the example
in "5-6 Writing the Send Data."
Variable SDAT which is written into
data in "5-6 Writing the Send Data"
is connected.
After confirming that the data has been written, send request is turned ON.
OK_F
INT#18
SDAT
OPEN
S_REQ
S_LEN
S_DAT
OK
O_STS
S_END
S_ERR
S_STS
R_END
R_ERR
R_STS
R_LEN
STN_NO
OK_F
Note: When data sending is completed, send end flag “S_END” turns ON only for one scan. In case of sending error,
send error flag “S_ERR” turns ON only for one scan.
As the content of sending error is stored in send status “S_STS,” judge the occurred error according to the S_STS
data stored when S_ERR has turned ON.
5-7-4 Data receiving operation
When communication ready terminal “OK” is turned ON, non-procedural FB continuously checks whether there is any data
to be received and, when it exists, executes operations for data receiving. When the delimiter between received data
frames is detected, R_END (receive end) turns ON for one scan, and receive data and receive status are stored in R_DAT
and R_STS, respectively.
In case of receiveing error, R_ERR (receive error) also turns ON for one scan.
R_END
R_ERR
R_STS
R_LEN
STN_NO
S_DAT
R_DAT
REND
RERR
RSTS
RDAT
Received data is processed
using the output of R_END
and R_ERR.
6-2-1 When RS-485 is used (2-wire) .............................................................................................. 6-2
6-2-2 When RS-485 is used (4-wire system).................................................................................. 6-2
6-2-3 When RS-232C is used......................................................................................................... 6-3
Page 63
Section 6 Wiring
6-1 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 cables
1)
300mm or more
Lower power cables
2)
Control cables
3)
Power cables
4)
(Grounding resistance of 100 or less)
Communication cablesLower power cables
1)
Grounding
2)
300mm or more
300mm or more
Control cables
3)
Metal plate
1) RS-232C,RS-485
communication cables.
2) Input/output circuit. Power
supply circuit for PLC.
3) Control circuit
4) Power circuit
Power cables
4)
200mm or more
(Grounding resistance of 100 or less)
Grounding
6-1
Page 64
6-2 Wiring Method
6-2-1 When RS-485 is used (2-wire)
To make a 2-wire system, as shown in the figure below, 4) and 9) as well as 3) and 8) are short-circuited in the connector,
and 1) (SDB), 2) (SDA) and 5) (SG) are used to connect to external devices.
General purpose communication module
Pin No.
SDA (+) 2)
SDB (-) 1)
SG 5)
(+)
(-)
SG
External device
(Note)
SDA (+) 4)
SDB (-) 3)
to the next external device
RDA (+) 9)
RDB (-) 8)
FG 6)
In order to obtain the proper shielding effect, the
shielding wire needs to extend in the connector
cover and be connected properly to the terminal.
* To set a terminating resistor for a 2-wire system, change the "RS-485 Terminating resistor ON/OFF" switch to "1"(left
side when facing the front panel).
6-2-2 When RS-485 is used (4-wire system)
To make a 4-wire system, 1), 2), 5), 8) and 9) are used as in the figure below:
General purpose communication module
Pin No.
SDA (+) 2)
SDB (-) 1)
SG 5)
SDA (+) 4)
SDB (-) 3)
RDA (+)
RDB (-)
SG
(Note)
External device
RDA (+) 9)
RDB (-) 8)
SDA (+)
SDB (-)
FG 6)
* To set a terminating resistor for 4-wire system, change
the "RS-485 Terminating resistor ON/OFF" switch to "3"
(left and right side when facing the front panel).
to the next external device
In order to obtain the proper shielding effect, the
shielding wire needs to extend in the connector
cover and be connected properly to the terminal.
Note: Precaution when there is no SG terminal on the external device
SG wire cannot be connected if there is no SG terminal on the external device. Depending on the ambient environment, in
the worst, module internal element might be damaged. To avoid this, connect a Zener diode (of 6 V Zener voltage, RD6.2F
from NEC or equivalent) between signal cable and SG terminal in the connector on this module side.
SDA (+) 2)
SDB (-) 1)
When 2-wire
When 4-wire
* RS1, RS4 V2738 or later version has built-in zener
diode.
RS5 has zener diode.
SG 5)
RDA (+) 9)
RDB (-) 8)
6-2
Page 65
6-2-3 When RS-232C is used
General purpose communication module
6-2 Wiring Method
External device
Pin No.
Receive data
Send data
Communication ready
Send request
Signal ground
Data set ready
Data channel
Carrier detection
Call indication
Data terminal ready
RD2)
SD3)
CS8)
RS7)
SG5)
DR6)
CD1)
Ri 9)
ER4)
In order to obtain the proper
shielding effect, the shielding wire
needs to extend in the connector
cover and be connected properly
to the terminal.
(Note)
Connect as
necessary on
the external
device side.
Shielded section of communication cable
Shielding wire is connected using
the D-sub connector cover fixing screw.
* It is possible to connect to FG of PLC
via this module.
Note 1: Generally, a plastic cover is used for connection as shown in the above figure.
Commercially available plastic cover :1) DE-C4-J6 from JAE
2) HDE-CTF or HDE-CTF1 from Hirose Electric Co., Ltd.
Or their equivalent
Note 2: When the on-site operating environment requires stricter EMC measures, it is more effective to make this cable
using commercially available metallic covers.
Metallic cover : 1) DE-CE-J6 from JAE (aluminum die cast)
2) HDB-CTH1 from Hirose Electric (Ni coated plastic)
3) 17JX-09H-1A from DDK, Ltd. (Ni coated plastic)
Or their equivalent
6-3
Page 66
Section 7 RAS
Page
7-1 RAS Information of General Purpose Communication Module.............................. 7-1
Page 67
Section 7 RAS
7-1 RAS Information of General Purpose
Communication Module
The following describes the procedure for monitoring and analyzing the RAS information of the general purpose
communication module using the D300win.
< Example system configuration >
General purpose communication module
MICREX-SX
To external device
SX bus station No.3
D300win
< Monitoring/analysis procedure >
The following describes the monitoring/analysis procedure using the above system as an example.
(1) Connect the D300win to the MICREX-SX series CPU module to display the following [Control] dialog box.
SX bus station No.2
SX bus station No.1
Left-click here.
(2) The following [Failure diagnosis] dialog box appears.
7-1
Left-click here to read further
information.
Page 68
7-1 RAS Information of General Purpose Communication Module
When you left-click here, the detailed RAS
information of the selected module appears.
Select the general purpose communication
module (SX station No.3) and then left-click
the [Detail RAS...] button.
(3) The following [Detail RAS] dialog box of the general purpose communication module appears. First, the
“Module intensive status information” appears.
(4) When you select [Type information], the module format, software version number, and other information appear
in Contents, as shown below.
Note:The hardware versio number is not displayed for firmware version V.06 or later versions.
7-2
Page 69
7-1 RAS Information of General Purpose Communication Module
(5) When you select [General purpose communication module RS1 detail RAS], the detailed RAS information
* One word (16 bits) represents each detailed RAS item. The detailed RAS corresponding to each number is shown below.
< Detailed RAS information >
Status of general purpose
0
communication module
Status of RS-232C port
1
2Status of RS-485 port
Not used
3-5
Not used
6,7
Number of parity error occurrences
8
Number of framing error occurrences
9
Number of overrun error occurrences
10
Send buffer overflow
11
12Receive buffer overflow
13Loopback buffer overflow
14,15
22,23
RS-232C
28-31
Not used
Number of parity error occurrences
16
Number of framing error occurrences
17
18
19Send buffer overflow
20
21
24
25
26
27
Number of overrun error occurrences
Receive buffer overflow
Loopback buffer overflow
Not used
Number of SX bus send error
interrupts
Number of SX bus receive error
interrupts
Number of error message data
receptions
Number of invalid message data
receptions
Not used
RS-485
SX bus
7-3
Page 70
7-1 RAS Information of General Purpose Communication Module
• RS-232C/RS-485 Port status
Control dataError data
151413 12 11 10 9 8 7 6 5 4 3210
RS signal
CS signal
DR signal
ER signal
CD signal
CI signal
Initialization end
Reserved
Send error
Receive error
Framing error
Overrun
Parity error
Reserved
Reserved
Reserved
Meaningful when the RS-232C port is used.
Reserved when the RS-485 port is used.
Note: If a framing error, overrun error, or parity error occurs,
products with V.2535 or earlier module versions incur
module nonfatal error while products with V.2535 or later
module versions do not.
• General purpose module communication status
14
13 12 11 10 9 8 7 6 5 4 3210
15
Mode switch (x8)
Mode switch (x4)
Mode switch (x2)
Mode switch (x1)
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
RS-485 station No. (x8)
RS-485 station No. (x4)
RS-485 station No. (x2)
RS-485 station No. (x1)
Reserved when NP1L-RS2 is used.
• Framing error: It becomes ON when stop bit is not detected while receiving data.
• Overrun error: It becomes ON when data receive process of firmware failed while receiving data.
• Parity error:It becomes ON when parity error detected while receiving data.
Those error bit remains until initialize this module or power off.
7-4
Page 71
Appendix 1 JIS Code
Page
JIS 7-bit Codes ....................................................................................................... App.1-1
JIS 8-bit Codes ....................................................................................................... App.1-1
Page 72
Codes
The following table shows the character-code in Japan Industrial Standards (JIS).
JIS 7-bit Codes
Appendix 1 JIS Code
7b
6b
1bot4b01234567
0000
1000
0100
1100
0010
1010
0110
1110
0001
1001
0101
1101
0011
1011
0111
1111
0LUN)ELD(7CTPS0 @Pp
1)HOS(1CT1CD!1AQaq
2)XTS(2CT2CD"2BRbr
3)XTE(3CT3CD#3CScs
4)TOE(4CT4CD$4DTdt
5)QNE(5CT)KAN(8CT%5EUeu
6)KCA(6CT)NYS(9CT&6FVfv
7LEB)BTE(01CT'7GWgw
8)SB(0EFNAC(8HXhx
9)TH(1EFME)9IYiy
01)FL(2EFBUS*:JZjz
11)TV(3EFCSE+;K[k{
21)FF(4EF)SF(4SI,<L¥l|
31)RC(5EF)SG(3SI-=M]m}
41OS)SR(2SI.>N`n
51IS)SU(1SI/?O_o LED
0
0
5b
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
1
1
0
1
JIS 8-bit Codes
Unlike 7-bit codes, JIS 8-bit codes assign different codes for alphabetic characters than for katakana characters.
(The table below shows the codes for alphabetic characters.)
Appendix 2-3-1 Read data ...................................................................................................... App.2-4
Appendix 2-3-2 Write data ....................................................................................................... App.2-6
Appendix 2-3-3 Batch Start of CPUs ....................................................................................... App.2-7
Appendix 2-3-4 Batch Initiazation Start of CPUs .................................................................... App.2-7
Appendix 2-3-5 Batch Stop of CPUs ....................................................................................... App.2-7
Appendix 2-3-6 Batch Reset of CPUs ..................................................................................... App.2-8
Appendix 2-3-7 Individual Start of CPU .................................................................................. App.2-8
Appendix 2-3-8 Individual Initialization Start of CPU ............................................................... App.2-8
Appendix 2-3-9 Individual Stop of CPU ................................................................................... App.2-9
Appendix 2-3-10 Individual Reset of CPU ............................................................................... App.2-9
Page 74
Appendix 2 Data Access by Command
Appendix 2-1 Command Overview
When accessing data inside the MICREX-SX series CPU module from a personal computer or other intelligent devices,
data read and write operations are possible by issuing request commands from the personal computer, without preparing
send and receive application programs in the CPU module. The following 10 commands are prepared.
Note: When the “Initialize and Activate All CPUs at One Time” command or “Initialize and Activate a CPU Separately”
command is executed, the retain memory is cleared before activation.
< Data access image >
Create request commands by means of an application program in the personal computer and then send them to the CPU
module via the general purpose communication module. The CPU which receives request commands returns response
commands.
The data communication program is not required as an application program in the CPU module.
* Set the MODE switch of the general communication module to "1".
General purpose communication modulePersonal computer
MICREX-SX
Request commands
Response commands
CPU module
App.2-1
Page 75
Appendix 2-2 Send Data Format of Commands
The send data of request and response commands consist of the “transmission header”, “loader command”, and
“checksum code”. The format of a request command is the same as that of response command.
All data are transmitted as HEX code (Not ASCII code).
Transmission header
(3 bytes)
Command consisting of
command header (16 bytes)
and data
START code (5Ah fixed)
Data counter (L)
Data counter (H)
Processing status
Connection mode
Connection ID (L)
Connection ID (H)
(11h fixed)
(00h fixed)
(00h fixed)
(00h fixed)
(00h fixed)
(00h fixed)
Command
Mode
Number of bytes in command
plus one (checksum code)
(00h fixed)
(01h fixed)
Number of bytes in data (L)
Number of bytes in data (H)
Data
Checksum code (1 byte)
< Detailed send data >
1) START code
Starting code of send data (request command and response command). Fixed to “5Ah”.
2) Data counter
Indicates the number of bytes in command plus one (checksum code (BCC)).
3) Processing status
Indicates the result of execution of each processing requested by commands. Checked by response commands. Request
commands are issued with the processing status fixed to “FFh.”
Command: Major category code of commands
Mode: Detailed code of commands
For details on commands and modes, refer to “Appendix 2-3 Loader Command Details.”
6) Number of bytes in data
Indicates the number of bytes in data. The total number of bytes in the request command during data write operation and
the response command during data read operation must not exceed 492 bytes.
7) BCC (block check character)
Checksum code for send data check. The BCC, consisting of one byte, is obtained by the following expression:
BCC = 00h- { ( Data counter ) + ( Connection status) + + ( Data ) }
App.2-3
Page 77
Appendix 2-3 Loader Command Details
Appendix 2-3-1 Read data
1) Function
This command reads the specified number of words from the specified address of the specified data memory. If the
requested number of words exceeds the range of the specified memory, up to the end of the specified memory is read.
2) Command/mode code
Command: 00h, Mode: 00h
3) Data format of request command/response command
Data format of request command
Memory type
Memory address (L)
Memory address (M)
Memory address (H)
Number of words of read data (L)
Number of words of read data (H)
4) Arrangement of read data
The read data is arranged as shown below.
MICREX-SX module Personal computer
15
123434
5678
0
<==>
Data format of response command
Memory type
Memory address (L)
Memory address (M)
Memory address (H)
Number of words of read data (L)
Number of words of read data (H)
Read data
.
.
.
12
78
56
5) Example of Read Data command
When reading 2-word data from standard memory %MW1.1000 of the CPU module (CPU station No.0), request and
response commands are as shown below. (Data: %MW1.1000=WORD#16#1234, %MW1.1001=WORD#16#5678)
The memory type code for each memory of the MICREX-SX module is shown below.
eludomtegraTepytyromeMemanaerAskrameR
eludomUPCh20)1WM%(yromemdradnatS
h40)3WM%(yromemniateR
h80)01WM%(yromemmetsyS
eludomknilEPhFF)1.WM%(aeratsacdaorB)1etoN(
eludomknilPhFF)1.WM%(aeratsacdaorB)2etoN(
eludomten-LFhFF)1.WM%(.cte,yromemnommoC
Note 1: When accessing the broadcast area of the PE link module by means of a command, the address does not start
with 0. Refer to the following address correspondence table.
Note 2: When accessing the broadcast area of the P link module by means of a command, the high-speed bit area, high-
speed word area, and low-speed word area are not continuous. Refer to the following address correspondence
table.
< Address correspondence table of PE link >
morfsseccA
noitacilppa
aera1deeps-hgiH
)aeratibdeeps-hgih(
aera2deeps-hgiH
aera1deeps-woL
aera2deeps-woL
0.1.WM%
|
115.1.WM%
215.1.WM%
|
3078.1.WM%
4078.1.WM%
|
99721.1.WM%
00821.1.WM%
|
78052.1.WM%
dnammoc
HML
00
|
00
00
|
00
00
|
00
00
|
00
redaolmorfsseccA
E1
|
F1
02
|
F3
04
|
F4
05
|
F7
00
|
FF
00
|
FF
00
|
FF
00
|
FF
< Address correspondence table of P link >
morfsseccA
noitacilppa
aera1deeps-hgiH
)aeratibdeeps-hgih(
aera2deeps-hgiH
aera1deeps-woL
aera2deeps-woL
0.1.WM%
|
115.1.WM%
215.1.WM%
|
3661.1.WM%
4661.1.WM%
|
53741.1.WM%
63741.1.WM%
|
70871.1.WM%
redaolmorfsseccA
dnammoc
HML
00
|
00
00
|
00
00
|
00
00
|
00
00
|
10
20
|
60
80
|
31
41
|
F1
00
|
FF
00
|
F7
00
|
FF
00
|
FF
App.2-5
Page 79
Appendix 2-3 Loader Command Details
Appendix 2-3-2 Write data
1) Function
This command writes the specified number of words to the specified address of the specified data memory.
2) Command/mode code
Command: 01h, Mode: 00h
3) Data format of request command/response command
Data format of request command
Memory type
Data format of response command
Memory type
Memory address (L)
Memory address (M)
Memory address (H)
Number of words of write data (L)
Number of words of write data (H)
Write data
.
.
.
4) Arrangement of write data
The write data is arranged as shown below.
MICREX-SX module Personal computer
15
123434
5678
0
<==>
Number of words of write data (L)
Number of words of write data (H)
12
78
56
Memory address (L)
Memory address (M)
Memory address (H)
5) Example of Write Data command
When writing 1-word data to retain memory %MW3.0 of the CPU module (CPU station No.0), request and response
commands are as shown below. (Write data: WORD#16#1234)
This command activates all the CPUs in the configuration at one time.
Each CPU cold-starts or warm-starts depending on the condition. CPUs already activated or CPUs with the key switch set
to the “RUN” position do not perform any processing. They respond normally without error.
2) Command/mode code
Command: 04h, Mode: 00h
3) Data format of request command/response command
None
4) Batch start command of CPUs
When activating all the CPUs at one time, request and response commands are as shown below.
This command initializes and activates all the CPUs in the configuration at one time.
Each CPU cold-starts. CPUs already activated or CPUs with the key switch set to the “RUN” position do not perform any
processing. They respond normally without error.
2) Command/mode code
Command: 04h, Mode: 01h
3) Data format of request command/response command
None
4) Batch initialization start command of CPUs
When initializing and activating all the CPUs at one time, request and response commands are as shown below.
This command deactivates all the CPUs in the configuration at one time.
CPUs already activated or CPUs with the key switch set to the “RUN” position do not perform any processing. They
respond normally without error.
2) Command/mode code
Command: 04h, Mode: 02h
3) Data format of request command/response command
None
4) Batch stop loader command of CPUs
When deactivating all the CPUs at one time, request and response commands are as shown below.
This command activates a specified CPU in the configuration separately.
Each CPU cold-starts or warm-starts depending on the condition. If the specified CPU has already been activated, an
error result. CPU specification is made with the connection mode and connection ID.
2) Command/mode code
Command: 04h, Mode: 04h
3) Data format of request command/response command
None
4) Example of individual start command of CPU
When activating a CPU separately (CPU1 in a multi-CPU system), request and response commands are as shown below.
Appendix 2-3-8 Individual Initialization Start of CPU
1) Function
This command Initializes and activates a specified CPU in the configuration separately.
The specified CPU cold-starts. If the specified CPU has already been activated or the key switch is set to the RUN/STOP
position, an error result. CPU specification is made with the connection mode and connection ID.
2) Command/mode code
Command: 04h, Mode: 05h
3) Data format of request command/response command
None
4) Example of individual initialization start command of CPU
When initializing and activating a CPU separately (CPU1 in a multi-CPU system), request and response commands are
as shown below.
This command deactivates a specified CPU in the configuration separately.
If the specified CPU has already been deactivated or the key switch is set to the RUN/STOP position, an error result. CPU
specification is made with the connection mode and connection ID.
2) Command/mode code
Command: 04h, Mode: 06h
3) Data format of request command/response command
None
4) Example of individual stop command of CPU
When deactivating a CPU separately (CPU1 in a multi-CPU system), request and response commands are as shown
below.
This command resets a specified CPU in the configuration separately.
If the key switch is set to the RUN/STOP position, an error result. CPU specification is made with the connection mode and
connection ID.
2) Command/mode code
Command: 04h, Mode: 07h
3) Data format of request command/response command
None
4) Example of individual reset command of CPU
When resetting a CPU separately (CPU1 in a multi-CPU system), request and response commands are as shown below.
Communication module (Type: NP1L-RS3) has two RS-232C port. Function is almost same as other modules (Type:
NP1L-RS1/RS2/RS4).
Here explains difference between NP1L-RS3 and other modules (NP1L-RS1/RS2/RS4).
As for common function with other modules, please read main chapter of this manual.
Appendix 3-1 Applicable Version for NP1L-RS3
(Related page: p1-4)
epyTnoisrevtroppuS
UPC002HPS)4/2/1SR-L1PNedulcni(retalro03**
003HPS)4/2/1SR-L1PNedulcni(retalro52**
redaoL2Vniw003Dretalro0.6.2.2V
3Vniw003Dretalro0.4.1.3V
redaoLdradnatSretalro0.0.1.2V
If you use NP1L-RS3, you need to use with above mentioned version CPU and Loader.
* NP1L-RS3 supports “Modem-based loader function” and “Standard extended FB”.
* In case of switch No. F, use either CH1 or CH2 (Can’t be used simultaneously).
3) RS-232C port
Same type connector and pin assignment as NP1L-RS2.
In case of NP1L-RS3, SG (Pin No. 5) and FG (M2.6 Screw) are internally connected. Generally, connect shield wire of RS232C cable to FG of NP1L-RS3. However, if communication failed because of noise, connect shield wire of RS-232C cable
to both FG of NP1L-RS3 and FG of external device (Ground on both device).
App.3-2
Page 86
Appendix 3 Additional Explanation
for NP1L-RS3
Appendix 3-4 Self-diagnosis
(Related page: p3-10 to p3-11)
Appendix 3-4-1 Self-diagnosis mode 1
Function of self-diagnosis is same as NP1L-RS1/2/4. However, LED name is different.
(1) LED lighting check
Of the external LEDs of the module, the lighting condition of those operated by general purpose communication module
are checked. When the mode selection switch is set to “7,” “TS1,” “TS2,” “CH2 ALM” and “CH1 ALM” LEDs light up in this
order.
Appendix 3-4-2 Self-diagnosis mode 2
(1) RS to CS signal check
In this check, the general purpose communication module turns RS signal ON to check whether CS signal is looped back
and turns ON, and then checks that this signal turns OFF.
When both CH1 and CH2 are normal, “TS2” lights up; proceeds to step (2).
IF CH1 and/or CH2 is abnormal, “TS2” blinks (at 0.5-second intervals) after 5 seconds ; proceeds to step (2).
If CH1 is abnormal, “ERR” lights up while “TS2” blinks.
If CH2 is abnormal, “CH2 ALM” lights up while “TS2” blinks.
(2) ER to DR signal check
In this check, the general purpose communication module turns ER signal ON to check whether DR signal is looped back
and turns ON, and then checks that this signal turns OFF.
When both CH1 and CH2 are normal, “TS1” lights up; proceeds to step (3).
IF CH1 and/or CH2 is abnormal, “TS1” blinks (at 0.5-second intervals) after 5 seconds ; proceeds to step (3).
If CH1 is abnormal, “ERR” lights up while “TS1” blinks.
If CH2 is abnormal, “CH2 ALM” lights up while “TS1” blinks.
(3) RS-232C data check
The general purpose communication modules sends 16 bytes of data once and checks the looped back data received.
When both CH1 and CH2 are normal, “CH1 ALM” lights up; proceeds to step (4).
IF CH1 and/or CH2 is abnormal, “CH1 ALM” blinks (at 0.5-second intervals) after 10 seconds ; proceeds to step (4).
If CH1 is abnormal, “ERR” lights up while “CH1 ALM” blinks.
If CH2 is abnormal, “CH2 ALM” lights up while “CH1 ALM” blinks.
(4) Preservation of the result of the check
After 10 seconds of displaying the results from (3) above, the module returns to step (1). Here, if the setting of the mode
selection switch has been changed, Self-diagnosis Mode 2 is ended to enter the designated mode.
(Related page: p7-3)
No. 4 and No. 5 information newly added to detailed RAS information.
(To NP1L-RS3 module. Currently, NP1L-RS1/RS2/RS4 doesn’t support this information.)
Status of general purpose
0
communication module
Status of CH1
1
2Status of CH2
Not used
3
Self-diagnostic 1
4
Self-diagnostic 2
5
Not used
6
Not used
7
8Number of parity error occurrences
Number of framing error occurrences
9
Number of overrun error occurrences
10
Send buffer overflow
11
12Receive buffer overflow
13Loopback buffer overflow
RS-232C
No.4 (Self-diagnostic 1)
Bit 0: External RAM abnormal
Bit 1 to 15: Not used
No.5 (Self-diagnostic 2)
151413 12 11 10 9 8 7 6 5 4 3210
CH1 CTS ON abnormal
CH1 CTS OFF abnormal
CH1 DSR ON abnormal
CH1 DSR OFF abnormal
CH2 CTS ON abnormal
CH2 CTS OFF abnormal
CH2 DSR ON abnormal
CH2 DSR OFF abnormal
Not used
Not used
Not used
Not used
CH1 Send/Receive data abnormal (SD RD) (Send data error detected)
CH1 Loop back abnormal (SD RD) (Communication error detected)
CH2 Send/Receive data abnormal (SD RD) (Send data error detected)
CH2 Loop back abnormal (SD RD) (Communication error detected)
App.3-4
Page 88
Appendix 4 Additional Explanation for NP1L-RS5
Page
Appendix 4-1 Applicable Version for NP1L-RS5 ..................................................... App.4-1
Appendix 4-2 General Specifications ...................................................................... App.4-1
Appendix 4-3 Names and Functions ....................................................................... App.4-1
Communication module (Type: NP1L-RS5) has two RS-485 port. Function is almost same as other modules (Type: NP1LRS1/RS2/RS4).
Here explains difference between NP1L-RS5 and other modules (NP1L-RS1/RS2/RS4).
As for common function with other modules, please read main chapter of this manual.
Appendix 4-1 Applicable Version for NP1L-RS5
(Related page: p1-4)
epyTnoisrevtroppuS
UPC002HPS)4/2/1SR-L1PNedulcni(retalro03**
003HPS)4/2/1SR-L1PNedulcni(retalro52**
redaoL2Vniw003DdetroppustoN
3Vniw003Dretalro0.2.3.3V
redaoLdradnatSretalro1.2.2.2V
If you use NP1L-RS5, you need to use with above mentioned version CPU and Loader.
* NP1L-RS5 supports “Modem-based loader function” and “Standard extended FB”.
For wiring, please refer “6-2 Wiring Method”.
However, in case of 2-wire, short SDA and RDA (+), SDB and RDB (-) and connect to other device.
In case of RS5, no need to connect zener diode as it is already included in module.
App.4-3
Page 92
Appendix 4 Additional Explanation
for NP1L-RS5
Appendix 4-4 Self-diagnosis
(Related page: p3-10 to p3-11)
Appendix 4-4-1 Self-diagnosis mode 1
Function of self-diagnosis is same as NP1L-RS1/2/4. However, LED name is different.
(1) LED lighting check
Of the external LEDs of the module, the lighting condition of those operated by general purpose communication module
are checked. When the mode selection switch is set to “7,” “TS1,” “TS2,” “CH2 ALM” and “CH1 ALM” LEDs light up in this
order.
Appendix 4-4-2 Self-diagnosis mode 2
(1) RS-485 data check
The general purpose communication modules sends 16 bytes of data once and checks the looped back data received.
When both CH1 and CH2 are normal, “CH1 ALM” lights up; proceeds to step (2).
If CH1 is abnormal, “CH1 ALM” blinks (at 0.5-second intervals) and “ERR” turns ON after 10 seconds; proceeds to step 2.
If CH2 is abnormal, “CH2 ALM” blinks (at 0.5-second intervals) and “ERR” turns ON after 10 seconds; proceeds to step 2.
(2) Preservation of the result of the check
After 10 seconds of displaying the results from (1) above, the module returns to step (1). Here, if the setting of the mode
selection switch has been changed, Self-diagnosis Mode 2 is ended to enter the designated mode.
Appendix 4-5 Initialization Parameters
(Related page: p4-7)
.oNmetInoitacificepS
1.oNtroP
8noitangisedECD5SR-L1PNfoesacnidesutoN
9lortnoclangisRD/RE5SR-L1PNfoesacnidesutoN
01lortnocwolflangiS5SR-L1PNfoesacnidesutoN
1HC:0
2HC:1
Appendix 4-6 Loader Network Functions
(Related page: p3-7)
If you use this module on loader network configuration, connect cable to CH2.
(Related page: p7-3)
RS-485 station No. switch setting appears on bit 5 to 9, 0 to 4 on communication status area.
9876543210FEDCBA
Mode switch (x 8)
Mode switch (x 4)
Mode switch (x 2)
Mode switch (x 1)
Reserved
CH1 station number
CH2 station number
No. 4 and No. 5 information newly added to detailed RAS information.
(Almost same as RS3 specification)
Status of general purpose
0
communication module
Status of CH1
1
2Status of CH2
Not used
3
Self-diagnostic 1
4
Self-diagnostic 2
5
Not used
6
Not used
7
8Number of parity error occurrences
Number of framing error occurrences
9
Number of overrun error occurrences
10
Send buffer overflow
11
12Receive buffer overflow
13Loopback buffer overflow
RS-232C
for NP1L-RS5
No.4 (Self-diagnostic 1)
Bit 0: External RAM abnormal
Bit 1 to 15: Not used
No.5 (Self-diagnostic 2)
14
13 12 11 10 9 8 7 6 5 4 3210
15
Not used
Not used
Not usedl
Not used
Not used
Not used
Not used
Not used
Not used
Not used
Not used
Not used
CH1 Send/Receive data abnormal (SD RD) (Send data error detected)
CH1 Loop back abnormal (SD RD) (Communication error detected)
CH2 Send/Receive data abnormal (SD RD) (Send data error detected)
CH2 Loop back abnormal (SD RD) (Communication error detected)
App.4-5
Page 94
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
URLhttp://www.fujielectric.co.jp/fcs/eng/
Information in this manual is subject to change without notice.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.