Professional Documents
Culture Documents
No patent liability is assumed by TOSHIBA Corporation with respect to use of information, illustrations,
circuits, equipment or examples of application in this publication.
TOSHIBA Corporation reserves the right to make changes and improvements to this publication and/or
related products at any time without notice. No obligation shall be incurred other than as noted in this
publication.
This publication is copyrighted and contains proprietary material. No part of this book may be reproduced,
stored in a retrieval system, or transmitted, in any form or by any means — electrical, mechanical,
photocopying, recording, or otherwise — without obtaining prior written permission from TOSHIBA
Corporation.
PROSEC, TOSLINE and TOSDIC are trademarks or registered trademarks of TOSHIBA Corporation.
Hazard Classifications
Note: 1. Serious injury means loss of sight, injury, burns (high temperature, low temperature), electrical
shock, fracture, or intoxication which leaves aftereffects or requires hospitalization or need to
go to the hospital for a long time.
2. Injury means hurt, burn, or electrical shock which does not require hospitalization or going to
the hospital for a long time.
3. Property damage means extended breakdown of assets and materials.
Notation of Markings
Indicates a caution.
Caution The concrete content is indicated inside or near the triangle.
Note: The description of forbiddance, mandatory, and caution marks are subject to change, depending
on the labels on the main unit.
6F8C0879 i
1. Checking the Warning Labels on the Main Unit
Make sure warning markings are attached on the main unit.
If any of them are missing or the wording is illegible, contact Toshiba's Service Department.
2. Precautions on Installation
WARNING
Mandatory
Be sure to ground the equipment.
Operation without grounding may cause
accidental fire or shock.
CAUTION
Mandatory
Mandatory Improper the installation or writing of the
Avoid the following locations when system can cause not only insufficient
installing or storaging the equipment. performance but also malfunction and
• Locations where there is dust, salinity, or ion failure of the equipment
particles
• Locations where there are corrosive gases
(SO2, H2S) or flammable gases
• Locations where vibration or shock occurs
Mandatory
beyond the allowance
• Locations where there is condensation due Install the equipment at a place where
to sharp temperature variations maintenance and inspection are easy to do.
• Locations where the ambient temperature Otherwise, recovery from failure may take
exceeds the allowance range much more time, leading to a serious
• Locations where the relative humidity accidents.
exceeds the allowance range
• Locations where the equipment is exposed
to direct sunlight
• Locations where strong electric radiation or
magnetic field is generated Forbidden
Do not cover the hole of the equipment, and the
ventilator/air inlet of the system.
Otherwise, overheating, etc. can cause fire
or malfunction.
WARNING
Mandatory Mandatory
Turn off power removing or connecting any Turn off power removing any modules after
modules, boards, or devices. installing.
Otherwise, it can cause electrical shock, or Otherwise, exposed conductive parts of wire
machine damage. or on the rear of terminal blocks can cause
electrical shock.
CAUTION
Forbidden Mandatory
Be careful not to hit or fall off the equipment by Place any modules or boards removed from
accident. the unit on a conductive mat or conductive bag
Excess shock can cause failure. (containing a spare board, etc.) on an
grounded desk.
Otherwise, static electricity can damage
components of the module.
Mandatory
Touch a grounded metal part to discharge the
static electricity on your body before touching
the equipment. Forbidden
Otherwise, charged static electricity on your Do not apply benzene and thinner when clean-
body can cause malfunction or failure. ing the equipment.
Otherwise, it can cause deformity or discolora-
tion the panel or case of the equipment.
Mandatory
Use soft cloth to clean the equipment.
Use water-dipped and squeezed cloth to
clean it if dirty.
Leaving the equipment dirty can cause
mistaken or malfunction.
6F8C0879 iii
4. Precautions During Parts Replacement
WARNING
Mandatory
Turn off power of the equipment before
replacing the power fuse or warning fuse.
Otherwise, it can cause electrical shock or fire.
WARNING
Mandatory Mandatory
Apply power of the specified ratings (voltage Turn off power immediately if the ambient
fluctuation range, frequency, output rating, temperature or internal temperature exceeds
etc.) in User's manual. beyond normal range or if failure is occurred
Otherwise, it can cause malfunction, machine in the equipment.
damage or fire due to overheat. Contact Toshiba for repairing.
Operation under such situation can cause fire
or electrical shock.
CAUTION
Forbidden Forbidden
Do not touch any components, terminals, Do not forcibly bend or pull or distort the power
connectors, or printed circuit boards in the cord and other cables. Otherwise, they can be
module. cut off or cause overheat.
Otherwise, it can cause the IC or LSI or the
like to be broken by static electricity, resulting
in failure or malfunction.
Also, the edge of components can cause
injury.
WARNING CAUTION
Forbidden Mandatory
Do not throw lithium batteries into fire. Observe local regulations for disposal of the
Otherwise, they can explode. lithium batteries or the product (Base unit
and modules).
6F8C0879 v
Limitation of Applications
The equipment has been designed and manufactured for use in an industrial environment.
However, the equipment is not intended to be used for systems which can endanger human life
(Note 1).
Consult Toshiba if you intend to use the equipment for a special application which involves human
life and has great influence on the maintenance of the public function (Note 2). This is why such
application requires special care on the operation, maintenance, and control of the system (Note 3).
(Note 1) The systems which can endanger human life are life maintenance systems, equipment
installed in the surgery, and other medical equipment.
(Note 2) The systems which involve human life and have great influence on the maintenance of the
public function mean the main control system of a nuclear power plant, safety and
protection system of a nuclear power facility, transport operation and control systems for
mass transportation, control systems of aviation and space systems, and other systems
and subsystems where safety is critical.
(Note 3) "Special care" means to build a safety system (foolproof design, fail safe design,
redundancy design, etc.) in full consultation with Toshiba's engineers.
Immunity
Toshiba is not liable for any loss caused by fire, earthquake, action by a third party, or other
accidents, or the operator's intentional or accidental misuse, incorrect use, or use under abnormal
condition.
Toshiba is not liable for any incidental loss caused by the use or non-use of this product, such as
loss of business profits, suspension of business, or loss or change of data on memory.
Toshiba is not liable for the loss caused by an operation contradictory to any of the instructions
stated in this manual.
Toshiba is not liable for the loss caused by an incorrect operation in combination with other
equipment.
Toshiba is not liable for the loss caused by a malfunction in combination with an application program
made by the customer.
NOTE:
Use cellular phones and PHSs at least one meter away from the working equipment, transmission
cables, and I/O bus cable. Otherwise, the system can malfunction.
This manual describes the interface module EN6** (called EN6 module in the manual)
which connects Ethernet serving as a trunk LAN for the Integrated Controller V Series to
the system bus in the Integrated Controller, and also the hardware of the EB6** (called
the EB6 module), presenting an overview, installation and operating procedures, and
instructions for maintenance and inspection.
The EN6 and EB6 are available in the following types, which vary depending on the
interface.
• EN611: Module for 10BASE5 single bus
• EN621: Module for 10BASE5 dual bus, line A (main module)
• EN631: Module for 10BASE2 single bus
• EN641: Module for 10BASE2 dual bus, line A (main module)
• EB621: Module for 10BASE5 bus, line B (used in combination with EN621)
• EB641: Module for 10BASE2 bus, line B (used in combination with EN641)
• EN651: Module for 100BASE-TX/10BASE-T single bus
• EN651A: Module for 100BASE-TX/10BASE-T single bus
• EN661: Module for 100BASE-TX/10BASE-T dual bus
Be sure to read first the Safety Precautions for you to use the equipment in the correct
way.
Related Document
• Monitoring and Control Network Ethernet Installation and Wiring Manual (6F8C0880)
6F8C0879 vii
Be Sure To Observe The Following
Observe the following to ensure the safety of the operator in using the equipment and to
keep it in normal operating condition.
3 Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 Switch Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1.1 Switch Setting Procedures . . . . . . . . . . . . . . . . . . . 14
3.1.2 Host ID setting switches (HOST-ID) . . . . . . . . . . . 15
3.1.3 Operation mode setting switches (MODE) . . . . . . . 16
3.2 Network Parameter Setting . . . . . . . . . . . . . . . . . . . . 19
3.2.1 Network ID and subnet mask setting . . . . . . . . . . . 21
3.2.2 Station address (Host ID) setting . . . . . . . . . . . . . . 23
3.2.3 Multicast address summary . . . . . . . . . . . . . . . . . . 24
3.2.4 Setting with Engineering tool . . . . . . . . . . . . . . . . . 25
3.2.5 Setting with Engineering Tool 2 . . . . . . . . . . . . . . . 33
3.2.6 Multicast address setting . . . . . . . . . . . . . . . . . . . . 40
3.2.7 Settings for multicast routing network . . . . . . . . . . 41
3.2.8 Ethernet link speed and duplex setting . . . . . . . . . 43
3.2.9 Default gateway IP address (Router IP address)
setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5 Operation . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.1 Check Before Operation . . . . . . . . . . . . . . . . . . . . . . 60
5.2 Starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6F8C0879 ix
CONTENTS
5.3 Stopping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7 Application Interface . . . . . . . . . . . . . . . 67
7.1 Socket Information . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.1.1 Structure of single Ethernet socket information . . .68
7.1.2 Structure of dual Ethernet socket information . . . .70
7.1.3 Socket information reference method . . . . . . . . . .71
7.1.4 Socket information generation timing . . . . . . . . . . .72
7.2 Transmission Line Diagnosis Information . . . . . . . . . . 74
7.2.1 Transmission line diagnosis information structure .74
7.2.2 Transmission diagnosis information reference
method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
7.2.3 Transmission line diagnostic frame structure . . . . .76
7.3 EN module state information . . . . . . . . . . . . . . . . . . . 77
7.4 Restrictions on Use . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.4.1 Restrictions on port numbers . . . . . . . . . . . . . . . . .78
7.4.2 Restrictions on single Ethernet sockets and dual
Ethernet sockets . . . . . . . . . . . . . . . . . . . . . . . . . .78
A Specifications . . . . . . . . . . . . . . . . . . . . . 79
B Dimensions . . . . . . . . . . . . . . . . . . . . . . . 83
C Related Products . . . . . . . . . . . . . . . . . . 85
D Decimal-hexadecimal Conversion
Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
E Sample Programs . . . . . . . . . . . . . . . . . . 89
The Ethernet module EN6** (called the EN6 module in this manual) and EB6** (called
the EB6 module in the manual) are devices for connecting controllers of the Integrated
Controller V Series to the monitoring and control network Ethernet (conforming to
IEEE802.3) for that series.
The 10BASE5 and 10BASE2 interfaces are available to the EN6 modules, and each of
these interfaces comes in the single bus type and dual bus type. Up to four EN6 modules
can be installed per base unit.
In a system of dual transmission line configuration, use a module (EN621 or EN641) for
line A in combination with a module (EB621 or EB641) for line B.
External views of the EN6 and EB6 modules, the Ethernet features and system
configuration examples are shown below.
• EN611: Module for 10BASE5 single bus
• EN621/EB621: Modules for 10BASE5 dual bus
• EN631: Module for 10BASE2 single bus
• EN641/EB641: Modules for 10BASE2 dual bus
• EN651: Module for 100BASE-TX/10BASE-T single bus
• EN651A: Module for 100BASE-TX/10BASE-T single bus
• EN661: Module for 100BASE-TX/10BASE-T dual bus
6F8C0879 1
Chapter 1 General
CD
AB
EF
789
01 2
34 56
CD
AB
EF
789
01 2
34 56
• The Ethernet has two types of transmission path: 10BASE5 and 10BASE2.
• High reliability can be achieved by redundant transmission path configuration.
• Multihost and multiport functions are available on the system buses.
• Send/receive requests from two or more hosts can be processed on the Ethernet, and
send/receive requests from the hosts to two or more Ethernet modules can be
processed.
• Group broadcast is enabled by the multicast transmission function.
• TCP/UDP/IP, PCMP, and IRCP are supported as standard protocols, which are
compatible with not only those protocols of general Ethernet devices but also with
those of the Toshiba small-scale monitoring and control system TOSDIC-CIE 1200
and the programmable controller PROSEC T series.
• The relay function permits direct relay of transmitted messages between the modules
of other Ethernet network. (Future)
6F8C0879 3
Chapter 1 General
FA personal computer
Repeater
Integrated controller
FA personal computer
Ethernet
S2/L2/C2-CPU
S2/L2/C2-CPU
S2/L2/C2-CPU
PIF*
PIF*
EN6
EN6
EN6
EN6
PS*
PS*
V controller firmware
Station bus
EN*** firmware
SNMP
Ethernet
TCP/UDP/IP
module
10BASE5, 10BASE2
100BASE-TX/10BASE-T
• Function Block:
Controller user programs perform the Ethernet transmission using function
blocks. There are mainly two transmission function blocks that perform sending
operation and receiving operation called USEND_T, and URCV_T, respectively.
And application programs are constructed using these function blocks.
• TCP: Transmission Control Protocol
This protocol performs transmission by establishing the connection (virtual
communication circuit) before transmitting with destination node. Transmission
reliability is raised by packet sequence control, packet retransmission, flow
control, and so on.
• UDP: User Datagram Protocol
This protocol performs transmission per datagram unit. It is possible to fast
transmit, because no connection is needed. However, not having the control
function like data retransmission, implementation is needed in the upper layer
program.
• IP: Internet Protocol
This protocol performs datagram type transmission. Data is transmitted per
datagram unit based on IP addresses. Unicast, broadcast, and multicast
transmission are supported.
• 10BASE5
Transmission speed is 10Mbps. Max 500 m per segment. Bus topology.
• 10BASE2
Transmission speed is 10Mbps. Max 185 m per segment. Bus topology.
• 100BASE-TX
Transmission speed is 100Mbps. Max 100 m per segment. Star topology.
• 10BASE-T
Transmission speed is 10Mbps. Max 100 m per segment. Star topology.
6F8C0879 5
Chapter 1 General
• System group:
System group provide system and management information.
• Interfaces group
Interfaces group provides hardware interface information.
• Address Translation group:
Address Translation group provides information between IP address physical
address.
• IP group:
IP group provides IP status information.
• ICMP group:
ICMP group provides ICMP status information.
• TCP group:
TCP group provides TCP status information.
• UDP group:
UDP group provides UDP status information.
• SNMP group:
SNMP group provides SNMP status information.
The front panels of the Integrated Controller model 2000 Ethernet modules and their
explanations are shown in figure 2-1 and figure 2-2.
EN611 EN621/EB621
module for 10BASE5 module for 10BASE5
single bus dual bus
Power LED
• PWR
6F8C0879 7
Chapter 2 Names of Parts and their Functions
EN631 EN641/EB641
module for 10BASE2 module for 10BASE2
single bus dual bus
2 Status indicator LED Status indicator LED
• RUN • RUN
• HLTH • HLTH
• L-A • L-A
• L-B
Power LED
• PWR
EN651A
module for 100BASE-TX/10BASE-T
single bus
01 2
34 56
CD
AB
Station address (Host ID) setting switches
EF
789
01 2
34 56
6F8C0879 9
Chapter 2 Names of Parts and their Functions
6F8C0879 11
Chapter 3 Setting
Warning
• For safety, be sure to check that the base unit has been switched off before installing EN6
modules in it or removing them from it.
• For safety, do not touch the insides of the product except for the switches.
• For safety, do not disassemble the product.
Caution
• The static charged in the human body may cause the product to fail. Discharge the static
from the human body before setting the switches.
• In setting the switches, spread the electroconductive bag which contained the product or an
electroconductive mat, and place the product on it. Failure to observe this will damage the
product by the static.
• A strong force or other stress to the insides of the products may cause trouble. In setting the
switches, be careful not to touch the parts other than the switches with the tools or the like.
• In setting the switches, do not change other than the necessary settings. The wrong setting
will prevent the product from normal operation.
• Be sure to set an IP address type and a host ID.
• If the network parameters are downloaded to the EN6 module, be sure to restart it. The
parameters will not be valid unless it is restarted.
• Verify transmission at the application level using the transmission protocol.
• Do not use reserved ports No.10000 and 48000 in user application software. Use ports No.
1024 to No.65535 for user applications except for the reserved ports.
• If you have any question, contact the Toshiba service office concerned.
6F8C0879 13
Chapter 3 Setting
01 2 01 2
Set a host ID in HEX (hexadecimal code).
EF EF If the address is 28, for example, it corresponds to
3456
CD
3456
CD
H L
1C in hexadecimals.
AB
AB
789 789
Therefore, set the H rotary switch to 1 and the L to
C.
Class C (general) corresponds to 172.16.64.28 in
this example.
6F8C0879 15
Chapter 3 Setting
Note: This mode is valid for EN611 and EN631 only. (Not applicable to EN621 and
EN641 dual systems. If this mode is used, it is valid for line A only, provided that
a single socket interface is employed.)
There are two 4-bit DIP switches in the front and side panel of EN651 and EN661. Each
of switches for EN651 and EN661 is described in Table 3-3
Note: This mode is valid for EN651 only. (Not applicable to EN661 dual systems. If this
mode is used, it is valid for line A only, provided that a single socket interface is
employed.)
6F8C0879 17
Chapter 3 Setting
Operation Mode
• Normal: The EN6 module is operated in standard condition.
• Download: Used for downloading firmware to the EN6 module program ROM
(flash PROM). This mode is set in upgrading the firmware version.
• Test Program: Used for operating the test program. Never use this mode.
3
IP Address Type
• Class B (General): Used for connecting an Ethernet of integrated controllers or a
general Ethernet.
• TOSDIC-CIE 1200: Used for connecting a TOSDIC-CIE 1200 Ethernet. (The system
operates according to the data set in the flash PROM.)
• Setting from Tool: Used for operating the EN6 modules with the network
parameters set from the Engineering tool.
6F8C0879 19
Chapter 3 Setting
IP address setting
Set network parameters by the kink of IP address used. Setting procedures are as
follows.
Start
Y
Go to (1)
Use default IP address of
N EN module.
Free IP address
is used.
Integrated controller N
Y
standard setting is
used.
Y
(1)
Integrated controller N
Y
standard setting is
used.
Y
6F8C0879 21
Chapter 3 Setting
Arbitrary setting
Set the IP address type to [Setting from Tool] using the operation mode setting switches.
This enables arbitrary setting with the engineering tool, and the network ID has priority
over the value set with the host ID setting switches. This setting is done with connecting
RS-232C cables to EN6 module.
In using a redundant transmission path after setting the IP address type to [Setting from
Tool], set the subnet mask as follows.
3 Class B: 255.255.192.0
Class C: 255.255.255.192
Set IP addresses for the A-bus with the tool.
In using this setting, connect the system to the network after the setting.
(Ex. 1) Class B
In the case of network ID of 172.20.0.0 and station address (host ID) of 03h, IP
address is as follows. In this example, station address (host ID) range is 1 to 126.
A bus IP address: 172.20.64.3
B bus IP address: 172.20.128.3
The setting range is 172.16.64(128).xx to 172.31.64(128).xx (xx: station address
(host ID)). The third value of IP address is only 64 for A bus and only 128 for B bus.
(In the case of single bus, it is same to A bus IP address.)
(Ex. 2) Class C
In the case of network ID of 192.168.32.0 and station address (host ID) of 03h, IP
address is as follows. In this example, station address (host ID) range is 1 to 62.
A bus IP address: 192.168.32.67 (67 = 64 + 3)
B bus IP address: 192.168.32.131 (131 = 128 + 3)
The setting range is 192.168.0.64(128)+xx to 192.168.255.64(128)+xx (xx: station
address (host ID). The forth value of IP address is 64+xx for A bus and 128+xx for B
bus. (In the case of single bus, it is same to A bus IP address.)
• Download method of [Setting from Tool] mode.
(1) Connect engineering tool to EN6 module.
(Connect RS-232C cable to serial communication port (TOOL) of EN6 module.)
(2) Start up EN6 module in [Class B (General)] mode.
(Class B (General): set address type IP0 and IP1 of operation mode setting
switch to off.)
In this time, it is recommended that station address (host ID) switch is set to
minimum value of primary IP address which is going to set from engineering tool.
This prevents illegal operation at none existing station address "00".
Ex. IP address 172.20.64.22 case
Set station address (host ID) switch to "22".
(3) Display parameter setting window from configuration editor of engineering tool.
Select [comm. partner] (primary / secondary) in the parameter setting window,
and select [Tool (T)] in [View].
(4) Set IP address type, IP address, and subnet mask in the parameter setting
window. Select [Setting from Tool] at IP address type. After setting, save
parameters and register configuration information to engineering tool.
(5) Close parameter setting window and go back to configuration editor, save again.
(6) Download registered network parameters to EN6 module.
(7) After downloading, switch off the base unit connected EN6 module.
(8) Change operation setting switch of EN6 module to [Setting from Tool (arbitrary
setting)]. (Setting from Tool: set address type IP0 and IP1 of operation mode
setting switch to on.
6F8C0879 23
Chapter 3 Setting
Any of these 15 addresses can be selected and registered per EN611 to EN641 module
as desired. Any15 addresses in all multicast addresses (224.0.0.0 - 239.255.255.255)
can be selected and registered per EN651, EN651A, EN661 module as desired.
Note: Addresses 224.0.0.0 to 239.255.255.255 are restricted in local network usage.
The packets destined to these addresses are not transferred by router. Because
there are some multicast addresses, confirming used addresses is needed.
Use the Engineering tool to register them in the EN6 module.
For how to register them, refer to the description of setting with the Engineering tool.
In a multicast system, the controllers can be divided into groups as shown in figure 3-4.
Controllers 1, 2, 4, 5 belong to Group A and controllers 3, 5, 6 to Group B.
If Group A is set to the multicast address of 225.224.0.1 and Group B to the multicast
address of 225.224.0.2, the address 225.224.0.1 is registered in controllers 1, 2, and 4
and the address 225.224.0.2 in controllers 3 and 6, while the addresses 225.224.0.1 and
225.224.0.2 are registered in controller 5, thus grouping the controllers as shown. This
permits delivering a message to all the controllers belonging to the group concerned.
Check the settings of the following switches before setting the network with the
Engineering tool.
• Check the operation mode switches that they are all in the OFF position.(All OFF in
case of class B)
• Check that the host ID setting switches that the H is set to 1 and the L to 4. (Set to 20
in decimals.)
(1) Then, start the Engineering tool.
6F8C0879 25
Chapter 3 Setting
(3) The following screen appears when [Edit (E)] [Parameter Setting (P)] is executed
after selecting EN641.
6F8C0879 27
Chapter 3 Setting
(8) Double-click the No. 1 module name in the system (S) column to open the module
connection screen, and register a module type to connect. In this case, select
EtherLANDouble (Ethernet dual).
(9) Click Connection (C) to register. The registered result is displayed as shown below.
6F8C0879 29
Chapter 3 Setting
(11)Click Connection (C) to register. The registered result is displayed as shown below.
(14)After registering the above, confirm that the network information of the corresponding
Ethernet module can be read from the serial communication port (TOOL).
Start the configuration editor [Hardware configuration] for controller A to open the
screen which shows the registered hardware configuration for controller A. Then
select EN641 and execute [Edit (E)] [Parameter setting (P)] to open the following
screen.
(15)When [Tool and Card] is clicked, the network information that the Ethernet module
has is displayed from the serial communication port (TOOL).
6F8C0879 31
Chapter 3 Setting
(16)If the EN6 module information is read out of the serial communication port normally,
confirm that the EN6 module information can be read out through the Ethernet.
To confirm that the information could be read out through the Ethernet, first
disconnect the RS-232C cable.
Make entries on the transmission parameter setting screen for confirmation through
the Ethernet.
Select Ethernet as means of transmission. The other settings need no change
because the settings used in reading the information from the serial communication
3 port are used as they are.
Click [OK].
Start the configuration editor [Hardware configuration] for controller A to open the
screen which shows the registered hardware configuration for controller A. Then
select EN641 and execute [Edit (E)] [Parameter setting (P)] to open the following
screen.
When [Tool and Ether card (B)] is clicked, the network information that the Ethernet
module has is displayed through the Ethernet.
6F8C0879 33
Chapter 3 Setting
(2) Register a unit in the station. Select [New (W)] with selecting the unit under the
registered station.
(3) Register a module in the unit. Select [New (W)] with selecting the module under the
registered unit. Select an EN6 module from module adding dialog.
(4) Select [module parameter] from [file] menu with selecting the added module, the
module parameter window is shown.
6F8C0879 35
Chapter 3 Setting
(5) Register parameters according to the system configuration diagram. If the IP address
type is class B, register 172.16.64.xx (xx means the host ID, which is 20 in this
example) and the subnet mask of 255.255.192.0.
(6) Then, register the network from the product tree. Select [New (W)] with selecting the
network under the registered system.
(7) Select [EtherLAN] from the network adding dialog(if the module is dual bus one,
select [EtherLANDouble]). Select [New (W)] with selecting the module under the
added EtherLAN.
(8) Select the EN6 module which is selected from the module adding dialog, it is
connected to EtherLAN.
6F8C0879 37
Chapter 3 Setting
3 Ethernet, Timeout (s): 3, Local Station Settings: Single (free mode), IP Address:
172.16.64.1. Then, press [OK] button.
(10)After registering the above, confirm that the network setting of the corresponding
EN6 module can be read from the serial communication port (TOOL). Open the
module parameter window of the registered EN6 module from the product tree.
(11)Click the [Tool and Module], the network setting of the EN6 module is shown.
6F8C0879 39
Chapter 3 Setting
EN
module
Multicast
router
Multicast
router
PC etc.
6F8C0879 41
Chapter 3 Setting
6F8C0879 43
Chapter 3 Setting
EN611
192.168.0.20
192.168.0.10
Default gateway
(router)
xx.yy.zz.vv
Personal computer,
for example
Note: Multicast messages from EN611, EN621, EN631, EN641, EN661 will not be
transmitted beyond the default gateway. And multicast messages from EN651
and EN651A will be same, only if IGMP operation will set to off by option switch 1.
6F8C0879 45
Chapter 4 Installation
and Wiring
Fully read this User's Manual and the Ethernet Installation and Wiring Manual
(6F8C0880) before starting installation and wiring.
Warning
• For safety, be sure to check that the base unit has been switched off before installing EN6
modules in it or removing them from it.
• Do not apply voltages higher than the rated voltage to the +12 VDC power connector (CN2)
(EN611, EN621, EB621)
• For safety, do not touch the insides of the product except for the switches.
Caution
• Make sure that the environment where the product is installed satisfies the product specifica-
tions. In cases where the product is installed in an environment which does not satisfy the
working temperature range, install a cooling unit for forced cooling of the product.
• Be sure to ground Ethernet, segment by segment, by class D grounding. (One point ground-
ing)
• The static charged in the human body may cause the product to fail. Discharge the static
from the human body before starting installation or wiring.
• If the cables are subjected to stress by touching, for example, it may cause malfunction or
accidents. Be careful not to accidentally touch the cables.
• Insert the modular connector fully till it clicks.
• The modular connector is for sending signals through line B in a dual Ethernet transmission
system. Do not connect 10BASE-T by mistake.
• In a dual transmission line configuration, do not make the wrong combination of the main
module (EN621, EN641) and line-B module (EB621, EB641).
• In installing two or more Ethernet modules in the same base unit, be careful not to make a
mistake about the connecting buses and segments.
• When mounting the product into the base unit, be careful not to break or bend the pins of the
bus connectors for the V-series system.
• If it is difficult to install a module in the base unit, do not force it into the base unit. Remove it
once, then try installing it again.
• Use a Phillips screwdriver, which fits the screws. This is important to prevent damage to the
screws.
• In a system of dual transmission line configuration, connect a separate power cable to the 12
VDC power connector CN2 on each module.
• If power cannot be switched on or if other kind of trouble occurs, stop use and contact the
Toshiba service office concerned.
• Verify transmission at the application level using the transmission protocol.
• Make sure that the base unit installed EN651 and EN661 is attached to metallic plate.
• Make sure that the upper side of EN651A module is screwed up by M4 screw.
• If you have any question, contact the Toshiba service office concerned.
6F8C0879 47
Chapter 4 Installation and Wiring
Base unit
EN6 module
EN6 module
or
EB6 module
Connector clamp
Ethernet connector
AUI cable (slide lock)
Figure 4-2 Connecting AUI Cable
EN6 module
or
EB6 module
AUI cable
Connector clamp
6F8C0879 49
Chapter 4 Installation and Wiring
4 EN6 module
or
EB6 module
Ethernet connector
T adaptor
EN6 module
Ring or
EB6 module
T adaptor
(Ethernet connector)
3D-2V cable
EN6 module
4
Ethernet connector
6F8C0879 51
Chapter 4 Installation and Wiring
Warning
• Do not connect the 10BASE-T or other interface to the modular connector by mistake. Oth-
erwise, it may cause not only product trouble but also smoke and a fire.
EN6 module
or
EB6 module
EN6 module
4
Serial communication port
(TOOL)
RS-232C
cable
6F8C0879 53
Chapter 4 Installation and Wiring
Warning
• Be sure to use the special +12 VDC power cable supplied with the product.
• Make sure of the polarities in connecting the +12 VDC power cable. Otherwise, it may
cause not only product trouble, but smoke and a fire.
• Do not apply 100 VAC to the +12 VDC power cable by mistake. Otherwise, it may cause
4 smoke or a fire.
Caution
• Use a separate power source to supply power to the 12 VDC power connector CN2 on each
Ethernet module. In cases where it is not possible to use separate power sources, wire the
power cable in such a way that each Ethernet module can be separately switched off.
• Use a +12 VDC power supply with a protective circuit.
The EN611, EN621 or EB621 receives an external +12 VDC for AUI transceivers at its
connector CN2 through the +12 V power cable.
The +12 VDC power cable has a crimp terminal 3 mm in diameter. Connect it to the +12
VDC power supply.
Applicable models: EN611, EN621, EB621
EN6
or
EB6 module
+12 VDC
power cable 2P connector (CN2)
for receiving
+12 VDC
・ 12 Vdc
・0V
Caution
• Before replacing a module, switch off the base unit and the +12 VDC power supply, and
make sure that power is off.
When changing the switch settings on a module or when it has failed, replace the module 4
4.6.1 10BASE5 (EN611, EN621, EB621)
(1) Switch off the base unit and the +12 VDC power supply. Check the LED indications
to make sure that the power is off.
(2) Disconnect the +12 VDC power cable from the connector CN2 on the EN6 or EB6
module to be replaced.
(3) Remove the two M3 screws on the connector clamp that fastens the AUI cable
connector, using a Phillips screwdriver.
(4) Push up the slide lock to unlock the D-sub connector to which the AUI cable is
connected, then disconnect the AUI cable.
If a double Ethernet module (EN621) is used, disconnect the AUI cables from both
buses A and B.
(5) If an Ethernet module (EN621/EB621) for dual line configuration is used, disconnect
the modular connector CN1 on the module to be replaced.
(6) Set the switches on the new EN6 in the same way as those on the removed EN6.
(No switch setting is necessary on the EB6.)
(7) After installing the new EN6 or EB6 in the base unit, connect the cable to it. For how
to install new EN6 and EB6 modules, refer to [4.2 Ethernet Cable Connection] and
[4.5 12 VDC Power Cable Connection] in the preceding section on installation.
(8) It is necessary that network parameters are downloaded, when [Setting from Tool] is
used or multicast address setting is done. Download the parameters with connecting
Engineering Tool to serial communication port (Tool) of EN6 module. (Download form
Ethernet is not possible before downloading the parameters.)
(9) After downloading, switch off the base unit connected EN6 module again.
(10)Confirming the base units power is off, connect cables.
6F8C0879 55
Chapter 4 Installation and Wiring
EN6 module
Slide lock
Base unit
4
Remove it after checking
AUI cable
that unit power is off.
(Push up slide lock to
disconnect the cable.) Disconnect +12 V power
cable after switching
power off.
CAUTION
• When replacing a 10BASE2 module (EN631 or EN641), do not disconnect the 10BASE2
cable (3D-2V) from the T-adapter. If it is disconnected, the trunk line of the surveillance and
control network will be disconnected, causing an transmission error.
(1) Switch off the base unit. Check the LED indications to make sure that the power is
off.
Turn the T-adapter on the EN6 module counterclockwise to unlock it, then remove it.
Never disconnect the 10BASE2 cable (3D-2V) cable from the T-adapter.
If a dual Ethernet module (EN621) is used, disconnect the T-adapters for both buses
A and B.
(2) If an Ethernet module (EN641/EB641) for dual line configuration is used, disconnect
the modular connector CN1 on the module to be replaced.
(3) Loosen the M4 screws on top and bottom of the module, using a Phillips screwdriver,
and remove the module along the module guide of the base unit.
(4) Set the switches on the new EN6 in the same way as those on the removed EN6.
(No switch setting is necessary on the EB6.)
(5) After installing the new EN6 or EB6 in the base unit, connect the 10BASE2 cable to it.
For how to install new EN6 and EB6 modules, refer to [4.2 Ethernet Cable
Connection] in the preceding section on installation.
(6) It is necessary that network parameters are downloaded, when [Setting from Tool] is
used or multicast address setting is done. Download the parameters with connecting
Engineering Tool to serial communication port (Tool) of EN6 module. (Download form
Ethernet is not possible before downloading the parameters.)
(7) After downloading, switch off the base unit connected EN6 module again.
(8) Confirming the base units power is off, connect cables.
Base unit
4
EN6 module
3D-2V cable
Remove it after checking
that unit power is off.
Turn T-adapter ring
counterclockwise and
remove T-adapter.
Do not disconnect 3D-2V
cable from T-adapter.
6F8C0879 57
Chapter 4 Installation and Wiring
Base unit
4 EN6 module
Remove it after
checking that unit power
is off.
The switches on the product have already been set to suit the system during local
adjustment. To ensure normal operation, do not change the settings except for the
switches that are necessary for you to operate.
Caution
• Wrong switch settings prevent the product from normal operation. Carefully read this Opera-
tion Manual and make sure never to set the switches wrong.
• If power cannot be switched on or if other kind of trouble occurs, stop use and contact the
Toshiba service office concerned.
• If you have any question, contact the Toshiba service office concerned.
6F8C0879 59
Chapter 5 Operation
5
5.2 Starting
The system starts operating automatically when power is switched on.
When the EN6 modules start, check that they are operating normally, referring to Table
2-1 (page 10) in Chapter 2.
If the modules fail to start, or if their operation is not normal, stop use and contact the
nearest Toshiba service office.
5.3 Stopping
The system stops when power is switched off.
Maintenance and inspection covers daily inspection, periodic inspection, and cleaning.
Warning
• For safety, do not touch the insides of the product.
Caution
• The static charged in the human body may cause the product to fail. Before touching the
product as in cleaning it, discharge the static from the human body.
• When cleaning the product, be careful not to change the switch settings of the product. Also
take care not to subject the cables, etc. to stress.
• If the cables, etc. are subjected to stress by touch, for example, it may cause the product to
malfunction or other trouble.
• If power cannot be switched on or if other kind of trouble occurs, stop use and contact the
Toshiba service office concerned.
• If you have any question, contact the Toshiba service office concerned.
6F8C0879 61
Chapter 6 Maintenance and Inspection
6.1 Inspection
6.1.1 Daily inspection
Take the following steps in daily inspection.
Front Panel
(1) LED
Check each LED that it is not difficult to see. If it is, clean it with a soft cloth.
Exercise care not to change the switch positions.
(2) Ethernet connector
Check the connector that it is connected as specified in the Manual for Monitoring
and Control Network Installation and Wiring (6F8C0880) and that the cable
connection is normal.
(a) EN611, EN621, EB621 (10BASE5)
Ventilation holes
Check the front panel and top of the product that the ventilation holes are free of dust and
dirt. If the ventilation holes are clogged up with dust or dirt, remove it with a vacuum
cleaner, for example, then clean them with a soft cloth.
Indoor environment
Check the place where the product is installed that its temperature and humidity meet the
specified temperature and humidity ranges of the product (Table A-1, page 79)
6F8C0879 63
Chapter 6 Maintenance and Inspection
6.2 Troubleshooting
If the LEDs that indicate the status of the product show other than the normal indications
specified in Table 2-1 (page 10) in Chapter 2, or if an error is detected at a human
interface station, stop using the product and contact the nearest Toshiba service office
concerned.
For troubleshooting with the LEDs, see [Table 6-1 Troubleshooting with LEDs Item].
For how to read RAS data, system logs, etc., refer to the Operation Manual for the
Engineering Tool.
Table 6-1 Troubleshooting with LEDs Item
LED indication
Item Status Step to be taken
RUN HLTH L-A L-B
Normal ON ON Blink or ON Blink or ON Normal –
operation
WDT Blink ON Blink or ON Blink or ON Wrong setting Enable WDT with
Note: The memory backup time of the Ethernet module varies depending on the ambi-
ent module temperature as follows:
EN611, EN621, EN631, EN641: 24 hours or more (at 25 oC)
EN651, EN661: 7 hours or more (at 25 oC)
EN651A: 20 hours or more (at 25 oC)
Because the information may become lost if power is switched off for a long time, collect
it as soon as possible using the Engineering tool or general-purpose serial
communication software (Hyper Terminal, an accessory to Windows, for example)
If you can not read data normally by serial communication, read back again.
In that case the log about serial communication may be traced.
Remember, however, that the backed up information is RAS data, system log, etc., and
does not include control data. Therefore, operation at restart will not be adversely
affected.
6F8C0879 65
Chapter 7 Application Interface
The EN6 modules provide status information on each of the sockets used by a user
application and diagnostic information on the transmission lines connected to the EN6
modules in the network through the station bus. Information on each socket comes in two
types: single Ethernet socket information and dual Ethernet socket information. (If the
dual Ethernet modules - EN621, EN641, EN661 - are used with single Ethernet sockets,
refer to single Ethernet socket information.) Addresses are different on the station bus
through which each block of status information is provided.
Application information on the station bus has the structure shown below.
The user application of the S/L controller refers to socket information on the basis of
access from the S/L controller. It is expressed in words. CntBase varies in value
depending on the slot where an EN6 module is installed. Mounting slot values are shown
in a later item.
The number of sockets user can use are as follows.
EN611, EN621, EN631, EN641 : 24
EN651, EN651A, EN661: 48
Above the numbers are on single socket interface. They become half on dual socket
interface.
Note: It is prohibited to use single and dual socket interface at the same time.
6F8C0879 67
Chapter 7 Application Interface
F E D C B A 9 8 0
TCP UDP AOP POP CON RCV RCL reserve
Conditions where each of the following bits takes the value "1"
TCP: Single Ethernet socket TCP used
UDP: Single Ethernet socket UDP used
AOP: Single Ethernet socket active open (TCP only)
POP: Single Ethernet socket passive open (TCP only)
CON: Single Ethernet being connected (TCP only)
Conditions where each of the following bits takes the value "0"
TCP: Single Ethernet socket close requested
UDP: Single Ethernet socket close requested
AOP: Single Ethernet socket close requested
POP: Single Ethernet socket close requested
CON: Single Ethernet socket close requested or disconnected by opposite station
RCV: No data received
RCL: Single Ethernet socket close requested
The station bus addresses to which single Ethernet socket information is supplied are
shown in word addresses.
Word offset
Socket 0 130944
Socket 1 130945
Socket 2 130946
.
.
Socket 46 130990
Socket 47 130991
The station bus base addresses vary depending on the slot where an EN6 module is
installed. The top word addresses of single Ethernet socket information in cases where
an EN6 module is installed in each slot are shown below.
6F8C0879 69
Chapter 7 Application Interface
F E D C B A 9 8 0
TCP UDP AOP POP CON RCV RCL reserve
Conditions where each of the following bits takes the value "1"
TCP: Dual Ethernet socket TCP used
UDP: Dual Ethernet socket UDP used
AOP: Dual Ethernet socket active open (TCP only)
POP: Dual Ethernet socket passive open (TCP only)
CON: Dual Ethernet being connected (TCP only)
RCV: Data received
RCL: Disconnected by opposite station during connection process (TCP only)
7 Conditions where each of the following bits takes the value "0"
TCP: Dual Ethernet socket close requested
UDP: Dual Ethernet socket close requested
AOP: Dual Ethernet socket close requested
POP: Dual Ethernet socket close requested
CON: Dual Ethernet socket close requested or disconnected by opposite station
RCV: No data received
RCL: Socket close requested
The station bus addresses to which dual Ethernet socket information is supplied are
shown in word addresses.
Word offset
Socket 0 130784
Socket 1 130785
Socket 2 130786
.
.
Socket 22 130806
Socket 23 130807
The station bus base addresses vary depending on the slot where an EN6 module is
installed. The top word addresses of dual Ethernet socket information in cases where an
EN6 module is installed in each slot are shown below.
Base Address
Top of Dual Ethernet Symbol name on 7
Socket Information Engineering Tool
Slot 0 0 %MW13.130784 EN_SOCKET2_0
Slot 1 524288 %MW13.655072 EN_SOCKET2_1
Slot 2 1048576 %MW13.1179360 EN_SOCKET2_2
Slot 3 1572864 %MW13.1703648 EN_SOCKET2_3
Slot 4 2097152 %MW13.2227936 EN_SOCKET2_4
Slot 5 2621440 %MW13.2752224 EN_SOCKET2_5
Slot 6 3145728 %MW13.3276512 EN_SOCKET2_6
Slot 7 3670016 %MW13.3800800 EN_SOCKET2_7
6F8C0879 71
Chapter 7 Application Interface
Socket information
socket (*1)
<TCP>=1
TCP open request bind
(Command:35H, kind=1)
listen
socket
7 <TCP>=1
select
bind
is closed by instruction)
recv
<RCV>=0
(Note: RCV ON if data is received,
close
All bits=0
Note: When a running controller is halted (RUN -> HALT), the controller basic software
requests the socket used by the controller to be closed.
A timing chart of setting and clearing each bit of socket information is shown below.
Socket information
Passive
<TCP>
<AOP>
<POP>
<CON>
<RCV>
<RCL>
7
Open Receive Close
request request request
accept
connect
Active
<TCP>
<AOP>
<POP>
<CON>
<RCV>
<RCL>
6F8C0879 73
Chapter 7 Application Interface
・ ・ ・
Transmission line diagnosis information on a dual transmission line system covers both
Lines A and B.
If stations are of a dual configuration, diagnostic processing takes place in the EN6
modules of both online and standby systems to verify transmission line compatibility.
Even if there is a station changeover between the online and standby systems, node
diagnosis continues.
Word offset
Line A information 130912 - 130927
Line B information 130928 - 130943
Base addresses of individual slots and addresses of module slots for socket 0
information
Symbol name on
Base Address Top of Line A Information
Engineering Tool
Slot 0 0 %MW13.130912 EN_NODEMAPA_0
Slot 1 524288 %MW13.655200 EN_NODEMAPA_1
Slot 2 1048576 %MW13.1179488 EN_NODEMAPA_2
Slot 3 1572864 %MW13.1703776 EN_NODEMAPA_3 7
Slot 4 2097152 %MW13.2228064 EN_NODEMAPA_4
Slot 5 2621440 %MW13.2752352 EN_NODEMAPA_5
Slot 6 3145728 %MW13.3276640 EN_NODEMAPA_6
Slot 7 3670016 %MW13.3800928 EN_NODEMAPA_7
6F8C0879 75
Chapter 7 Application Interface
7 04H
08H
InvokeID
Size
(Note2)
1024 fixed
1036bytes 0CH IP address (Note3) Line A IP address(Little Endian)
(40CH)
10H data (Note4)
.
.
.
408H
Note: This format does not include the protocal header of UDP, IP, etc.
The EN modules sends a diagnosis message to each other every 10 seconds for
diagnosis.
Computers can also be added as objects of diagnosis by sending a diagnosis message
using an application. (A dual-line network sends a message of the same content to both
lines A and B every 10 seconds.) Observe the message transmission interval of 10
second. A shorter interval will increase network traffic, while a longer interval may result
in receiving no diagnostic frame.
Each transmission line will be diagnosed normal when data is received from Line A/B.
Thus, whether data is received or not is the basis of judging a transmission line normal or
otherwise. In sending a diagnostic frame, be sure to observe the format mentioned.
+18H
(Communication processing task level)
Normal transmission request to Ethernet controller
7
(Ethernet driver level)
+1CH Illegal transmission request to Ethernet controller
(Ethernet driver level)
+20H Unicast packet receive counter (IP layer)
+24H Multicast packet receive counter (IP layer)
+28H Broadcast packet receive counter (IP layer)
+2CH Discard packet counter (IP layer)
+30H Normal Ethernet buffer allocation counter
+34H Illegal Ethernet buffer allocation counter
+38H Remaining Ethernet buffer count
6F8C0879 77
Chapter 7 Application Interface
Table A-1 General Specifications (EN611, EN621, EN631, EN641, EB621, EB641)
Specifications
Item
EN611 EN621 EN631 EN641 EB621 EB641
Working temperature range 0 to 55oC
(Product ambient temperature)
Working humidity range 10 to 95% RH (No condensation)
Storage temperature range -25 to 70oC
Storage humidity range 5 to 95% RH (No condensation)
Source voltage range 4.75 to 5.25 VDC (Rated:5.0VDC)
3.0V to 3.6VDC (Rated:3.3VDC)
Current drain 1.1 A 1.3 A 1.5A 1.7 A 0.01 A 0.5A
(at rated power input) (5.0VDC) (5.0 VDC) (5.0VDC) (5.0 VDC) (+12 VDC) (5.0 VDC)
with EB621 with EB641 (Note)
Power consumption 6.5W or less 7.5 W or less 8.6W or less 9.6 W or less 0.12 W or 2.5 W or less
(at rated power input) with EB621 with EB641 less
Insulation resistance 10 megohms or more
(between signal and F.G.)
Dielectric strength 500 VAC for 1 minute
(between signal and F.G.)
Dust 0.3 mg/m3 or less
Vibration resistance 4.9m/s2 1.5mmp-p
Shock resistance 19.6m/s2 (3 times without power supply)
Grounding Class D (Grounding resistance: 100 ohms or less)
Cooling Natural air cooling
Module dimensions 130 (H) × 35 (W) × 114 (D) mm
Weight 350g or less 350g or less 350g or less 350g or less 250g or less 250g or less
Communication interface 10BASE5 10BASE5 10BASE2 10BASE2 10BASE2 10BASE2
Single bus Dual bus Single bus Dual bus Dual bus Dual bus
(Bus A) (Bus A) (Bus B) (Bus B)
Backup • Backup memory: SRAM 512 kilobytes
• Backup time : 24 hours or more (at ambient temperature of 25oC)
+12 VDC external power +12.0 VDC +/-5%, 0.5 A/ch maximum (Applicable to EN611, EN621, EB621)
6F8C0879 79
Appendix A Specifications
6F8C0879 81
Appendix A Specifications
External views of EN6 and EB6 modules are shown with dimensions below.
[mm]
6F8C0879 83
Appendix C Related Products
Note 1: The maximum length the drop cable for line-B modules is 3 m.
(The standard cable supplied with the product is 70 mm long.).
Note 2: The standard length of +12 VDC power cable is 0.5 m.
6F8C0879 85
Appendix C Related Products
AUI15- [ ] M
Length in meters (Example: 5= 5m)
Note 4: When you order an RS-232C cable, specify the desired length.
GCJ6 [ ][ ] *CS
Length in meters (Example: 03= 3m)
6F8C0879 87
Appendix E Sample Programs
For your reference, simple examples of message transmission programs are shown
below.
Use communication FBs, USEND_T and URCV_T, for these purposes.
For a detailed description of communication FBs, refer to the Instruction Manual for S/L
Controllers (6F8C0865).
STN1 STN2
0 1 2 3 4 0 1 2 3 4 (slot number)
Ethernet
Ethernet
S S
2 2
172.16.64.7 172.16.64.4
The program shown here for reference sends data from S3 of STN1 through the Ethernet
UDP port 20013 of STN1 to S2 of STN2 where the data is received through the Ethernet
UDP port 20013.
6F8C0879 89
Appendix E Sample Programs
VAR
OPEN_COMPLETE: BOOL;
OPEN_ERROR: BOOL;
OPEN_REQ: BOOL;
TX_COMPLETE: BOOL;
TX_ERROR: BOOL;
TX_REQ: BOOL;
OPEN_STATUS1: INT;
USEND_T_1: USEND_T;
USEND_T_2: USEND_T;
SEND_STATUS: INT;
US_DUMMY1: WORD;
US_DUMMY2: UINT;
US_SIZE: UNIT;
US_DAT:FARRAY[0..511] OF WORD;
U_O: typeUDP_OPEN;
U_S: typeUDP_SEND_BC;
U_C: typeUDP_CLOSE;
END_VAR
OPEN_
COMPLETE OPEN_ERROR OPEN_REQ
USEND_T_1
USEND_T OPEN_COMPLETE
OPEN_REQ
REQ
DONE S
U_O
OPEN_ERROR
LD CMD
ERROR
US_DUMMY1
OPEN_STATUS1
LD P
STATUS ST
US_DUMMY2
LD N
OPEN_STATUS1 U_S.Socket
MOVE_INT
LD ST
OPEN_
COMPLETE TX_ERROR TX_COMPLETE CLOSE_REQ TX_REQ
USEND_T_2
TX_REQ USEND_T TX_COMPLETE
REQ
DONE
TX_ERROR
U_S
LD CMD
ERROR
US_DATA[0] SEND_STATUS
LD P ST
STATUS
US_SIZE
LD N E
6F8C0879 91
Appendix E Sample Programs
VAR
OPEN_COMPLETE: BOOL;
OPEN_ERROR: BOOL;
OPEN_REQ: BOOL;
RX_COMPLETE: BOOL;
RX_ERROR: BOOL;
RX_REQ: BOOL;
CLOSE_COMPLETE: BOOL;
CLOSE_ERROR: BOOL;
CLOSE_REQ: BOOL;
RCV_STATUS: INT;
CLOSE_STATUS: INT;
UR_DUMMY1: WORD;
UR_DUMMY2: UINT;
UR_SIZE: UNIT;
UR_DATA:ARRAY[0..512] OF WORD;
URCV_T_1: WORD;
USEND_T_1: USEND_T;
OPEN_STATUS1: INT;
U_O: typeUDP_OPEN;
U_R: typeUDP_RCV_BC;
U_C: typeUDP_CLOSE;
T_SK_CMD: typeTCP_SEND;
T_SOCKET: URCV_T;
T_SK_REQ: BOOL;
T_SK_COMP: BOOL;
T_SK_ERR: BOOL;
T_SK: INT;
T_SK_SOCKET: INT;
T_SK_DT: WORD;
RX_TRG: BOOL;
END_VAR
E
OPEN_
COMPLETE OPEN_ERROR OPEN_REQ
USEND_T_1
USEND_T OPEN_COMPLETE
OPEN_REQ
REQ
DONE S
U_O
OPEN_ERROR
LD CMD
ERROR
UR_DUMMY1
OPEN_STATUS1
LD P
STATUS ST
UR_DUMMY2
LD N
OPEN_
COMPLETE
T_SOCKET
OPEN_
URCV_T
COMPLETE T_SK_COMP T_SK_ERR T_SK_REQ T_SK_REQ T_SK_COMP
REQ
DONE
S
T_SK_ERR
T_SK_CMD
LD CMD
ERROR
T_SK T_SK_SOCKET
LD P ST
STATUS
0
LD N
XI
4
UINT_TO_WORD WORD_TO_INT INT_TO_DINT MUL_DINT ADD_DINT
LD ST
16#0400 16#0400
LD LD
6F8C0879 93
Appendix E Sample Programs
OPEN_STATUS1 U_R.Socket
MOVE_INT
LD ST
OPEN_
COMPLETE RX_TRG RX_COMPLETE RX_ ERROR CLOSE_REQ RX_REQ
URCVD_T_1
URCV_T
RX_REQ RX_COMPLETE
REQ
DONE
RX_ERROR
U_R
LD CMD
ERROR
UR_DATA[0] RCV_STATUS
LD P ST
STATUS
/* UR_DATA[0] is the receiving data byte size. */
/* It is the receiving data from UR_DATA[1]. */
UR_SIZE
LD N
USEND_T_3
USEND_T
CLOSE_REQ CLOSE_COMPLETE
REQ
DONE
CLOSE_REQ
CLOSE_ERROR
U_C
LD CMD
ERROR
R
DUMMY CLOSE_STATUS1
LD P ST
STATUS
DUMMY
LD N
STN1 STN2
0 1 2 3 4 0 1 2 3 4 (slot number)
Ethernet
Ethernet
S S
2 2
172.16.64.7 172.16.64.4
The program shown here for reference sends data from S3 of STN1 through the Ethernet
TCP port 30004 of STN1 to S2 of STN2 where the data is received through the Ethernet
TCP port 30003.
VAR
OPEN_COMPLETE: BOOL;
OPEN_ERROR: BOOL;
OPEN_REQ: BOOL;
TX_COMPLETE: BOOL;
TX_ERROR: BOOL;
TX_REQ: BOOL;
OPEN_STATUS1: INT;
TS_DUMMY: WORD;
USEND_T_1: USEND_T;
USEND_T_2: USEND_T;
SEND_STATUS: INT;
CLOSE_REQ: BOOL;
TS_DATA:ARRAY[0..511] OF WORD;
T_O: typeTCP_OPEN;
T_S: typeTCP_SEND; E
END_VAR
6F8C0879 95
Appendix E Sample Programs
0 T_O.TimeUp
MOVE_UINT
LD ST
OPEN_
COMPLETE OPEN_ERROR OPEN_REQ
USEND_T_1
USEND_T OPEN_COMPLETE
OPEN_REQ
REQ
DONE S
T_O
OPEN_ERROR
LD CMD
ERROR
TS_DUMMY
OPEN_STATUS1
LD P
STATUS ST
16#0
LD N
OPEN_ CLOSE_
COMPLETE TX_ERROR TX_COMPLETE COMPLETE TX_REQ
USEND_T_2
TX_REQ USEND_T TX_COMPLETE
REQ
DONE
TX_ERROR
T_S
LD CMD
ERROR
TS_DATA[0] SEND_STATUS
LD P ST
STATUS
16#200
E LD N
VAR
OPEN_COMPLETE: BOOL;
OPEN_ERROR: BOOL;
OPEN_REQ: BOOL;
RX_COMPLETE: BOOL;
RX_ERROR: BOOL;
RX_REQ: BOOL;
CLOSE_COMPLETE: BOOL;
CLOSE_ERROR: BOOL;
CLOSE_REQ: BOOL;
RCV_STATUS: INT;
CLOSE_STATUS: INT;
TR_DATA:ARRAY[0..512] OF WORD;
T_O: typeTCP_OPEN;
T_R: typeTCP_RCV;
T_C: typeTCP_CLOSE;
URCV_T_1: URCV_T;
USEND_T_1: USEND_T;
OPEN_STATUS1: INT;
TR_DUMMY: WORD;
T_SK_CMD: typeTCP_SEND;
T_SOCKET: URCV_T;
T_SK_REQ: BOOL;
T_SK_COMP: BOOL;
T_SK_ERR: BOOL;
T_SK: INT;
T_SK_SOCKET: INT;
T_SK_DT: WORD;
RX_TRG: BOOL;
END_VAR
6F8C0879 97
Appendix E Sample Programs
0 T_O.TimeUp
MOVE_UINT
LD ST
OPEN_
COMPLETE OPEN_ERROR OPEN_REQ
USEND_T_1
USEND_T OPEN_COMPLETE
OPEN_REQ
REQ
DONE S
T_O
OPEN_ERROR
LD CMD
ERROR
TR_DUMMY
OPEN_STATUS1
LD P
STATUS ST
16#0
LD N
OPEN_
COMPLETE
T_SOCKET
OPEN_
URCV_T
COMPLETE T_SK_COMP T_SK_ERR T_SK_REQ T_SK_REQ T_SK_COMP
REQ
DONE
S
T_SK_ERR
T_SK_CMD
LD CMD
ERROR
T_SK T_SK_SOCKET
LD P ST
STATUS
0
LD N
E 4
UINT_TO_WORD WORD_TO_INT INT_TO_DINT MUL_DINT ADD_DINT
XI
LD ST
RX_TRG
T_SK_DT
AND_WORD EQ_WORD
LD
16#0400 16#0400
LD LD
OPEN_
COMPLETE RX_TRG RX_COMPLETE TX_ ERROR CLOSE_REQ RX_REQ
URCV_T_1
URCV_T
RX_REQ RX_COMPLETE
REQ
DONE
RX_ERROR
T_R
LD CMD
ERROR
TR_DATA[0] RCV_STATUS
LD P ST
STATUS
/* TR_DATA[0] is the receiving data byte size. */
16#201 /* It is the receiving data from TR_DATA[1]. */
LD N
USEND_T_3
USEND_T
CLOSE_REQ CLOSE_COMPLETE
REQ
DONE
CLOSE_REQ
CLOSE_ERROR
T_C
LD CMD
ERROR
R
DUMMY CLOSE_STATUS1
LD P ST
STATUS
DUMMY
LD N
6F8C0879 99
Appendix F Return Code List
6F8C0879 101
Appendix F Return Code List
Communication Return
Description
Procedure Value
• ACCEPT
ENOBUFS -15 Resource short
EBADF -16 Socket identifier not valid
EWOULDBLOCK -18 Socket set in asynchronous I/O mode, no socket waiting for
connection
EOPNOTSUPP -56 Specified socket not SOCK_STREAM type
EPROTO -71 Protocol error
• BIND
EBADF -16 Socket identifier not valid
EFAULT -17 Parameter (addr or addrlen) not in valid user address
space
EAFNOSUPPORT -58 Specified address family not supported
EADDRINUSE -59 Given address already used
EADDRNOTAVAIL -60 Given address unusable in the system
• CLOSE
EBADF -16 Socket identifier not valid
• CONNECT
EHOSTUNREACH -11 Connecting destination IP address incorrect
ETIMEDOUT -12 Timeout. Connection not established after waiting for
specified time
EBADF -16 Socket identifier not valid
EINVAL -22 Already bound
EDESTADDRREQ -50 Parameters (name, namelen) incorrect
EAFNOSUPPORT -58 Specified address family not supported
EADDRNOTAVAIL -60 Given address unusable in the system
EISCONN -67 Socket connected already
• LISTEN
EBADF -16 Socket identifier not valid
EINVAL -22 Parameter incorrect
EOPNOTSUPP -56 Socket not type to support listen
• RECV
• RECVFROM
ETIMEDOUT -12 Timeout
F ECONNABORTED -14 Disconnected in local system
EBADF -16 Socket identifier not valid
EFAULT -17 Parameter (buffer pointer) incorrect
EWOULDBLOCK -18 No data to receive
EPIPE -32 Disconnected
EOPNOTSUPP -56 Specified operation not supported by that socket
• SELECT
EBADF -16 One of the socket identifiers specified by bit mask is
incorrect.
6F8C0879 103
Appendix G Option switch List
Note: The modules except for EN651A perform SNMP agent function in default setting.
6F8C0879 105
INDEX
Index
Expendable parts 65
NUMBER
10BASE2 1 G
10BASE5 1
General specifications 79
12 VDC power receiving terminal
board 11 For dual bus 1
For single bus 1
A
I
AUI cable 49
IEEE802.3 1
IP address type 18
C IRCP 3, 82
Base unit 1 Host ID 13, 14, 19, 25, 27, 60
Hub 3
E
EB621 7
M
EB641 8 Memory backup 64
EN651 9 Multicast 3, 19, 24, 25, 82
EN651A 9 Multihost 3, 82
EN661 9 Multiport 3, 82
EN711 7
EN721 7
O
EN731 8
EN741 8 Network ID 21
Electrical repeater 3 Network parameter 18
Engineering tool 18, 19, 24, Operation mode 18
25, 30, 33, 60, 64 Operation mode setting switch
Download 18 11, 15, 16, 19, 60
Drop cable connector 7, 8 Optical repeater 3
Ethernet 10
Ethernet transmission specifications
81
6F8C0879 107
INDEX
Q
PCMP 3, 82
Periodic inspection 63
Protocol 3
S
RS-232C 18
Segment 3
Serial communication port 11
Serial communication port (RS-
232C) transmission specifications
82
Status indicator LED 10
Subnet mask 21, 27, 33
U
TCP/UDP/IP 3, 82
Test program 18
T-type adapter 56, 57, 85