Mitsubishi Ethernet Manual
Mitsubishi Ethernet Manual
Table of Contents
M itsubishi Ethernet Driver 1
Table of Contents 2
Overview 4
Setup 4
Channel Properties — General 5
Channel Properties — Ethernet Communications 6
Channel Properties — Write Optimizations 6
Channel Properties — Advanced 7
Device Properties — General 8
Device Properties — Scan Mode 9
Device Properties — Timing 10
Device Properties — Auto-Demotion 11
Device Properties — 32-Bit Data 11
Device Properties — Communications Parameters 12
Device Properties — Time and Date Synchronization 14
Device Properties — Redundancy 14
Multi-Level Networks 16
Optimizing Communications 17
Address Descriptions 19
www. ptc.com
3 M itsu b ish i Eth ern et Driver
Unable to read from address on device. The device reported an invalid address or an error. |
Address = '<address>'. 51
Unable to read from address on device. Device returned an error. | Address = '<address>', Error
code = <code>. 52
Unable to read from address block on device. Device returned an error. | Address block =
'<address>' to '<address>', Error code = <code>. 52
Unable to write to address on device. Device returned error. | Address = '<address>', Error code
= <code>. 52
Unable to read from address block on device. | Address block = '<address>' to '<address>'. 52
Unable to read from address on device. | Address = '<address>'. 53
Unable to write to address on device. Device must be configured to allow writes while in RUN
mode. | Address = '<address>'. 53
Failed to synchronize time and date for device. | Retry interval = <number> (minutes). 53
Index 87
www. ptc.com
4 M itsu b ish i Eth ern et Driver
CONTENTS
Overview
What is the Mitsubishi Ethernet Driver?
Device Set up
How do I configure a device for use with this driver?
Overview
The Mitsubishi Ethernet Driver provides a reliable way to connect Mitsubishi Ethernet devices to OPC client
applications; including HMI, SCADA, Historian, MES, ERP, and countless custom applications. It is intended
for use with Mitsubishi A Series and Mitsubishi Q Series devices communicating via the AJ71E71, A1SJ71E71,
AJ71QE71, A1SJ71QE71, QJ71E71, or LJ71E71 Ethernet communications cards. A built-in Ethernet Port is sup-
ported for Q and L Series devices. This driver also supports the FX3U series PLC via the FX3U-ENET Ethernet
module.
N ote: Communications card model numbers listed are the base model number only. All suffixes are sup-
ported.
Set up
Supported Devices
A Series PLCs
QnA Series PLCs
Q (Q mode) Series PLCs
L Series PLCs
FX3U Series PLCs
iQ-R Series PLCs
iQ-F Series PLCs
Communication Protocol
Ethernet: using Winsock V1.1 or higher
TCP/IP, UDP
www. ptc.com
Mitsubishi Ethernet Driver 5
The maximum number of channels that are supported is 256. The maximum number of devices supported is
255 per channel.
Channel Propert ies
Device Propert ies
Identification
N am e: User-defined identity of this channel. In each server project, each channel name must be unique.
Although names can be up to 256 characters, some client applications have a limited display window when
browsing the OPC server's tag space. The channel name is part of the OPC browser information. The prop-
erty is required for creating a channel.
For information on reserved characters, refer to "How To... Properly Name a Channel, Device, Tag, and Tag
Group" in the server help.
Driver: Selected protocol / driver for this channel. This property specifies the device driver that was selected
during channel creation. It is a disabled setting in the channel properties. The property is required for cre-
ating a channel.
N ote: With the server's online full-time operation, these properties can be changed at any time. This
includes changing the channel name to prevent clients from registering data with the server. If a client has
already acquired an item from the server before the channel name is changed, the items are unaffected. If,
after the channel name has been changed, the client application releases the item and attempts to re-
acquire using the old channel name, the item is not accepted. With this in mind, changes to the properties
should not be made once a large client application has been developed. Utilize the User Manager to prevent
operators from changing properties and restrict access rights to server features.
Diagnostics
Diagnostics Capture: When enabled, this option makes the channel's diagnostic information available to
OPC applications allows the usage of statistics tags that provide feedback to client applications regarding
the operation of the channel. Because the server's diagnostic features require a minimal amount of
www. ptc.com
6 M itsu b ish i Eth ern et Driver
overhead processing, it is recommended that they be utilized when needed and disabled when not. The
default is disabled.
N ote: This property is not available if the driver does not support diagnostics.
For more information, refer to "Communication Diagnostics" and "Statistics Tags" in the server help.
Ethernet Settings
N etwork Adapter: Specify the network adapter to bind. When left blank or Default is selected, the oper-
ating system selects the default adapter.
Write Optimizations
Optim ization Method: Controls how write data is passed to the underlying communications driver. The
options are:
l Write All Values for All Tags: This option forces the server to attempt to write every value to the
controller. In this mode, the server continues to gather write requests and add them to the server's
internal write queue. The server processes the write queue and attempts to empty it by writing data
to the device as quickly as possible. This mode ensures that everything written from the client applic-
ations is sent to the target device. This mode should be selected if the write operation order or the
write item's content must uniquely be seen at the target device.
l Write Only Latest Value for N on-Boolean Tags: Many consecutive writes to the same value can
accumulate in the write queue due to the time required to actually send the data to the device. If the
server updates a write value that has already been placed in the write queue, far fewer writes are
needed to reach the same final output value. In this way, no extra writes accumulate in the server's
queue. When the user stops moving the slide switch, the value in the device is at the correct value at
virtually the same time. As the mode states, any value that is not a Boolean value is updated in the
www. ptc.com
Mitsubishi Ethernet Driver 7
server's internal write queue and sent to the device at the next possible opportunity. This can greatly
improve the application performance.
N ote: This option does not attempt to optimize writes to Boolean values. It allows users to optimize
the operation of HMI data without causing problems with Boolean operations, such as a momentary
push button.
l Write Only Latest Value for All Tags: This option takes the theory behind the second optimization
mode and applies it to all tags. It is especially useful if the application only needs to send the latest
value to the device. This mode optimizes all writes by updating the tags currently in the write queue
before they are sent. This is the default mode.
Duty Cycle: is used to control the ratio of write to read operations. The ratio is always based on one read for
every one to ten writes. The duty cycle is set to ten by default, meaning that ten writes occur for each read
operation. Although the application is performing a large number of continuous writes, it must be ensured
that read data is still given time to process. A setting of one results in one read operation for every write
operation. If there are no write operations to perform, reads are processed continuously. This allows optim-
ization for applications with continuous writes versus a more balanced back and forth data flow.
N ote: It is recommended that the application be characterized for compatibility with the write optimization
enhancements before being used in a production environment.
N on-N orm alized Float Handling: A non-normalized value is defined as Infinity, Not-a-Number (NaN), or as
a Denormalized Number. The default is Replace with Zero. Drivers that have native float handling may
default to Unmodified. Non-normalized float handling allows users to specify how a driver handles non-nor-
malized IEEE-754 floating point data. Descriptions of the options are as follows:
l Replace with Zero: This option allows a driver to replace non-normalized IEEE-754 floating point val-
ues with zero before being transferred to clients.
l Unm odified: This option allows a driver to transfer IEEE-754 denormalized, normalized, non-num-
ber, and infinity values to clients without any conversion or changes.
N ote: This property is not available if the driver does not support floating point values or if it only supports
the option that is displayed. According to the channel's float normalization setting, only real-time driver tags
(such as values and arrays) are subject to float normalization. For example, EFM data is not affected by this
setting.
For more information on the floating point values, refer to "How To ... Work with Non-Normalized Floating
Point Values" in the server help.
Inter-Device Delay: Specify the amount of time the communications channel waits to send new requests to
the next device after data is received from the current device on the same channel. Zero (0) disables the
delay.
N ote: This property is not available for all drivers, models, and dependent settings.
www. ptc.com
8 M itsu b ish i Eth ern et Driver
Identification
Channel Assignm ent: User-defined name of the channel to which this device currently belongs.
Model: The specific version of the device. Options include A Series (for all A Series PLCs), L Series (for all L
Series PLCs), Q Series (for all Q Series PLCs), QnA Series (for all QnA Series PLCs), and FX3U (for all FX3U
Series PLCs).
ID (PLC N etwork Address): the unique device identity used to specify the IP address with a PC number (and
net number if the device is a Q series PLC).
l A Series: Device IDs are specified as YYY.YYY.YYY.YYY:XXX. The YYY designates the device IP address
(each YYY byte should be in the range of 0 to 255). The XXX designates the PC Number of the target
device and can be in the range of 0 to 64 or 255 for the local PC.
l Q Series: Device IDs are specified as YYY.YYY.YYY.YYY:Nzzz:XXX or YYY.YYY.YYY.YYY:nzzz:XXX. The YYY
designates the device IP address (each YYY byte should be in the range of 0 to 255). The zzz designates
the Network Number of the target device and can be in the range of 0 to 255. The XXX designates the PC
Number of the target device and can be in the range of 0 to 64 or 255 for the local PC.
N ote: For a local connection, which is network 0, the network number can be omitted, resulting in the
format YYY.YYY.YYY.YYY:XXX. For more information, refer to Multi-level Networks.
l QnA Series: Device IDs are specified as YYY.YYY.YYY.YYY:Nzzz:XXX or YYY.YYY.YYY.YYY:nzzz:XXX. The
YYY designates the device IP address (each YYY byte should be in the range of 0 to 255). The zzz des-
ignates the Network Number of the target device and can be in the range of 0 to 255. The XXX des-
ignates the PC Number of the target device and can be in the range of 0 to 64 or 255 for the local PC.
l L Series: Device IDs are specified as YYY.YYY.YYY.YYY:Nzzz:XXX or YYY.YYY.YYY.YYY:nzzz:XXX. The YYY
designates the device IP address (each YYY byte should be in the range of 0 to 255). The zzz designates
the Network Number of the target device and can be in the range of 0 to 255. The XXX designates the PC
Number of the target device and can be in the range of 0 to 64 or 255 for the local PC.
www. ptc.com
Mitsubishi Ethernet Driver 9
l FX3U: Device IDs are specified as YYY.YYY.YYY.YYY:XXX. The YYY designates the device IP address (each
YYY byte should be in the range of 0 to 255). The XXX designates the PC Number of the target device
and can be in the range of 0 to 15 or 255 for the local PC.
N ote: The AJ71E71, A1SJ71E71, AJ71QE71, A1SJ71QE71, LJ71E71, and QJ71E71 families of com-
munications cards occupy ranges of X and Y memory. Writing to this memory may disable the card and
cause loss of communications. For more information, refer to the communications card manual.
Operating M ode
Data Collection: This property controls the device's active state. Although device communications are
enabled by default, this property can be used to disable a physical device. Communications are not attemp-
ted when a device is disabled. From a client standpoint, the data is marked as invalid and write operations
are not accepted. This property can be changed at any time through this property or the device system tags.
Sim ulated: This option places the device into Simulation Mode. In this mode, the driver does not attempt to
communicate with the physical device, but the server continues to return valid OPC data. Simulated stops
physical communications with the device, but allows OPC data to be returned to the OPC client as valid data.
While in Simulation Mode, the server treats all device data as reflective: whatever is written to the simulated
device is read back and each OPC item is treated individually. The item's memory map is based on the group
Update Rate. The data is not saved if the server removes the item (such as when the server is reinitialized).
The default is No.
N otes:
1. This System tag (_Simulated) is read only and cannot be written to for runtime protection. The System
tag allows this property to be monitored from the client.
2. In Simulation mode, the item's memory map is based on client update rate(s) (Group Update Rate for
OPC clients or Scan Rate for native and DDE interfaces). This means that two clients that reference
the same item with different update rates return different data.
Simulation Mode is for test and simulation purposes only. It should never be used in a production envir-
onment.
Scan Mode: Specifies how tags in the device are scanned for updates sent to subscribing clients. Descrip-
tions of the options are:
l Respect Client-Specified Scan Rate: This mode uses the scan rate requested by the client.
l Request Data N o Faster than Scan Rate: This mode specifies the value set as the maximum scan
rate. The valid range is 10 to 99999990 milliseconds. The default is 1000 milliseconds.
N ote: When the server has an active client and items for the device and the scan rate value is
www. ptc.com
10 M itsu b ish i Eth ern et Driver
increased, the changes take effect immediately. When the scan rate value is decreased, the changes
do not take effect until all client applications have been disconnected.
l Request All Data at Scan Rate: This mode forces tags to be scanned at the specified rate for sub-
scribed clients. The valid range is 10 to 99999990 milliseconds. The default is 1000 milliseconds.
l Do N ot Scan, Dem and Poll Only: This mode does not periodically poll tags that belong to the
device nor perform a read to get an item's initial value once it becomes active. It is the client's
responsibility to poll for updates, either by writing to the _DemandPoll tag or by issuing explicit device
reads for individual items. For more information, refer to "Device Demand Poll" in server help.
l Respect Tag-Specified Scan Rate: This mode forces static tags to be scanned at the rate specified
in their static configuration tag properties. Dynamic tags are scanned at the client-specified scan
rate.
Initial Updates from Cache: When enabled, this option allows the server to provide the first updates for
newly activated tag references from stored (cached) data. Cache updates can only be provided when the
new item reference shares the same address, scan rate, data type, client access, and scaling properties. A
device read is used for the initial update for the first client reference only. The default is disabled; any time a
client activates a tag reference the server attempts to read the initial value from the device.
Communications Timeouts
Connect Tim eout: This property (which is used primarily by Ethernet based drivers) controls the amount of
time required to establish a socket connection to a remote device. The device's connection time often takes
longer than normal communications requests to that same device. The valid range is 1 to 30 seconds. The
default is typically 3 seconds, but can vary depending on the driver's specific nature. If this setting is not sup-
ported by the driver, it is disabled.
N ote: Due to the nature of UDP connections, the connection timeout setting is not applicable when com-
municating via UDP.
Request Tim eout: This property specifies an interval used by all drivers to determine how long the driver
waits for a response from the target device to complete. The valid range is 50 to 9,999,999 milliseconds
(167.6667 minutes). The default is usually 1000 milliseconds, but can vary depending on the driver. The
default timeout for most serial drivers is based on a baud rate of 9600 baud or better. When using a driver
at lower baud rates, increase the timeout to compensate for the increased time required to acquire data.
Attem pts Before Tim eout: This property specifies how many times the driver issues a communications
request before considering the request to have failed and the device to be in error. The valid range is 1 to
www. ptc.com
Mitsubishi Ethernet Driver 11
10. The default is typically 3, but can vary depending on the driver's specific nature. The number of attempts
configured for an application depends largely on the communications environment. This property applies to
both connection attempts and request attempts.
Dem ote on Failure: When enabled, the device is automatically taken off-scan until it is responding again.
Tip: Determine when a device is off-scan by monitoring its demoted state using the _AutoDemoted sys-
tem tag.
Tim eouts to Dem ote: Specify how many successive cycles of request timeouts and retries occur before the
device is placed off-scan. The valid range is 1 to 30 successive failures. The default is 3.
Dem otion Period: Indicate how long the device should be placed off-scan when the timeouts value is
reached. During this period, no read requests are sent to the device and all data associated with the read
requests are set to bad quality. When this period expires, the driver places the device on-scan and allows for
another attempt at communications. The valid range is 100 to 3600000 milliseconds. The default is 10000
milliseconds.
Discard Requests when Dem oted: Select whether or not write requests should be attempted during the
off-scan period. Disable to always send write requests regardless of the demotion period. Enable to discard
writes; the server automatically fails any write request received from a client and does not post a message
to the Event Log.
First Word Low: In a Mitsubishi Ethernet device, the addresses of two consecutive registers are used for
32-bit data types. When this option is enabled, the driver assumes the first word is low for the 32-bit value.
When this option is disabled, the driver assumes that the first word is high for the 32-bit value. The default
setting is enabled.
N ote: This property can't be changed while there are active references on the device.
www. ptc.com
12 M itsu b ish i Eth ern et Driver
Communications Parameters
IP Protocol: Select the IP protocol: TCP/IP or UDP. TCP/IP is less efficient than UDP and requires a special lad-
der for network error recovery in the A and QnA series PLCs. Furthermore, Q series users planning to com-
municate with devices on a remote network must configure multiple ports in the relay device when using
TCP/IP. As such, UDP is recommended wherever possible.
For more information, refer to Multi-level Networks.
Port N um ber: Specify the port number to use when communicating with the device. The default for UDP is
5000. The default for TCP is 5001.
CPU: Specify the target CPU to connect with. For a single CPU, select Local CPU. The default value is Local
CPU.
N otes:
2. This property can't be changed while there are active references to the device.
Write Full String Length: Specify if the driver should add NULL character bytes after the end of a string
when writing to the device. Adding NULL character bytes after the end of the string ensures that the device
memory for the string only contains the characters that were written. The default setting is False.
Bit Mem ory: Set the maximum number of words per read request of bit-based memory. The default value is
the maximum value allowed.
www. ptc.com
Mitsubishi Ethernet Driver 13
Word Mem ory: Set the maximum number of words per read request of word-based memory. The default
value is the maximum value allowed.
N ote: If opening an .opf or .xml file from version 6.0 or earlier, the Bit/Word Block Size is initially set to val-
ues shown in the following table to match earlier versions. If opening a JSON file saved with 6.0, the prop-
erties are set to the default values.
Init ial Bit Block Size Init ial Word Block Size
A Series 125 Words 252 Words
Q Series 125 Words 252 Words
FX3U Series 30 Words 60 Words
Max Bits per Request: Set the maximum number of bit tags to be processed per write request. If writing to
a size larger than this setting, multiple write requests are processed. The default value is the maximum
value allowed.
Max Words per Request: Set the maximum number of words to write per request. If writing to a size larger
than this setting, multiple write requests are processed. The default value is the maximum value allowed.
www. ptc.com
14 M itsu b ish i Eth ern et Driver
N ote: If opening an .opf or .xml file from version 6.0 or earlier, Max Bits per Request and Max Words per
Request are initially set to 1. If opening a JSON file saved with 6.0, the properties are set to the default val-
ues.
Tim e Sync Method: Choose the synchronization method to define how the time and date are reconciled
between the host system and the device. Options include Disabled, Interval, and Absolute. The default set-
ting is Disabled.
Absolute Sync Tim e: Specify an exact hour and minute of each day to synchronize time between the server
and the device when the synchronization method is Absolute. The default value is set to the local PC time
when the device was created. Only the hour and minute of the day are used to determine if synchronization
is required. The seconds are ignored. As an example, if this property displays as 3:52:00 PM, time syn-
chronization will occur each day at 57120 seconds after midnight.
Sync Interval: Specify the time, in minutes, between synchronizations - how often time and date recon-
ciliation should occur when the synchronization method is Interval. The driver can periodically synchronize
the time and date of the PLC with the time and date of the host computer. The valid range is 5 to 1440
minutes (24 hours). The default setting is 5 minutes.
N ote: For example, if 240 minutes is entered, the driver sets the PLC date and time every 4 hours.
www. ptc.com
Mitsubishi Ethernet Driver 15
www. ptc.com
16 M itsu b ish i Eth ern et Driver
If PLC 1, PLC 2 and PLC 3 have QJ71E71-100 Ethernet modules configured with IPs 192.168.111.1,
192.168.111.2 and 192.168.111.3 respectively. In addition to the Ethernet module, PLC 3 also has a
QJ71BR11 NET/H module configured as station 3. Assume that PLC 4, PLC 5 and PLC 6 have NET/H modules
configured as stations 4, 5 and 6 respectively.
To communicate with all six PLCs, six devices would need to be created in the server project. The Device IDs
would be as follows:
* This example shows: N0 as the network number for the local network. It is also possible to omit the network
number when it is Network 0 (local network), thus, the Device ID 192.168.111.1:255 would also be valid in
this case.
N otes:
1. For performance and reliability, the driver is designed to use a separate socket for each device. Thus,
if TCP/IP is used, the relay device in this example would need to have at least 4 ports configured - one
to connect to each of the driver's sockets for PLC 3, PLC 4, PLC 5 and PLC 6. However, only a single
port needs to be configured in the relay device if UDP and the "unspecified" destination IP
www. ptc.com
Mitsubishi Ethernet Driver 17
(255.255.255.255) and port number (0xFFFF) are being used. Therefore, UDP is generally recom-
mended for this type of application. For more information, refer to PLC Setup.
2. A relay device may take 5 or more seconds to report a failed read and write to a remote device. It is
recommended that the request timeout for remote devices be set accordingly. For more information,
refer to Device Setup.
This server refers to communications protocols like Mitsubishi Ethernet Device as a channel. Each channel
defined in the application represents a separate path of execution in the server. Once a channel has been
defined, a series of devices must then be defined under that channel. Each of these devices represents a
single Mitsubishi Ethernet device from which data should be collected. While this approach to defining the
application provides a high level of performance, it doesn't take full advantage of the Mitsubishi Ethernet
Driver or the network. An example of how the application may appear when configured using a single chan-
nel is shown below.
Each device appears under a single Mitsubishi Ethernet device channel. In this con-
figuration, the driver must move from one device to the next as quickly as possible
to gather information at an effective rate. As more devices are added or more
information is requested from a single device, the overall update rate begins to suf-
fer.
If the Mitsubishi Ethernet Driver could only define one single channel, then the example shown above would
be the only option available; however, the driver can define up to 256 channels. Using multiple channels dis-
tributes the data collection workload by simultaneously issuing multiple requests to the network. An example
of how the same application may appear when configured using multiple channels to improve performance
is shown below.
Each device has now been defined under its own channel. In this new configuration,
a single path of execution is dedicated to the task of gathering data from each
device. If the application has 256 or fewer devices, it can be optimized exactly how
it is shown here.
The performance improves even if the application has more than 256 devices.
While 256 or fewer devices may be ideal, the application still benefits from addi-
tional channels. Although by spreading the device load across all channels causes
the server to move from device to device again, it can do so with far less devices to
process on a single channel.
Tip: An additional performance gain can be achieved by using UDP instead of TCP/IP. For more inform-
ation, refer to Device Setup and PLC Setup.
www. ptc.com
18 M itsu b ish i Eth ern et Driver
Dat a
Descript ion
Type
Boolean Single bit
Unsigned 16-bit value
Word
bit 0 is the low bit
bit 15 is the high bit
Signed 16-bit value
DWord
Bit 0 is the low bit.
Bit 31 is the high bit.
Signed 32-bit value
Double*
The driver interprets four consecutive registers as a Double precision value by making the
first two registers the low DWord and the last two registers the high DWord.
Double If register D0000000 is specified as a Double, bit 0 of register D0000000 would be bit 0 of the
Example* 64-bit data type. Bit 15 of register D0000003 would be bit 63 of the 64-bit data type.
* The descriptions above assume the default first word low data handling of 32-bit data types.
www. ptc.com
Mitsubishi Ethernet Driver 19
A Series
L Series
Q Series
iQ-R Series
iQ-F Series
QnA_Series
FX3U Series
www. ptc.com
20 M itsu b ish i Eth ern et Driver
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
www. ptc.com
Mitsubishi Ethernet Driver 21
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean may append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD, Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string in D memory is 2 to 128 bytes. The
string length must be an even number. Float types do not support bit operations. The bit number is always in
decimal notation.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Array Access
www. ptc.com
22 M itsu b ish i Eth ern et Driver
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N ote: An array is created when array notation is appended onto a normal device reference.
Exam ples
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rows x 4 columns = 12 words 12 x 16
(word) =192 total bits.
2. Access M device memory as Long: M???? where the ???? is a decimal number on 16-bit boundaries
such as 0, 16, 32, 48, and so forth.
www. ptc.com
Mitsubishi Ethernet Driver 23
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
www. ptc.com
24 M itsu b ish i Eth ern et Driver
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD and Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string is 2 to 128 bytes. The string length
must be an even number. Float types do not support bit operations. The bit number is always in decimal nota-
tion.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Array Access
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N otes:
1. An array is created when array notation is appended onto a normal device reference.
2. Due to a limit of the protocol, the largest bit memory array that can be written to is 10 Word-
s/Shorts/BCDs (or 5 DWords/Longs/LBCDs). Although this limit differs from the largest bit memory
array that can be read (32 words), the maximum Read/Write array size for register memory type is
the same (64 words).
Exam ples
www. ptc.com
Mitsubishi Ethernet Driver 25
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rowsx4 columns=12 words 12 x 16
(word) = 192 total bits.
2. Access Y device memory as Short: Y??? where the ??? is an Octal number on 16-bit boundaries such
as 020, 040, 060, and so forth.
www. ptc.com
26 M itsu b ish i Eth ern et Driver
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
www. ptc.com
Mitsubishi Ethernet Driver 27
Short, Word,
D0000000.00–D4184063.15* BCD,
Data Register D0000000.00–D4184062.31* Boolean* *
Read/Write
Bit Access Long, DWord,
See Also:Extended Registers LBCD
Data DSH00000.002-DSH4184062.002
String
Registers DSH00000.128-DSH4183999.128
String Access Read/Write
HiLo Byte The string length may also be specified using a colon. The
Ordering string length must be between 2-128 bytes and even.
Data DSL00000.002-DSL4184062.002
String
Registers DSL00000.128-DSL4183999.128
String Access Read/Write
LoHi Byte The string length may also be specified using a colon. The
Ordering string length must be between 2-128 bytes and even.
Short, Word,
BCD
SD0000-SD2047
Special Data Long, DWord,
SD0000-SD2046 Read/Write
Registers* * * LBCD, Float,
SD0000-SD2044
Date
Double
Short, Word,
BCD,
Data Register SD0000.00-SD2047.15*
Boolean* * Read/Write
Bit Access SD0000.00-SD2046.31*
Long, DWord,
LBCD
Short, Word,
W0000-W3FD7FF (Hex) BCD
W0000-W3FD7FE (Hex) Long, DWord,
Link LBCD, Float,
W0000-W3FD7FC (Hex) Read/Write
Registers* * * Date
See Also:Extended Registers Double
Short, Word,
W0000.00-W3FD7FF.15*
BCD,
Link Register W0000.00-W3FD7FE.31*
Boolean* * Read/Write
Bit Access
Long, DWord,
See Also:Extended Registers
LBCD
WSH0000.002-WSH3FD7FE.002
Link Registers
WSH0000.128-WSH3FD7BF.128 String
String Access
Read/Write
HiLo Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
Link Registers WSL0000.002-WSL3FD7FE.002 String Read/Write
www. ptc.com
28 M itsu b ish i Eth ern et Driver
www. ptc.com
Mitsubishi Ethernet Driver 29
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean may append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD and Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string in D memory is 2 to 128 bytes. The
string length must be an even number. Float types do not support bit operations. The bit number is always in
decimal notation.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Extended Registers
The extended range for Data Registers is D12288 to D4184063. The extended range for Link Registers is
W3FFF (Hex) to W3FD7FF (Hex). These must be configured on the device.
Array Access
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N ote: An array is created when array notation is appended onto a normal device reference.
Exam ples:
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rows x 4 columns =12 words 12 x 16
(word) =192 total bits.
www. ptc.com
30 M itsu b ish i Eth ern et Driver
2. Access M device memory as Long: M???? where the ???? is a decimal number on 16-bit boundaries
such as 0, 16, 32, 48, and so forth.
www. ptc.com
Mitsubishi Ethernet Driver 31
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
www. ptc.com
32 M itsu b ish i Eth ern et Driver
Short, Word,
BCD,
W0000.00-W3FD7FF.15*
Boolean* *
Link Register W0000.00-W3FD7FE.31*
Long, DWord, Read/Write
Bit Access
LBCD
See Also:Extended Registers
WSH0000.002-WSH3FD7FE.002
Link Registers
WSH0000.128-WSH3FD7BF.128
String Access String
Read/Write
HiLo Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
WSL0000.002-WSL3FD7FE.002
Link Registers
WSL0000.128-WSL3FD7BF.128
String Access String
Read/Write
LoHi Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
www. ptc.com
Mitsubishi Ethernet Driver 33
www. ptc.com
34 M itsu b ish i Eth ern et Driver
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean may append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD and Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string in D memory is 2 to 128 bytes. The
string length must be an even number. Float types do not support bit operations. The bit number is always in
decimal notation.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Extended Registers
The extended range for Data Registers is D12288 to D4184063. The extended range for Link Registers is
W3FFF (Hex) to W3FD7FF (Hex). These must be configured on the device.
Array Access
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N ote: An array is created when array notation is appended onto a normal device reference.
Exam ples:
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rows x 4 columns =12 words 12 x 16
(word) =192 total bits.
www. ptc.com
Mitsubishi Ethernet Driver 35
1. Access X device memory as Word: X??? where the ??? is a hex number on 16-bit boundaries such as
010, 020, 030, and so forth.
2. Access M device memory as Long: M???? where the ???? is a decimal number on 16-bit boundaries
such as 0, 16, 32, 48, and so forth.
www. ptc.com
36 M itsu b ish i Eth ern et Driver
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
Short, Word,
D0000000.00–D16777215.15*
BCD,
Data Register D0000000.00–16777212.31*
Boolean* * Read/Write
Bit Access
Long, DWord,
See Also:Extended Registers
LBCD
Data DSH00000.002-DSH16777214.002 String Read/Write
www. ptc.com
Mitsubishi Ethernet Driver 37
Short, Word,
BCD,
W0000.00-WFFFFFF.15*
Boolean* *
Link Register W0000.00-WFFFFFE.31*
Long, DWord, Read/Write
Bit Access
LBCD
See Also:Extended Registers
WSH0000.002-WSHFFFFFE.002
Link Registers
WSH0000.128-WSH3FD7BF.128
String Access String
Read/Write
HiLo Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
WSL0000.002-WSLFFFFFE.002
Link Registers
WSL0000.128-WSLFFFFBF.128
String Access String
Read/Write
LoHi Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
Special Link SW0000-SWFFFFFF (Hex) Short, Word,
Read/Write
Registers* * * SW0000-SWFFFFFE (Hex) BCD
www. ptc.com
38 M itsu b ish i Eth ern et Driver
www. ptc.com
Mitsubishi Ethernet Driver 39
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean may append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD and Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string in D memory is 2 to 128 bytes. The
string length must be an even number. Float types do not support bit operations. The bit number is always in
decimal notation.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Extended Registers
The extended range for Data Registers is D12288 to D16777215. The extended range for Link Registers is
W3FFF (Hex) to WFFFFFF (Hex). These must be configured on the device.
Array Access
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N ote: An array is created when array notation is appended onto a normal device reference.
Exam ples:
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rows x 4 columns =12 words 12 x 16
(word) =192 total bits.
2. Access M device memory as Long: M???? where the ???? is a decimal number on 16-bit boundaries
such as 0, 16, 32, 48, and so forth.
www. ptc.com
40 M itsu b ish i Eth ern et Driver
www. ptc.com
Mitsubishi Ethernet Driver 41
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
Short, Word,
D0000000.00–D65535.15*
BCD,
Data Register D0000000.00–D65534.31*
Boolean* * Read/Write
Bit Access
Long, DWord,
See Also: Extended Registers
LBCD
Data DSH00000.002-DSH65534.002
Registers DSH00000.128-DSH65471.128
String Access String Read/Write
HiLo Byte The string length may also be specified using a colon. The
Ordering string length must be between 2-128 bytes and even.
Data DSL00000.002-DSL65534.002
Registers DSL00000.128-DSL65471.128
String Access String Read/Write
LoHi Byte The string length may also be specified using a colon. The
Ordering string length must be between 2-128 bytes and even.
Short, Word,
BCD
SD0000-SD65535
Special Data Long, DWord,
SD0000-SD65534 Read/Write
Registers* * * LBCD, Float,
SD0000-SD65532
Date
Double
www. ptc.com
42 M itsu b ish i Eth ern et Driver
Short, Word,
BCD,
W0000.00-WFFFF.15*
Boolean* *
Link Register W0000.00-WFFFE.31*
Long, DWord, Read/Write
Bit Access
LBCD
See Also: Extended Registers
WSH0000.002-WSHFFFE.002
Link Registers
WSH0000.128-WSHFFBF.128
String Access String
Read/Write
HiLo Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
WSL0000.002-WSLFFFE.002
Link Registers
WSL0000.128-WSLFFBF.128
String Access String
Read/Write
LoHi Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
Short, Word,
BCD
SW0000-SWFFFF(Hex)
Special Link Long, DWord,
SW0000-SWFFFE(Hex) Read/Write
Registers* * * LBCD, Float,
SW0000-SWFFFC(Hex)
Date
Double
Short, Word,
BCD,
Link Register SW0000.00-SWFFFF.15*
Boolean* * Read/Write
Bit Access SW0000.00-SWFFFE.31*
Long, DWord,
LBCD
Short, Word,
BCD
R00000-R65535
File Long, DWord,
R00000-R65534 Read/Write
Register* * * LBCD, Float,
R00000-R65532
Date
Double
www. ptc.com
Mitsubishi Ethernet Driver 43
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean may append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD and Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string in D memory is 2 to 128 bytes. The
string length must be an even number. Float types do not support bit operations. The bit number is always in
decimal notation.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Extended Registers
The extended range for Data Registers is D12288 to D65535. The extended range for Link Registers is
W3FFF (Hex) to WFFFF (Hex). These must be configured on the device.
Array Access
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N ote: An array is created when array notation is appended onto a normal device reference.
www. ptc.com
44 M itsu b ish i Eth ern et Driver
Exam ples:
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rows x 4 columns =12 words 12 x 16
(word) =192 total bits.
2. Access M device memory as Long: M???? where the ???? is a decimal number on 16-bit boundaries
such as 0, 16, 32, 48, and so forth.
www. ptc.com
Mitsubishi Ethernet Driver 45
* Users can specify a Long data type by appending a space and an "L" to the address. For example, "CS0000"
would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
N ote: All Boolean device types can be accessed as Short, Word, BCD, Long, DWord and LBCD; however,
the device must be addressed on a 16-bit boundary.
www. ptc.com
46 M itsu b ish i Eth ern et Driver
Short, Word,
D0000000.00–D4184063.15*
BCD,
Data Register D0000000.00–D4184062.31*
Boolean* * Read/Write
Bit Access
Long, DWord,
See Also:Extended Registers
LBCD
Data DSH00000.002-DSH4184062.002
Registers DSH00000.128-DSH4183999.128
String Access String Read/Write
HiLo Byte The string length may also be specified using a colon. The
Ordering string length must be between 2-128 bytes and even.
Data DSL00000.002-DSL4184062.002
Registers DSL00000.128-DSL4183999.128
String Access String Read/Write
LoHi Byte The string length may also be specified using a colon. The
Ordering string length must be between 2-128 bytes and even.
Short, Word,
BCD
SD0000-SD2047
Special Data Long, DWord,
SD0000-SD2046 Read/Write
Registers* * * LBCD, Float,
SD0000-SD2044
Date
Double
Short, Word,
BCD,
Data Register SD0000.00-SD2047.15*
Boolean* * Read/Write
Bit Access SD0000.00-SD2046.31*
Long, DWord,
LBCD
Short, Word,
W0000-W3FD7FF (Hex) BCD
W0000-W3FD7FE (Hex) Long, DWord,
Link
W0000-W3FD7FC (Hex) LBCD, Float, Read/Write
Registers* * *
Date
See Also:Extended Registers Double
Short, Word,
W0000.00-W3FD7FF.15*
BCD,
Link Register W0000.00-W3FD7FE.31*
Boolean* * Read/Write
Bit Access
Long, DWord,
See Also:Extended Registers
LBCD
WSH0000.002-WSH3FD7FE.002
Link Registers String
WSH0000.128-WSH3FD7BF.128
String Access
Read/Write
HiLo Byte
The string length may also be specified using a colon. The
Ordering
string length must be between 2-128 bytes and even.
Link Registers WSL0000.002-WSL3FD7FE.002 String Read/Write
www. ptc.com
Mitsubishi Ethernet Driver 47
www. ptc.com
48 M itsu b ish i Eth ern et Driver
* For register memory, the data types Short, Word, BCD, DWord, Long, LBCD and Boolean may append an
optional ".bb" (dot bit) or ":bb" (colon bit) to the address to reference a bit in a particular value. The valid
ranges for the optional bit are 0-15 for Short, Word, BCD and Boolean; and 0-31 for Long, DWord and LBCD.
Strings use the bit number to specify length. The valid length of a string in D memory is 2 to 128 bytes. The
string length must be an even number. Float types do not support bit operations. The bit number is always in
decimal notation.
* * When accessing register memory as Boolean, a bit number is required.
* * * Users can specify a Long data type by appending a space and an "L" to the address. For example,
"CS0000" would be entered as "CS0000 L". This does not apply to arrays or bit accessed registers.
Extended Registers
The extended range for Data Registers is D12288 to D4184063. The extended range for Link Registers is
W3FFF (Hex) to W3FD7FF (Hex). These must be configured on the device.
Array Access
Many device types can be accessed as arrays. Boolean arrays and Date arrays are not supported. The
default array tag for device types is Word. The size of the array depends on both the data type and the
device type. Arrays may be one or two dimensions and the total number of Words being requested cannot
exceed the Max Read Block Size specified for the device.
N ote: An array is created when array notation is appended onto a normal device reference.
Exam ples:
1. D100 [4] Single dimension includes the following register addresses: D100, D101, D102, D103.
2. M016 [3][4] Two Dimensions includes the following device addresses as words: M016, M032, M048,
www. ptc.com
Mitsubishi Ethernet Driver 49
M064, M080, M096, M112, M128, M144, M160, M176, M192 3 rows x 4 columns =12 words 12 x 16
(word) =192 total bits.
2. Access M device memory as Long: M???? where the ???? is a decimal number on 16-bit boundaries
such as 0, 16, 32, 48, and so forth.
www. ptc.com
50 M itsu b ish i Eth ern et Driver
Possible Cause:
1. An attempt has been made to read a non-existent location in the specified device.
2. An attempt has been made to read from an address in a device that is not located on the specified
network node.
Possible Solution:
1. Verify or correct the tags assigned to addresses in the specified range on the device. Eliminate or
update any that reference invalid locations.
Unable t o read from device. The device ret urned a PC num ber error.
Error Type:
Error
Possible Cause:
The PC number entered for the device ID is invalid. This may occur if the MelsecNet station is not available.
Possible Solution:
1. If attempting to communicate with a PC located on MelsecNet, verify the PC number of the target PC.
2. If intending to communicate directly with the local PC with the Ethernet connection, specify a PC num-
ber of 255.
Note:
All tag reads fail until the PC number is corrected.
Unable t o writ e t o address on device. The device ret urned a PC num ber
error. | Address = '<address>'.
Error Type:
www. ptc.com
Mitsubishi Ethernet Driver 51
Error
Possible Cause:
The PC number entered for the device ID is invalid. This may occur if the MelsecNet station is not available.
Possible Solution:
1. If attempting to communicate with a PC located on MelsecNet, verify the PC number of the target PC.
2. If intending to communicate directly with the local PC with the Ethernet connection, specify a PC num-
ber of 255.
Possible Cause:
1. An attempt has been made to write a non-existent location in the specified device.
2. An attempt has been made to write from an address in a device that is not located on the specified
network node.
Possible Solution:
1. Verify or correct the tags assigned to addresses in the specified range on the device. Eliminate or
update any that reference invalid locations.
Possible Cause:
1. An attempt has been made to read a non-existent location in the specified device.
2. An attempt has been made to read from an address in a device that is not located on the specified
network node.
Possible Solution:
1. Verify or correct the tags assigned to addresses in the specified range on the device. Eliminate or
update any that reference invalid locations.
www. ptc.com
52 M itsu b ish i Eth ern et Driver
Possible Cause:
Communication with the device succeeded, but the device reported a problem.
Possible Solution:
Consult the device documentation for information about the error code provided.
Unable t o read from address block on device. Device ret urned an error. |
Address block = '<address>' t o '<address>', Error code = <code>.
Error Type:
Error
Possible Cause:
Communication with the device succeeded, but the device reported a problem.
Possible Solution:
Consult the device documentation for information about the error code provided.
Possible Cause:
Communication with the device succeeded, but the device reported a problem.
Possible Solution:
Consult the device documentation for information about the error code provided.
Possible Cause:
The driver could not allocate the resources required to read from the device.
Possible Solution:
Shut down unnecessary applications and try again.
www. ptc.com
Mitsubishi Ethernet Driver 53
Possible Cause:
The driver could not allocate the resources required to read from the device.
Possible Solution:
Shut down unnecessary applications and try again.
Possible Cause:
The device is not configured to allow transactions during RUN mode.
Possible Solution:
1. For A-Series and QnA-Series PLCs, configure the AJ71E71 card to allow writes to occur during RUN by
setting DIP switch 7 to the ON position.
2. For Q-Series and L-Series PLCs, use GX Developer to enable the setting "Enable Write at RUN time" in
Ethernet Operations settings.
See Also:
1. A-Series PLC Setup
Failed t o synchronize t im e and dat e for device. | Ret ry int erval = <num -
ber> (m inut es).
Error Type:
Warning
Possible Cause:
The driver failed to write time and date data to the PLC.
Possible Solution:
1. Verify the cabling between the PC and the PLC device.
2. Verify that the specified communications parameters match those of the device.
3. Verify that the network ID given to the named device matches that of the actual device.
www. ptc.com
54 M itsu b ish i Eth ern et Driver
Note:
The driver automatically retries after the indicated time interval.
www. ptc.com
Mitsubishi Ethernet Driver 55
The following is provided for convenience only. Refer to the manufacturer's documentation for current and offi-
cial instructions.
N ote: The following is provided for convenience only. Refer to the manufacturer's documentation for cur-
rent and official instructions.
Ladder Program
The Mitsubishi A Series PLC requires that a ladder program be used to initialize the AJ71E71 or A1SJ71E71
Ethernet interface card and define the desired open system. TCP/IP and UDP open systems may be used
with this driver. In the case of TCP/IP, error handling code should also be implemented.
N ote: TCP/IP is less efficient than UDP and requires special ladder to handle network error recovery. Also,
if planning to communicate with devices on a remote network, TCP/IP requires that multiple ports be con-
figured in the relay device. Thus, UDP is recommended wherever possible. For more information, refer to
Multi-level N etworks.
Initialization Ladder
The following initialization code sets the IP address of the device and triggers execution of the open code.
For this example, an IP of 192.168.111.123 (C0.A8.6F.7B Hex) is assumed.
www. ptc.com
56 M itsu b ish i Eth ern et Driver
This code is for the first communications buffer of the AJ71E71 card. Similar code must be implemented for
each additional buffer needed. Simply ensure that the proper interface bits are used as well as separate
error handling bits and timers for each buffer.
N ote: It is strongly recommended that users follow the code fragment as closely as possible. Without
proper error handling and recovery on the PLC side of the connection, communications with the PLC may not
be reestablished after a physical error, such as a cable break, occurs. Without the error handling rep-
resented here, PLC may have to be reset to reestablish communications.
Given the ladder fragment shown here for TCP/IP port operation, the AJ71E71 will be forced to close and re-
enable the port for a connection if the current connection is lost. This will occur 2 seconds after the error is
detected as controlled by T0. Reloading the port mode and port number and the set of Y008 resets the port.
www. ptc.com
Mitsubishi Ethernet Driver 57
communicate with the PLC. To prevent issues with conflicting port usage, the Mitsubishi Ethernet Driver
allows Windows to assign any unused UDP port to each device configured in the driver on startup. Thus, the
port that the driver will use is not predictable. Therefore, the destination port must be configured in the PLC
as "unspecified". This is done by entering FFFF (Hex) as shown below. The exact IP address that the driver
will use may be specified. This example assumes 192.168.111.24 (C0.A8.6F.18 Hex). However, the des-
tination may also be left as "unspecified" with 255.255.255.255 (FF.FF.FF.FF Hex).
N ote: If a specific IP address is put into the ladder code, only the machine with that IP address will be able
to communicate with the PLC via UDP. If the IP address is left as "unspecified," then any IP address can com-
municate with the PLC.
Device Configuration
1. To start, create a new GXDeveloper project for a FX3U model. Then click Tools | FX Special Func-
tion Utility.
www. ptc.com
58 M itsu b ish i Eth ern et Driver
3. Next, specify the FX3U-ENET block's minimum required configuration information. Select a module
from the first drop-down list and then click Operational Settings.
www. ptc.com
Mitsubishi Ethernet Driver 59
4. Specify the settings so that they appear similar to the ones shown above.
5. Click End.
N ote: The example shown below includes only one connection. To make multiple connections to the
device from the OPC server, add another entry on this screen and configure another open port (such as, Port
5002). Check the device's manual to verify the device's available ports.
www. ptc.com
60 M itsu b ish i Eth ern et Driver
2. To allow this driver to choose any port for communications, configure the target port as "unspecified"
by entering 65535 (FFFFHex) in the Transmission target device Port No. field. The IP address that the
driver uses can be specified or not. To enter the "unspecified" address of 255.255.255.255, do as
shown below.
www. ptc.com
Mitsubishi Ethernet Driver 61
After all of the network parameters have been specified, they must be written to the PLC. To do so, click
Write from the main FX-Configurator-ENwindow.
N ote: There must be a serial connection to the FX3U PLC. The configuration settings are written to the PLC
via this serial link. Also make sure that the communication parameters are correct. Settings can be checked
by clicking Transfer Setup or be selecting Online | Transfer Setup from the main menu.
Users must cycle the power on the PLC for the network parameter changes to take effect.
Like the Q series models, the newest L Series Ethernet modules (LJ71E71-100) do not have DIP switches that
need to be set. Furthermore, special ladder logic to enable Ethernet communications is not required. Users
must set network related parameters in the controller, however, using the Mitsubishi GX Developer soft-
ware. Ports may be configured to use TCP/IP or UDP.
N ote: TCP/IP is less efficient than UDP. Users planning to communicate with devices on a remote network
should note that TCP/IP requires multiple ports be configured in the relay device. UDP is recommended
wherever possible. For more information, refer to Multi-level Networks.
Device Configuration
1. To start, create a new GX Developer project for a L Series (LCPU) PLC. Alternatively, open and edit an
existing project.
www. ptc.com
62 M itsu b ish i Eth ern et Driver
www. ptc.com
Mitsubishi Ethernet Driver 63
4. Fill in the required information for the Ethernet module. Although the network type must be Ethernet,
other settings will depend on the particular application. The example below is for station 1 on net-
work 1. The starting I/O No. is 0 in this case because the LJ71E71-100 Ethernet module is installed in
the slot adjacent to the CPU. If there are other modules between the CPU and Ethernet unit, determ-
ine the total I/O mapped to those and set the starting I/O of the Ethernet unit accordingly. Once these
basic network settings are specified, click on Operational Settings.
www. ptc.com
64 M itsu b ish i Eth ern et Driver
5. The Ethernet Operations dialog is used to define the device's IP address. Except for the IP address,
the settings should be as shown below.
N ote: Unless security or safety concerns require otherwise, make sure Enable Write at RUN
tim e is checked. If this is left unchecked, all writes will fail when the PLC is in Run mode.
www. ptc.com
Mitsubishi Ethernet Driver 65
6. Click End.
7. Upon returning to the basic network parameters dialog, click Open settings.
www. ptc.com
66 M itsu b ish i Eth ern et Driver
8. Specify the desired open settings. These depend on the chosen IP protocol, which may be TCP or
UDP.
Tip: Consult the Knowledge Base and the Mitsubishi Technical Bulletin "Existence Confirmation Con-
figuration using Fixed Buffer Communications with a QJ71E71-100 Ethernet Module" for detailed information
about device configuration for TCP communications.
2. Next, specify the destination IP and port. This would be the IP and port that the driver will use to com-
municate with the PLC. To prevent issues with conflicting port usage, the Mitsubishi Ethernet Driver
allows Windows to assign any unused UDP port to each device configured in the driver on startup.
Thus, the port that the driver will use is not predictable. Users must configure the destination port in
the PLC as "unspecified". This is done by entering FFFF (Hex) as shown below.
4. Either specify the IP address that the driver will be using or leave it at the "unspecified" address of
255.255.255.255 as shown below.
www. ptc.com
Mitsubishi Ethernet Driver 67
N ote: Users must cycle the power on the PLC for the network parameter changes to take effect.
www. ptc.com
68 M itsu b ish i Eth ern et Driver
For the Mitsubishi Ethernet Driver to communicate with the Mitsubishi L Series CPU's built-in Ethernet port,
some network parameters must be configured in the PLC.
Device Configuration
The following instructions were created using Mitsubishi GX Works2 software.
1. To start, create a new project for an L Series (LCPU) PLC. Alternatively, open and edit an existing pro-
ject.
3. Open the Built-in Ethernet Port Setting tab, and then make the following changes:
www. ptc.com
Mitsubishi Ethernet Driver 69
4. Next, click Open Setting, and then make the following changes:
www. ptc.com
70 M itsu b ish i Eth ern et Driver
N ote: In the example above, the local port numbers 4998 (1386H) and 4999 (1387H) are
used.
Im portant: The driver's default port settings of 5000 UDP and 5001 TCP are not valid port
numbers for the built-in Ethernet port. The driver uses decimal numbers for the port num-
ber; GX Works2 uses hexadecimal number for the port numbers. Valid port number setting
ranges are 0401H (1025) to 1387H (4999), and 1392H (5010) to FFFEH (65534).
5. Click End.
www. ptc.com
Mitsubishi Ethernet Driver 71
N ote: Users must cycle the power on the PLC for the network parameter changes to take effect.
The following is provided for convenience only. Refer to the manufacturer's documentation for current and offi-
cial instructions.
Ladder Program
The Mitsubishi QnA Series PLC requires that a ladder program be used to initialize the AJ71QE71 or
A1SJ71QE71 Ethernet interface card and define the desired open system. TCP/IP and UDP open systems
may be used with this driver. In the case of TCP/IP, error handling code should also be implemented. Note
that TCP/IP is less efficient than UDP and requires a special ladder to handle network error recovery. Also, if
planning to communicate with devices on a remote network, TCP/IP requires that multiple ports be con-
figured in the relay device. Thus, UDP is recommended wherever possible. For more information, refer to
Multi-level N etworks.
N ote: Power must be cycled to the PLC for any network configuration to take effect.
www. ptc.com
72 M itsu b ish i Eth ern et Driver
Initialization Ladder
The following initialization code sets the IP address of the device and triggers execution of the open code.
For this example, an IP of 192.168.111.123 (C0.A8.6F.7B Hex) is assumed.
This code is for the first communications buffer of the A1SJ71QE71 card. Similar code must be implemented
for each addition buffer needed. Simply ensure that the proper interface bits are used as well as separate
error handling bits and timers for each buffer.
N ote: It is strongly recommended that users follow the code fragment as closely as possible. Without
proper error handling and recovery on the PLC side of the connection, communications may not able to be
reestablished with the PLC after a physical error, such as a cable break, occurs. Without the error handling
represented here, the PLC may need to be reset to reestablish communications.
Given the ladder fragment shown here for TCP/IP port operation, the A1SJ71QE71 will be forced to close and
re-enable the port for a connection if the current connection is lost. This will occur 2 seconds after the error
www. ptc.com
Mitsubishi Ethernet Driver 73
is detected as controlled by T0. Reloading the port mode and port number and the set of Y008 resets the
port.
N ote: If a specific IP address is put into the ladder code, only the machine with that IP address will be able
to communicate with the PLC via UDP. If the IP address is left as "unspecified," then any IP address can com-
municate with the PLC.
The following is provided for convenience only. Refer to the manufacturer's documentation for current and offi-
cial instructions.
Unlike the A and QnA series, the newest Q Series Ethernet modules (QJ71E71-100) do not have DIP switches
that need to be set. Furthermore, special ladder logic to enable Ethernet communications is not required.
Users must set network related parameters in the controller, however, using the Mitsubishi GX Developer
software. Ports may be configured to use TCP/IP or UDP.
N ote: TCP/IP is less efficient than UDP. Users planning to communicate with devices on a remote net-
work should note that TCP/IP requires multiple ports be configured in the relay device. UDP is recommended
wherever possible. For more information, refer to Multi-level N etworks.
Device Configuration
1. To start, create a new GX Developer project for a Q Series (Q mode) PLC. Alternatively, open and edit
an existing project.
www. ptc.com
74 M itsu b ish i Eth ern et Driver
4. Fill in the required information for the Ethernet module. Although the network type must be Ethernet,
other settings will depend on the particular application. The example below is for station 1 on net-
work 1. The starting I/O No. is 0 in this case because the QJ71E71 Ethernet module is installed in the
www. ptc.com
Mitsubishi Ethernet Driver 75
slot adjacent to the CPU. If there are other modules between the CPU and Ethernet unit, determine
the total I/O mapped to those and set the starting I/O of the Ethernet unit accordingly. Once these
basic network settings are specified, click on Operational Settings.
5. The Ethernet Operations dialog is used to define the device's IP address. Except for the IP address,
the settings should be as shown below.
N ote: Unless security or safety concerns require otherwise, make sure "Enable Write at RUN
time" is checked. If this is left unchecked, all writes will fail when the PLC is in Run mode.
6. Click End.
7. Upon returning to the basic network parameters dialog, click Open settings.
www. ptc.com
76 M itsu b ish i Eth ern et Driver
8. Specify the desired open settings. These depend on the chosen IP protocol, which may be TCP or
UDP.
Tip: Consult the Knowledge Base and the Mitsubishi Technical Bulletin "Existence Confirmation Con-
figuration using Fixed Buffer Communications with a QJ71E71-100 Ethernet Module" for detailed information
about device configuration for TCP communications.
2. Next, specify the destination IP and port. This would be the IP and port that the driver will use to com-
municate with the PLC. To prevent issues with conflicting port usage, the Mitsubishi Ethernet Driver
allows Windows to assign any unused UDP port to each device configured in the driver on startup.
Thus, the port that the driver will use is not predictable. Users must configure the destination port in
the PLC as "unspecified". This is done by entering FFFF (Hex) as shown below.
www. ptc.com
Mitsubishi Ethernet Driver 77
4. Either specify the IP address that the driver will be using or leave it at the "unspecified" address of
255.255.255.255 as shown below.
www. ptc.com
78 M itsu b ish i Eth ern et Driver
N ote: Users must cycle the power on the PLC for the network parameter changes to take effect.
The following is provided for convenience only. Refer to the manufacturer's documentation for current and offi-
cial instructions.
Like the Q series models, the newest iQ-R Series Ethernet modules (R08 CPU) do not have DIP switches that
need to be set. Furthermore, special ladder logic to enable Ethernet communications is required. Users
must set network related parameters in the controller via the Mitsubishi GX Developer software. Ports may
be configured to use TCP/IP or UDP.
N ote: TCP/IP is less efficient than UDP. Users planning to communicate with devices on a remote net-
work should note that TCP/IP requires multiple ports be configured in the relay device. UDP is recommended
wherever possible. For more information, refer to Multi-level N etworks.
Device Configuration
1. To start, create a new GX Developer project for a iQ-R Series (R08) PLC. Alternatively, open and edit
an existing project.
l Series: RCPU
l Type: R08
www. ptc.com
Mitsubishi Ethernet Driver 79
5. Set the IP Address settings by selecting Basic Settings in the Navigation window under Param eter |
R08CPU | Module Param eter | Ethernet Port.
www. ptc.com
80 M itsu b ish i Eth ern et Driver
6. Set the External Device Configuration in the Navigation window under Param eter | R08CPU |
Module Param eter | Ethernet Port | Basic Settings.
7. Specify the desired open settings. These depend on the chosen IP protocol, which may be TCP or
UDP.
N ote: Users must cycle the power on the PLC for the network parameter changes to take effect.
The following is provided for convenience only. Refer to the manufacturer's documentation for current and offi-
cial instructions.
Like the Q series models, the newest iQ-F Series Ethernet modules (FX5U-32M) do not have DIP switches
that need to be set. Furthermore, special ladder logic to enable Ethernet communications is required. Users
www. ptc.com
Mitsubishi Ethernet Driver 81
must set network related parameters in the controller via the Mitsubishi GX Developer software. Ports may
be configured to use TCP/IP or UDP.
N ote: TCP/IP is less efficient than UDP. Users planning to communicate with devices on a remote net-
work should note that TCP/IP requires multiple ports be configured in the relay device. UDP is recommended
wherever possible. For more information, refer to Multi-level N etworks.
Device Configuration
1. To start, create a new GX Developer project for a iQ-F Series (FX5) PLC. Alternatively, open and edit
an existing project.
l Series: FX5CPU
l Type: FX5U
www. ptc.com
82 M itsu b ish i Eth ern et Driver
5. Set the IP Address settings by selecting Basic Settings in the Navigation window under Param eter |
FX5UCPU | Module Param eter | Ethernet Port.
6. Set the External Device Configuration in the Navigation window under Param eter | FX5UCPU |
Module Param eter | Ethernet Port | Basic Settings.
7. Specify the desired open settings. These depend on the chosen IP protocol, which may be TCP or
UDP.
N ote:For UDP Protocol Sensor/Device IP Address, the IP of the machine where the server is run-
ning must be specified.
www. ptc.com
Mitsubishi Ethernet Driver 83
2. To convert the ladder program, select the Convert from the main window menu options and click
Convert.
N ote:When the ladder program is incorrect, text in the Navigation window is red. Once suc-
cessfully configured, the text returns to the default color (white).
N ote: Users must cycle the power on the PLC for the network parameter changes to take effect.
For the Mitsubishi Ethernet Driver to communicate with the Mitsubishi Q Series CPU's built-in Ethernet port,
some network parameters must be configured in the PLC.
Device Configuration
The following instructions were created using Mitsubishi GX Works2 software.
www. ptc.com
84 M itsu b ish i Eth ern et Driver
1. To start, create a new project for a Q Series (Q mode) PLC. Alternatively, open and edit an existing
project.
3. Open the Built-in Ethernet Port Setting tab, and then make the following changes:
www. ptc.com
Mitsubishi Ethernet Driver 85
4. Next, click Open Setting, and then make the following changes:
N ote: In the example above, the local port numbers 4998 (1386H) and 4999 (1387H) are
used.
Im portant: The driver's default port settings of 5000 UDP and 5001 TCP are not valid port
numbers for the built-in Ethernet port. The driver uses decimal numbers for the port num-
ber; GX Works2 uses hexadecimal number for the port numbers. Valid port number setting
ranges are 0401H (1025) to 1387H (4999), and 1392H (5010) to FFFEH (65534).
5. Click End.
www. ptc.com
86 M itsu b ish i Eth ern et Driver
N ote: Users must cycle the power on the PLC for the network parameter changes to take effect.
www. ptc.com
Mitsubishi Ethernet Driver 87
Index
32-Bit Data 11
BCD 18
Binary 5
Boolean 18
Channel Assignment 8
Communication Protocol 4
Communications Parameters 12
Communications Timeouts 10
Connect Timeout 10
CPU 12
Data Collection 9
Data Types Description 18
Date 18
Demote on Failure 11
Demotion Period 11
www. ptc.com
88 M itsu b ish i Eth ern et Driver
Failed to synchronize time and date for device. | Retry interval = <number> (minutes). 53
First Word Low 11
Float 18
FX3U Series PLC Setup 57
General 8
GX Developer 12
Help Contents 4
ID 8
Identification 8
Initial Updates from Cache 10
IP Protocol 12
iQ-F Series PLC Setup 80
iQ-R Series PLC Setup 78
www. ptc.com
Mitsubishi Ethernet Driver 89
Network 8
PLC Setup 55
Port 12
www. ptc.com
90 M itsu b ish i Eth ern et Driver
Redundancy 14
Request Timeout 10
Respect Tag-Specified Scan Rate 10
Scan Mode 9
Setup 4
Short 18
Simulated 9
String 18
Supported Communication Parameters 4
Supported Devices 4
Sync Interval 14
TCP/IP 17
Time and Date Synchronization 14
Timeouts to Demote 11
UDP 17
Unable to read from address block on device. | Address block = '<address>' to '<address>'. 52
Unable to read from address block on device. Device returned an error. | Address block = '<address>' to
'<address>', Error code = <code>. 52
Unable to read from address block on device. The device reported an invalid address or an error. |
Address block = '<address>' to '<address>'. 50
Unable to read from address on device. | Address = '<address>'. 53
Unable to read from address on device. Device returned an error. | Address = '<address>', Error code =
<code>. 52
Unable to read from address on device. The device reported an invalid address or an error. | Address =
'<address>'. 51
Unable to read from device. The device returned a PC number error. 50
Unable to write to address on device. Device must be configured to allow writes while in RUN mode. |
Address = '<address>'. 53
www. ptc.com
Mitsubishi Ethernet Driver 91
Unable to write to address on device. Device returned error. | Address = '<address>', Error code =
<code>. 52
Unable to write to address on device. The device reported an invalid address or an error. | Address =
'<address>'. 51
Unable to write to address on device. The device returned a PC number error. | Address =
'<address>'. 50
Unsigned 18
Word 18
Write Full String Length 12
www. ptc.com