null  null
SECTION 4
System Setup and Memory Allocations
This section explains the System Setup and the words allocated in the CIO Area and the DM Area for Ethernet Units.
4-1
4-2
4-3
4-4
Allocated Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CPU Bus Unit System Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2-1 Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2-2 Mail Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CIO Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DM Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
Section
Allocated Words
4-1
4-1
Allocated Words
The Ethernet Unit is allocated words in the the following three areas for reading
settings and status.
• System Setup for CPU Bus Units
Stores initial setup for the Ethernet node.
• Allocated Words in the CIO Area
Stores software switches and status information for functions.
• Allocated Words in the DM Area
Stores software switch and status information for functions.
CPU Unit
Ethernet Unit
CPU Bus Unit System Setup
(Set using CX-Programmer.)
Transferred
when power
supply is turned
ON or Unit is
restarted.
Allocated Words in CIO Area for
CPU Bus Units
n = CIO 1500 + 25 x unit number
15
0
n
15
0
15
0
I/O refresh
n+1
n + 24
Allocated Words in DM Area for
CPU Bus Units
n = D30000 + 100 x unit number
0
15
m
m+1
I/O refresh
m + 99
The words in the CIO Area and DM Area are allocated according to the unit number as shown in the following tables. The 25 words are allocated per Unit in the
CIO Area and 100 word are allocated per Unit in the DM Area.
42
Section
CPU Bus Unit System Setup
4-2
CIO Area Allocations
Unit No.
(decimal)
Allocated words
Unit No.
(decimal)
Allocated words
0 (0)
CIO 1500 to CIO 1524
8 (8)
CIO 1700 to CIO 1724
1 (1)
CIO 1525 to CIO 1549
9 (9)
CIO 1725 to CIO 1749
2 (2)
CIO 1550 to CIO 1574
A (10)
CIO 1750 to CIO 1774
3 (3)
CIO 1575 to CIO 1599
B (11)
CIO 1775 to CIO 1799
4 (4)
CIO 1600 to CIO 1624
C (12)
CIO 1800 to CIO 1824
5 (5)
CIO 1625 to CIO 1649
D (13)
CIO 1825 to CIO 1849
6 (6)
CIO 1650 to CIO 1674
E (14)
CIO 1850 to CIO 1874
7 (7)
CIO 1675 to CIO 1699
F (15)
CIO 1875 to CIO 1899
DM Area Allocations
Unit No.
(decimal)
4-2
Allocated words
Unit No.
(decimal)
Allocated words
0 (0)
D30000 to D30099
8 (8)
D30800 to D30899
1 (1)
D30100 to D30199
9 (9)
D30900 to D30999
2 (2)
D30200 to D30299
A (10)
D31000 to D31099
3 (3)
D30300 to D30399
B (11)
D31100 to D31199
4 (4)
D30400 to D30499
C (12)
D31200 to D31299
5 (5)
D30500 to D30599
D (13)
D31300 to D31399
6 (6)
D30600 to D30699
E (14)
D31400 to D31499
7 (7)
D30700 to D30799
F (15)
D31500 to D31599
CPU Bus Unit System Setup
To operate the Ethernet Unit as a node on an Ethernet network, the required parameters must be set in the CPU Bus Unit System Setup, part of the CPU Unit’s
Parameter Areas. If any of the following items apply, then the system parameters must be set.
• Either the IP address table or both the IP address table and automatic address
generation are used as the destination IP address conversion method.
• Transmissions are broadcast using a host number set to all zeroes as the
broadcast address (when UNIX 4.2BSD specifications are used for the broadcast address).
• The FINS UDP port number is set to a value other than 9600.
• A subnet mask other than the one determined from the IP address is set.
• A login name other than CONFIDENTIAL is used for the FTP server function.
• Communications between segments are required.
• The mail function is used.
Newly set parameters go into effect after the Ethernet Unit has been restarted or
after the CPU Unit is started again.
The settings are made using the CX-Programmer.
Note The CPU Bus Unit System Setup is located in the CPU Unit’s Parameter Area,
and not in I/O Memory; parameters cannot be written using instructions or by
editing I/O Memory. The settings can be made only using the CX-Programmer.
43
Section
CPU Bus Unit System Setup
4-2
4-2-1 Settings
Item
CX-Programmer default
Broadcast setting
All 1s (4.3BSD specifications)
Address conversion method
Automatic address generation
FINS UDP port number
9600
Subnet mask
0.0.0.0 (A value corresponding to the IP
address is used.)
FTP login name
Not set. (CONFIDENTIAL)
FTP password
Not set.
IP address table
Not set.
IP router table
Not set.
Broadcast Settings
Set the method for specifying the broadcast address.
Setting
Meaning
All 1s (4.3BSD) (Default)
All 0s (4.2BSD)
Broadcast with host number set to all ones. (4.3BSD
specifications)
Broadcast with host number set to all zeroes. (4.2BSD
specifications)
Address Conversion Method
Set the method for converting the FINS node number to an IP address.
Setting
Meaning
Automatic generation
(Default)
Uses automatic address generation. The IP address is
automatically generated from the FINS node number
without using an IP address table.
IP address table
Uses an IP address table.
Combined
Uses both automatic address generation and an I/O
address table.
Automatic Address Generation
With the automatic generation, the FINS node number is regarded as the host
number of the IP address, just as it is.
Destination IP address = (Local IP address and subnet mask) + Destination
FINS node number)
Example
Local IP address:
130.25.36.8
Subnet mask:
255.255.0.0
Destination FINS node number: 5
→ Destination IP address = 130.25.0.5
Note When using automatic address generation (the default) for address conversion,
set local IP address DIP switches 7 and 8 on the back of the Ethernet Unit to the
same value as the node number setting on the front of the Unit, and set all other
host settings to 0. If the IP address host number does not match the node number, the ERC indicator will flash.
IP Address Table
With an IP address table, the address is converted according to a preset table of
correspondences (i.e., an IP address table) between FINS node numbers and
IP addresses.
The following is an example of an IP address table.
Destination FINS address
44
IP address
FINS node
number
11
150.31.2.83
23
150.31.3.68
Destination IP address
Section
CPU Bus Unit System Setup
4-2
FINS messages addressed to FINS node number 23 are sent to the node with IP
address 150.31.3.68.
Automatic Address Generation and IP Address Table
With the combined method, first the IP address table is referenced. If the applicable node is not registered, then the automatic address generation method is
used.
FINS UDP Port Number
Set the method for specifying the UDP port number for FINS communications.
Setting
Meaning
9600 (Default)
Uses the default value of 9600.
User-defined
Uses the input value (from 1 to 65535).
Subnet Mask
Set all bits in the subnet mask that correspond to the bits in the IP address used
for the network number and the bits used for the subnet number to “1,” and set all
bits in the subnet mask that correspond to the bits in the IP address used for the
host number to “0”. The subnet mask must be set only when configuring a system which includes subnetworks.
If no subnet mask is set, the subnet mask will be automatically set to one of the
following values, depending on the local IP address setting:
Class
Subnet mask value
Class-A IP address
255.0.0.0
Class-B IP address
255.255.0.0
Class-C IP address
255.255.255.0
The default is 0.0.0.0. (A value corresponding to the IP address class is used.)
FTP Login Name
Enter the user’s FTP server login name using up to 12 characters. Alphanumeric
characters, hyphens, commas, quotation marks, and underlines can be used in
login name. Once the login name has been set, a password must also be set or
both the FTP login name and FTP password will be invalid.
If the login name is incorrectly specified, or if no login name is specified at all, the
default login name of “CONFIDENTIAL” will be used and no FTP password will
be required. The default is for no FTP login name to be set.
FTP Password
Enter the Unit’s FTP server password using up to eight characters. Alphanumeric characters, hyphens, commas, quotation marks, and underlines can be used
as password characters. If a login name has been set, then a password must
also be set or both the FTP login name and FTP password will be invalid. The
default is for no FTP password to be set.
IP Address Table
This table contains the conversion data used to generate IP addresses from
FINS node numbers when using FINS communications. This table is ignored if
the IP address conversion method is set to automatic generation only. The IP
address table cannot be edited. It is configured as follows by the CX-Programmer:
FINS node number
IP address
11
150.31.2.83
23
150.31.6.68
Setting range: 1 to 126 Setting range: 0.0.0.0 to 255.255.255.255.
Up to 32 records can be registered. The default is for nothing to be set.
For an explanation of how to make the settings, refer to the CX-Programmer
User’s Manual.
45
Section
CPU Bus Unit System Setup
4-2
IP Router Table
The IP router table sets how the Ethernet Unit communicates via the IP router
with nodes on other IP network segments. This table cannot be edited when the
IP address
FINS node number
automatic generation method is used for address conversion.
(Network number)
(Network number)
130.25.36.253
130.26.2.254
IP router
Node A
Node B
The IP router table is configured by the CX-Programmer as shown below. For
the IP network number, set the network number of the other IP network segment
that is to be communicated with. The length of the network number varies depending on the IP address class. Four bytes are provided in the field for setting
the IP network number, so set the network from the beginning and then set 00 in
the remainder.
Settings
The following settings are for node A when network No. 130.26.X.X is connected
by the IP router with IP address 130.25.36.253. (Refer to the preceding diagram.)
IP network number
IP address of IP router
130.26.0.0
130.25.36.253
Setting range: 0.0.0.0 to 255.255.255.255
Setting range: 0.0.0.0 to 255.255.255.0
A maximum of eight records can be registered. The default is for nothing to be
set.
For an explanation of how to make the settings, refer to the CX-Programmer
User’s Manual.
4-2-2 Mail Settings
Item
CX-Programmer default
Mail settings
None set.
User-created mail data address
Not set.
Local mail address
Not set.
Destination mail address
Not set.
SMTP server address
0.0.0.0 (Not set.)
Mail Settings
User Data in User Mail
Specify whether or not user data is to be added to mail contents when mail is
sent by turning ON the Mail Send Switch in the CPU Unit’s I/O Memory. (Refer to
page 51.) The user data is ASCII data stored with the CPU Unit’s I/O memory
address set for the mail function’s user-created mail data address. When user
data is sent, 1,024 bytes or the data up to the null code (00 Hex) will be sent.
Setting
46
Meaning
Not selected (Default)
User data not included in user mail.
Selected
User data included in user mail.
Section
CPU Bus Unit System Setup
4-2
Error Log in User Mail
Specify whether or not all error log information is to be added to mail contents
when mail is sent by turning ON the Mail Send Switch in the CPU Unit’s I/O
Memory. (Refer to Mail Send Switch in 2-2 CIO Area Allocations.)
Setting
Meaning
Not selected (Default)
Error log information not included in user mail.
Selected
Error log information included in user mail.
Status in User Mail
Specify whether or not status information is to be added to mail contents when
mail is sent by turning ON the Mail Send Switch in the CPU Unit’s I/O Memory.
(Refer to Mail Send Switch) in 2-2 CIO Area Allocations.)
Setting
Meaning
Not selected (Default)
Status information not included in user mail.
Selected
Status information included in user mail.
Sending Mail for Errors
Specify whether or not mail is to be sent to a preset mail address whenever an
error is registered in the error log. The following types of data can be specified to
be sent as mail.
• User Data
(Refer to Sending User Data for Errors below.)
• Error Log Information
(Refer to Sending Error Log Information for Errors below.)
• Status Information
(Refer to Sending Status Information for Errors below.)
If none of these types of data is selected, mail will not be sent even if the setting is
made for mail to be sent whenever an error is registered.
Setting
Meaning
Not selected (Default)
Mail not sent when error is registered in error log.
Selected
Mail not sent when error is registered in error log.
Sending User Data for Errors
Specify whether or not user data is to be added to mail contents when mail is
sent whenever an error is registered to the error log.
Setting
Not selected (Default)
Selected
Meaning
User data not included in mail when error is registered to
error log.
User data included in mail when error is registered to
error log.
Sending Error Log Information for Errors
Specify whether or not all error log information is to be added to mail contents
when mail is sent whenever an error is registered to the error log.
Setting
Not selected (Default)
Selected
Meaning
Error log information not included in mail when error is
registered to error log.
Error log information included in mail when error is
registered to error log.
47
Section
CPU Bus Unit System Setup
4-2
Sending Status Information for Errors
Specify whether or not status information is to be added to mail contents when
mail is sent whenever an error is registered to the error log.
Setting
Not selected (Default)
Selected
Meaning
Status information not included in mail when error is
registered to error log.
Status information included in mail when error is
registered to error log.
Periodic Mail
Specify whether or not mail is to be sent at the time intervals set for the mail interval in the mail settings. The following types of data can be specified to be sent as
mail.
• User data
(Refer to Periodic Mail for User Data below.)
• Error log information
(Refer to Perio
dic Mail for Error Log Information below.)
• Status information
(Refer to Periodic Mail for Status Information.)
If none of these types of data is selected, mail will not be sent even if the setting is
made for mail to be sent whenever an error is registered.
Setting
Meaning
Not selected (Default)
Mail is not sent periodically.
Selected
Mail is sent periodically.
Mail Interval
When mail is sent periodically, it is sent at the time interval that is set here. The
setting range is 1 to 1,440, in units of 10 seconds, so the mail can be sent at intervals of from once every 10 seconds to once every 10 days. This setting is only
enabled when the periodic mail setting (see above) is selected.
If the mail interval is set to 0, then mail will not be sent periodically. If it is set to a
value greater than 1,440, it will be processed as 1,440 (10 days).
The default setting is 0 (mail not sent periodically).
Periodic Mail for User Data
Specify whether or not user data is to be added to mail contents when mail is
sent periodically. The user data is ASCII data stored with the CPU Unit’s I/O
memory address set for the mail function’s “user-created mail data address” at
the beginning. (When user data is sent, 1,024 bytes or the data up to the null
code (00 Hex) is transmitted.)
Setting
Meaning
Not selected (Default)
User data not included in periodic mail.
Selected
User data included in periodic mail.
Periodic Mail for Error Log Information
Specify whether or not all error log information (64 records max.) is to be added
to mail contents when mail is sent periodically.
Setting
48
Meaning
Not selected (Default)
Error log information not included in periodic mail.
Selected
Error log information included in periodic mail.
Section
CPU Bus Unit System Setup
4-2
Periodic Mail for Status Information
Specify whether or not status information is to be added to mail contents when
mail is sent periodically.
Setting
Meaning
Not selected (Default)
Status information not included in periodic mail.
Selected
Status information included in periodic mail.
User-created Mail Data
Address
Specify, by area classification and beginning word address, the CPU Unit’s
memory address for the data (user-created information) to be transmitted when
data is sent by user request. The default setting is for no address to be set.
Local Mail Address
In 50 or fewer characters, specify the mail address to be entered in the “From”
field in the mail.
Destination Mail Address
In 50 or fewer characters, specify the address to which the mail is to be sent.
SMTP Server Address
Specify the IP address of the mail server (i.e., the SMTP server address). The
setting range is 0.0.0.0 to 255.255.255.255. The default is 0.0.0.0 (nothing set).
49
Section
CIO Area Allocations
4-3
4-3
CIO Area Allocations
The various kinds of data are stored in the offset positions shown in the following
diagram, from the beginning word in the area for each Unit.
The beginning word n is calculated by the following equation:
Beginning word n = CIO 1500 + (25 x unit number)
Offset
Bit
15
n
8
7
0
Unit Control Switch
n+1
UDP Socket No. 1 Status
n+2
UDP Socket No. 2 Status
n+3
UDP Socket No. 3 Status
n+4
UDP Socket No. 4 Status
n+5
UDP Socket No. 5 Status
n+6
UDP Socket No. 6 Status
n+7
UDP Socket No. 7 Status
n+8
UDP Socket No. 8 Status
nn+9
TCP Socket No. 1 Status
n+10
TCP Socket No. 2 Status
n+11
TCP Socket No. 3 Status
n+12
TCP Socket No. 4 Status
n+13
TCP Socket No. 5 Status
n+14
TCP Socket No. 6 Status
n+15
TCP Socket No. 7 Status
n+16
TCP Socket No. 8 Status
n+17
Service Status
n+18
Data direction
CPU Unit to Ethernet Unit
Socket Service Request Switches 2
Socket Service Request Switches 1
n+20
Socket Service Request Switches 4
Socket Service Request Switches 3
n+21
Socket Service Request Switches 6
Socket Service Request Switches 5
n+22
Socket Service Request Switches 8
Socket Service Request Switches 7
n+23
(Not used.)
n+24+
(Not used.)
Socket Services
(Refer to Section 6
Socket Services.)
Mail Function
(Refer to Section 8 Mail.)
Ethernet Unit to CPU Unit
Socket Services
(Refer to Section 6
Socket Services.)
FTP Service, etc.
All error conditions
Error Status
n+19
Related communications services
CPU Unit to Ethernet Unit
Socket Services
(Refer to Section 6
Socket Services.)
n+25
The following items in the diagram can also be checked using the CX-Programmer.
• The status of UDP/TCP sockets 1 to 8 (Opening Flag, Receiving Flag, Sending
Flag, Closing Flag, Results Storage Error Flag, Socket Open Flag)
• Service status (FTP status)
For explanations of how to use the related communications services listed in the
above diagram, refer to the indicated sections.
50
Section
CIO Area Allocations
4-3
Unit Control Switches (CPU Unit to Ethernet Unit)
15 14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
n
Internode Test Start Switch
Socket Force-close Switch
Mail Send Switch
Bit
0
1
2
3
Switch
Status
(Not used.)
Internode Test Start Switch
Socket Force-close Switch
Mail Send Switch
4 to 15 (Not used.)
Manipulated
by
Unit operation
Reference
---
---
---
--9-3
Internode
Test
ON
User
Executes internode test while ON.
OFF
User
Stops internode test.
ON
User
All sockets are forcibly closed when this
bit turns ON.
OFF
Unit
Turned OFF by Unit after sockets are
closed.
ON
OFF
User
Unit
User mail is sent when this bit turns ON.
Turned OFF by Unit after user mail has
been sent.
8-1-3
S di
Sending
Mail
---
---
---
---
Page 109
Internode Test Start Switch (Bit 1)
Internode testing is executed and stopped by turning ON and OFF this switch.
The parameters for designating the remote node for testing, and so on, are set in
the allocated words in the DM Area. For details, refer to 9-3 Internode Test. The
CX-Programmer can also be used to set parameters and control internode tests.
Socket Force-close Switch (Bit 2)
All UDP and TCP sockets used for socket services can be force-closed by turning ON this switch. This can be used for operations such as error processing.
Be careful not to force-close sockets during communications, or an error will occur. After all sockets have been force-closed, the Ethernet Unit will turn the
switch OFF again. Do not attempt to forcibly manipulate this switch before it is
automatically turned OFF by the Unit.
Ports used exclusively by the Ethernet Unit will not be closed.
Mail Send Switch (Bit 3)
User mail can be sent by turning ON this switch. The contents of the user mail
are set in the CPU Bus Unit System Setup.
After the user mail has been sent, the Ethernet Unit will turn this switch OFF
again. Do not attempt to forcibly manipulate this switch before it is automatically
turned OFF by the Unit.
51
Section
CIO Area Allocations
4-3
Status of UDP/TCP Sockets 1 to 8 (Ethernet Unit to CPU Unit)
15 14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
n+1 to n+16
Opening Flag
Receiving Flag
Results Storage Error Flag
Sending Flag
TCP/UDP Open Flag
Bit
0
1
2
3
Flag
Status
Opening Flag
Receiving Flag
Sending Flag
Closing Flag
4 to 13 (Not used.)
14
Results Storage
Error Flag
15
TCP/UDP Open Flag
Closing Flag
Manipulated
by
Unit operation
ON
Unit
ON during open processing. (Turns ON when
open request is received.)
OFF
Unit
Turns OFF when open processing has been
completed.
ON
Unit
ON during receive processing. (Turns ON when
receive request is received.)
OFF
Unit
Turns OFF when receive processing has been
completed.
ON
Unit
ON during send processing. (Turns ON when
send request is received.)
OFF
Unit
Turns OFF when send processing has been
completed.
ON
Unit
ON during close processing. (Turns ON when
close request is received.)
OFF
Unit
Turns OFF when close processing has been
completed.
---
---
---
ON
Unit
Turns ON if there is an error in storing the
results when socket services are used by
means of the CMND(490) instruction.
OFF
Unit
Turns OFF when the next request is received.
(Connected by TCP.)
ON
Unit
Turns ON when open processing has been
completed.
OFF
Unit
Turns OFF when close processing has been
completed. (Stays OFF for abnormal open
processing completion.)
Reference
Section 6
Socket
S i
Services
--Section 6
Socket
Services
Note The status of these flags can also be checked using the CX-Programmer.
Opening Flag (Bit 0)
Turns ON when an open request is received either by control switch manipulation or the CMND(490) instruction, and turns OFF again when the open processing has been completed. When CMND(490) is used, the Results Storage Error
Flag (bit 14) will turn ON at the same time as the Opening Flag turns OFF if there
is an error in the Results Storage Area designation.
Receiving Flag (Bit 1)
Turns ON when a receive request is received either by control switch manipulation or the CMND(490) instruction, and turns OFF again when the receive processing has been completed. When CMND(490) is used, the Results Storage Error Flag (bit 14) will turn ON at the same time as the Receiving Flag turns OFF if
there is an error in the Results Storage Area designation.
52
Section
CIO Area Allocations
4-3
Sending Flag (Bit 2)
Turns ON when a send request is received either by control switch manipulation
or the CMND(490) instruction, and turns OFF again when the send processing
has been completed. When CMND(490) is used, the Results Storage Error Flag
(bit 14) will turn ON at the same time as the Sending Flag turns OFF if there is an
error in the Results Storage Area designation.
Closing Flag (Bit 3)
Turns ON when a close request is received either by control switch manipulation
or the CMND(490) instruction, and turns OFF again when the close processing
has been completed. When CMND(490) is used, the Results Storage Error Flag
(bit 14) will turn ON at the same time as the Closing Flag turns OFF if there is an
error in the Results Storage Area designation.
Results Storage Error Flag (Bit 14)
Turns ON if there is an error in the Results Storage Area for a socket service request (open, receive, send, close) made using CMND(490). This flag turns ON
at the same time as the services request processing flags (bits 0 to 3) turn OFF. It
remains ON until the next services request is received, and then it turns OFF
again. When this flag turns ON, check the set values in the Results Storage
Area.
The Results Storage Error Flag does not operate when socket services are requested by control switch manipulation.
TCP/UDP Open Flag (Bit 15)
Remains ON while a socket is open by by means of control switch manipulation
or the CMND(490) instruction. In the case of TCP, it indicates a connection.
When the socket is closed, this flag turns OFF again. (If the socket did not close
properly, the flag remains ON.)
Check to be sure that this flag is ON before executing a send or receive request.
Service Status (Ethernet Unit to CPU Unit)
15 14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
n+17
FTP status
Power status
Bit
0
Name
FTP Status Flag
2 to 14 (Not used.)
15
Power status
Status
Manipulated
by
Unit operation
ON
Unit
FTP server operating. (FTP client
connected.)
OFF
Unit
FTP server on standby. (FTP client not
connect.
---
---
---
ON
OFF
Unit
Unit
Power is being supplied to transceiver.
Power is not being supplied to transceiver.
Reference
Page 151
--Page
g 29
FTP Status (Bit 0)
Turns ON while connected to an FTP client, and OFF while not connected. With
the FTP server function only one FTP client can be connected at a time, so while
this bit is ON no other clients can connect to the server.
The FTP status is also shown by the Ethernet Unit’s FTP indicator, as follows:
Not lit: FTP server on standby. (FTP status: OFF)
Lit:
FTP server operating. (FTP status: ON)
Power Status (Bit 15)
Turns ON while power is being supplied from the Ethernet Unit to the transceiver,
and OFF when power is not being supplied. Check to be sure that this bit is ON
before beginning communications.
53
Section
CIO Area Allocations
Error Status (Ethernet
Unit to CPU Unit)
15 14 13 12
4-3
The status of errors that occur at the Ethernet Unit is reflected as shown in the
following diagram.
11
10
9
8
7
6
5
4
3
2
1
0
n+18
Bit 01: Transceiver echo test error
Bit 02: IP address error
Bit 03: IP address table error
Bit 04: IP router table error
Bit 06: Routing table error
Bit 07: Transceiver error
Bit 08: Internode test flag (OFF: Test stopped, ON: Test running)
Bit 14: Address disagreement
Bit 15: EEPROM error
Bit
0
1
2
Error
(Not used.)
Transceiver echo test error
IP address setting error
Status Manipulated
by
Unit operation
---
---
---
ON
Unit
ON if an error occurred during the self diagnostic
testing after the Unit was turned ON or reset.
OFF
Unit
OFF if the self diagnostic testing after the Unit was
turned ON or reset was normal.
ON
Unit
ON if any of the following conditions apply to the IP
address.
• All bits in the host ID are 0 or 1.
• All bits in the network ID are 0 or 1.
• All bits in the subnet ID are 1.
• The IP address begins with 127 (0x7F)
3
IP address table error
4
IP router table error
5
6
(Not used.)
Routing
g table error
7
Transceiver error
8
Internode Test Flag
g
9 to 13 (Not used.)
14
Address disagreement
15
54
EEPROM error
OFF
ON
OFF
ON
OFF
---
Unit
Unit
Unit
Unit
Unit
---
OFF when the IP address is normal.
On if the IP address table information is incorrect.
OFF when the IP address table is normal.
ON if the IP router table information is incorrect.
OFF when the IP address table is normal.
---
ON
OFF
ON
Unit
Unit
Unit
OFF
ON
OFF
---
Unit
Unit
Unit
---
ON if the routing table information is incorrect.
OFF when the routing table is normal.
ON when the transceiver cable is disconnected, the
transceiver is not receiving power, or the transceiver is
defective. Once this bit turns ON, it will not turn back
OFF even if the transceiver status returns to normal.
OFF when the transceiver is normal.
ON during internode testing.
OFF while internode testing is stopped.
---
ON
Unit
ON if the remote IP address is set to automatic
generation but the local IP address host number and
FINS node number do not agree.
OFF
ON
OFF
Unit
Unit
Unit
OFF under all other circumstances.
ON if an error has occurred in the EEPROM memory.
OFF when the EEPROM memory is normal.
Section
CIO Area Allocations
Socket Service Request
Switches 1 to 8 (CPU Unit
to Ethernet Unit)
4-3
When a socket service request is executed by control switch manipulation, it is
the following bits that are manipulated. For details, refer to 6-2 Using Socket Services with Socket Service Request Switches.
15 14 13 12
11
10
9
8
7
3
2
1
0
6
5
4
n+19 to n+22
UDP Open Request Switch
TCP Passive Open Request Switch
TCP Active Open Request Switch
Send Request Switch
Receive Request Switch
Close Request Switch
Bit
Switch
Status Manipulated
by
Unit operation
8
0
UDP Open
R
Request
S i h
Switch
ON
OFF
User
Unit
UDP socket opened when switch is turned ON.
Unit turns OFF switch when open processing has
been completed (i.e., when a connection has been
made).
9
1
TCP Passive Open
Request
Switch
q
ON
User
Passive TCP socket opened when switch is turned
ON.
OFF
Unit
Unit turns OFF switch when open processing has
been completed (i.e., when a connection has been
made).
10
2
TCP Active Open
R
Request
S i h
Switch
ON
OFF
User
Unit
Active TCP socket opened when switch is turned ON.
Unit turns OFF switch when open processing has
been completed (i.e., when a connection has been
made)
11
3
Send Request
Switch
ON
User
Send processing executed when switch is turned ON.
12
13
4
5
Receive Request
Switch
Close Request
Switch
OFF
Unit
ON
User
OFF
Unit
ON
User
OFF
Unit
Page
98 to
103
(The protocol (TCP/UDP) is determined when the
socket is opened.)
Unit turns OFF switch when send processing has
been completed.
Receive processing executed when switch is turned
ON.
(The protocol (TCP/UDP) is determined when the
socket is opened.)
Unit turns OFF switch when receive processing has
been completed.
Close processing executed when switch is turned
ON.
(The protocol (TCP/UDP) is determined when the
socket is opened.)
Unit turns OFF switch when close processing has
been completed.
14
6
(Not used.)
---
---
---
---
15
7
(Not used.)
---
---
---
---
55
Section
DM Area Allocations
4-4
4-4
DM Area Allocations
The various kinds of data are stored in the offset positions shown in the following
diagram, from the beginning word in the area for each Unit.
The beginning word m is calculated by the following equation:
Beginning word m = D30000 + (100 x unit number)
Offset
Bit
15
8
7
0
m
Internode test remote network address and node number
m+1
Internode test number of send bytes
m+2
Internode test response monitoring time
m+3
Internode test status
m+4
Number of internode test runs
m+5
Number of internode test timeout errors
m+6
Number of internode test response errors
m+7
Number of internode test send errors
m+8
Number of times internode test data did not match
m+9
TCP socket No. 1 connection status
m+16
TCP socket No. 8 connection status
m+17
Internode Test Function
(Refer to 9-3 Internode Test.)
CPU Unit to Ethernet Unit
Ethernet Unit to CPU Unit
Socket Services
(Refer to Section 6
Socket Services.)
Mail function
(Refer to Section 8 Mail.)
Mail status
m+18
Socket Services Parameter Area 1
m+28
Socket Services Parameter Area 2
m+88
Socket Services Parameter Area 8
CPU Unit to Ethernet Unit
Socket Services
(Refer to Section 6
Socket Services.)
m+98
m+99
Related communications services
Data direction
Ethernet Unit to CPU Unit
IP Address Display Area
The meanings of the items shown in the above diagram are explained on the
following pages. For details regarding the related communications services
shown in the diagram, refer to the indicated sections.
Internode Test Remote Network Address and Node Number (CPU Unit to Ethernet Unit)
m
15 14 13 12 11 10 9
Remote network address
8
7
6
5
4
3
2
1
0
Remote node number
Specify the remote network address and node number in hexadecimal within the
following ranges:
Remote network address: 00 to 7F Hex (0 to 127 decimal)
Remote node number: 01 to 7E Hex (0 to 126 decimal)
If a remote network address is set to 00, it will specify the local network (i.e., the
network to which the Ethernet Unit is connected.)
Internode Test Number of Send Bytes (CPU Unit to Ethernet Unit)
m+1
15 14 13 12 11 10 9
8
7
6
5
4
3
Number of send bytes (0000 to 07CC Hex)
2
1
0
Specify, in hexadecimal, the number of bytes of test data to be sent between
nodes.
0000 (Hex): 1,996 bytes
0001 to 07CC (Hex): 1 to 1,996 bytes
56
Section
DM Area Allocations
4-4
Internode Test Response Monitoring Time (CPU Unit to Ethernet Unit)
15 14 13 12 11 10 9
8
7
6
5
4
3
Response monitoring time (0000 to FFFF Hex)
m+2
2
1
0
Specify, in hexadecimal, the amount of time to wait for the internode test response.
0000 (Hex): 2 seconds
0001 to FFFF (Hex): 0.01 to 655.35 seconds
Internode Test Status (Ethernet Unit to CPU Unit)
15 14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
m+3
Timeout
Error code
Response error
Send error
Data does not match
Routing table error
Send parameter error
Internode test results are reflected here. (The bits all turn back OFF when the
internode test is started.)
Bits 0 to 5 turn ON when their applicable error occurs.
The error code for the error that occurred is stored in bits 13 to 15. The meanings
of the error codes are shown in the following table.
Bit
15
Meaning
g
14
13
0
0
0
Normal
0
0
1
Timeout error
0
1
0
Response (response code) error
0
1
1
Send error
1
0
0
Data disagreement error
1
0
1
Routing table error (See note.)
1
1
0
Send parameter error (See note.)
Note When a routing table error or a sent parameter error occurs, the number of internode test runs is not incremented.
Number of Internode Test Runs (Ethernet Unit to CPU Unit)
m+4
15 14 13 12 11 10 9
8
7
6
5
4
3
Number of test runs (0000 to FFFF Hex)
2
1
0
Internode tests are executed repeatedly as long as the Internode Test Start
Switch, one of the Unit Control Switches in the CIO area, remains ON.
In this word, specify in hexadecimal the number of times that the internode test is
actually to be executed.
0000 to FFFF (Hex): 0 to 65,535 times
When the count reaches FFFF (Hex), it will start over again at 0. The count value
will be retained until the internode test is restarted.
Note When a routing table error or a transmission parameter error occurs, the number
of internode tests is not incremented.
57
Section
DM Area Allocations
4-4
Number of Internode Test Timeout Errors (Ethernet Unit to CPU Unit)
m+5
15 14 13 12 11 10 9
8
7
6
5
4
Number of timeout errors (0000 to FFFF)
3
2
1
0
The number of timeout errors that have occurred in the internode test is stored in
this word in hexadecimal.
0000 to FFFF (Hex): 0 to 65,535 times
When the count reaches FFFF (Hex), it will not go any further. The count value
will be retained until the internode test is restarted.
Number of Internode Test Response Errors (Ethernet Unit to CPU Unit)
m+6
15 14 13 12 11 10 9
8
7
6
5
4
3
Number of response errors (0000 to FFFF)
2
1
0
The number of response errors that have occurred in the internode test is stored
in this word in hexadecimal.
0000 to FFFF (Hex): 0 to 65,535 times
When the count reaches FFFF (Hex), it will not go any further. The count value
will be retained until the internode test is restarted.
Number of Internode Test Transmission Errors (Ethernet Unit to CPU Unit)
m+7
15 14 13 12 11 10 9
8
7
6
5
4
3
2
Number of transmission errors (0000 to FFFFHex)
1
0
The number of transmission errors that have occurred in the internode test is
stored in this word in hexadecimal.
0000 to FFFF (Hex): 0 to 65,535 times
When the count reaches FFFF (Hex), it will not go any further. The count value
will be retained until the internode test is restarted.
Number of Times Internode Test Data Did Not Match (Ethernet Unit to CPU Unit)
m+8
15 14 13 12 11 10 9
8
7
6
5
4
3
2
Number of data disagreement errors (0000 to FFFF)
1
0
The number of data disagreement errors that have occurred in the internode test
is stored in this word in hexadecimal.
0000 to FFFF (Hex): 0 to 65,535 times
When the count reaches FFFF (Hex), it will not go any further. The count value
will be retained until the internode test is restarted.
TCP Socket No. (1 to 8) Connection Status (Ethernet Unit to CPU Unit)
15 14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
m+9 to m+16
TCP connection status
The connection status for each TCP socket is stored by code in this word. For
details, refer to Appendix 4 TCP Status Transitions.
58
Section
DM Area Allocations
4-4
Mail Status (Ethernet Unit to CPU Unit)
15 14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
m+17
User mail status
Periodic mail status
Error log mail status
The transmission statuses of user mail, periodic mail, and error log mail are
stored in this word as shown in the following table.
Bits
Status
2
6
10
OFF
1
5
9
OFF
0
4
8
OFF
OFF
OFF
ON
Mail is being sent.
OFF
ON
OFF
Mail is either waiting to be sent or can be sent using
the Mail Send Switch. The previous mail
transmission was completed normally.
ON
ON
OFF
Mail is either waiting to be sent or can be sent using
the Mail Send Switch. An error occurred in the
previous mail transmission.
ON
ON
ON
Mail cannot be sent (system setting error).
Mail is either waiting to be sent or can be sent using
the Mail Send Switch. No mail is being sent.
Socket Services Parameter Area 1 to 8 (Ethernet Unit to CPU Unit)
Offset
Socket
No. 1
...
Socket
No. 8
+0
m+18
...
m+88
+1
m+19
m+89
Local UDP/TCP port number (0000 to FFFF Hex)
+2
m+20
m+90
Remote IP address (00000000 to FFFFFFFF Hex)
m+21
m+91
7
6
5
4
3
m+92
Remote UDP/TCP port number (0000 to FFFF Hex)
m+23
m+93
Number of send/receive bytes (0000 to 07C0 Hex (1984))
m+24
m+94
m+25
m+26
m+27
m+95
m+96
m+97
Send/receive data address
(Same as FINS variable area designation method.)
+4
m+22
+5
+6
+8
+9
...
15 14 13 12 11 10 9
8
UDP/TCP socket number (1 to 8)
...
2
1
0
Timeout value (0000 to FFFF Hex)
Response code
When socket services are requested by control switch manipulation, the settings must be made in advance in a Socket Service Parameter Area. The parameters used will vary depending on the service requested. For details, refer to 6-2
Using Socket Services With Socket Service Request Switches.
IP Address Display Area
m+98
15 14 13 12
SW1
m+99
SW5
11
10 9
SW2
SW6
8
7
6
5
SW3
SW7
4
3
2
1
SW4
0
SW8
The set values of the Local IP Address Switches (rotary switches 1 to 8) on the
back of the Ethernet Unit are read and stored here when the power is turned ON.
If an incorrect address is set, 0000 (Hex) will be stored here and the ERC indicator will flash. (Refer to 3-4-3 Setting the Local IP Address.)
59
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement