Skip to main content
Version: 3.2

JTEKT TOYOPUCTOYOPUC JTEKT TOYOPUC Integration Guide

Read and write the memory of JTEKT TOYOPUC PLCs by device address, over the computer link on TCP or UDP.

Status
Beta
PLCs
PC3J · PC10G · Nano 10GX · TOYOPUC-Plus
Transports
TCP or UDP, on the port set in the PLC (often 1025)
Operations
Read Device · Read Block · Write Device
Triggers
None: poll with a Schedule trigger

TOYOPUC is JTEKT's PLC line, common in automotive plants. Its Ethernet ports answer the binary computer-link commands, over TCP or UDP. MaestroHub reads and writes the PLC's memory by device address, such as D0100, M0010 or P2-D0100: data registers, relays, inputs and outputs, timers and counters, the registers of each of the three programs, and the extended areas. It can also reach a PLC behind another one through its link modules. This guide covers the connection, the PLC models and what each reaches, the address forms, the three function types, and how the matching nodes fit into the Pipeline Designer.

Beta

What stands behind the connector today:

  • Its requests were answered by the simulator of plc-comm-computerlink, an open-source TOYOPUC library someone else wrote, over TCP and over UDP. That covers the word and bit reads and writes, the multi-point reads and writes, the program and extended areas, the PC10 block reads and writes and the CPU status read. A bit written with a bit command and read back with a word command, at both ends of the bit areas, shows that MaestroHub places bits and words where that library's author does.
  • The same library's Python and .NET clients, whose author checked them on real PC10G, PC3J, Nano 10GX and Plus CPUs, were run against the test PLC that MaestroHub's own tests use, over TCP and UDP. The frames those clients send were compared byte for byte with the frames MaestroHub sends for the same operation. The library's address resolver and model profiles were also compared with MaestroHub's.
  • A second author's PC10 client and mock server check MaestroHub's PC10 multi-point read against another reading of it.

What is not proven yet:

  • It has not been run against a real TOYOPUC of any model.
  • JTEKT's Ethernet manuals could not be obtained. The frame layouts and command codes come from the open-source implementations above, one of them checked on real CPUs, and from Kepware's and Pro-face's manuals for these PLCs, which agree with each other.
  • The PLC's error codes: no simulator sends them. The table below is the one Kepware quotes from JTEKT's FL/ET-T-V2 manual; plc-comm-computerlink carries the same table.
  • Which model refuses which device or command, and the largest request each model takes, come from the library's published profiles of real CPUs; a simulator accepts everything. MaestroHub keeps every block request to 256 registers, under every limit the sources give.
  • Relay through real link modules. The simulator does not take the relay layout that its own client and Kepware's driver use, so the relay path is proven against the client only.
  • The byte order of text in registers: a TOYOPUC has no string type, so the order is a convention of the PLC program. A simulator stores whatever it is sent.
  • There is no Wireshark dissector for TOYOPUC, so no third program has decoded MaestroHub's traffic.

Overview​

The JTEKT TOYOPUC connector provides:

  • Six PLC models: PC3J/PC2, PC3JG/PC3JX separate mode, PC10G in standard and in PC10 mode, Nano 10GX and TOYOPUC-Plus, each with its own areas and ranges
  • Basic areas: data registers (D), link registers (R), special registers (S), present value registers (N), file registers (B), and the relays, inputs, outputs, timer and counter contacts (P, K, V, T, C, L, X, Y, M)
  • Programs: P1-, P2- or P3- in front of an address names that program's own copy (P2-D0100)
  • Extended areas: EP to EM, ES, EN, H, GX, GY, GM, U, EB, and FR (file registers in flash, read only)
  • Typed values: BIT, WORD, INT, DWORD, DINT, REAL, LREAL or STRING (UTF-8, Shift-JIS or Windows-1251)
  • Safe bit writes: a single bit is changed by the PLC itself, never read and written back
  • Block reads: many named devices in one node, merged into as few requests as fit, scattered ones in one multi-point read
  • TCP or UDP, and a relay path through up to four link modules

Terms used in this guide​

TermMeaning
Computer linkJTEKT's name for the commands a host sends to a TOYOPUC. One command reads or writes a run of words or bits. MaestroHub uses the binary form the Ethernet ports answer.
AreaA kind of memory, named by one or two letters: D data registers, M internal relays, X and Y inputs and outputs, and so on. The index after the letters is hexadecimal: D0100 is data register 256.
Bit areaAn area of single bits: relays, inputs, outputs, timer and counter contacts. Its words, 16 bits each, are named with a W (M001W).
Program (P1, P2, P3)A PC3JG or PC3JX in separate mode, a PC10G, a Nano 10GX or a TOYOPUC-Plus runs up to three programs, each with its own copy of most basic areas. P2-D0100 is D0100 of program 2.
Extended areasMemory beyond the basic areas, reached with their own commands: EP to EM, ES, EN, H, GX/GY/GM, U, EB, FR.
PCwinJTEKT's programming software. The PLC's Ethernet ports, TCP or UDP, and the hosts allowed to send UDP are set there, in the link parameters.
RelayA request that one PLC's link module passes on to another PLC on its link, up to four hops.

Not supported​

WhatWhy
The serial CMP-Link portNot in this version: Ethernet only, over TCP or UDP.
Writing FR file registersA write to FR lands in RAM and is kept only after a commit to flash, which wears the flash out. FR is read only in this version; a Write Device to it is refused when the function is saved.
A byte of a word (D0100L, D0100H), and a bit of a register (D0100.1)A bit of a register can be changed only by rewriting its whole word, which could undo a change the PLC program made in between. Read the word instead. Such an address is refused with that reason.
Run and stop, reset, the clock, program upload and download, timer and counter presets through the timer commandNot in this version.
A symbolic tag mapNot in this version. Take the addresses from the PLC's program.
A triggerA TOYOPUC does not send data on its own. Poll it with a Schedule trigger.

What happens on connect​

MaestroHub opens the TCP connection, or a UDP socket, to the PLC's computer-link port. Then it reads the PLC's CPU status, through the relay path when there is one. From the PLC at the address any answer counts, also a refusal: it proves that a TOYOPUC answers there. Through a relay path a refusal fails the connect, because the PLC behind the path was then not reached. An open TCP port alone proves nothing, and a UDP socket opens whether or not anything listens.

A computer-link frame carries no request number, so the connection sends one request at a time and takes a reply as the answer only when it repeats the command and has exactly the length the request implies. A reply that does not, a request that gets no answer within the Response Timeout, and a lost connection end the connection, and it is opened again: a late reply could otherwise be read as the answer to the next request. A refusal by the PLC is a whole answer and leaves the connection in use.

Use one MaestroHub connection per PLC port. A TOYOPUC Ethernet port serves one connection, and a module or CPU a few (8 on an EN-I/F, 8 or 32 on a PC10G).

Connection Configuration​

Creating a JTEKT TOYOPUC Connection​

Navigate to Connections → New Connection → JTEKT TOYOPUC and fill in the form. It has four tabs: Connection, Functions, Scaling and Health. The Functions, Scaling and Health tabs unlock after the connection is saved.

1. Profile Information​

FieldDefaultDescription
Profile Name-A descriptive name for this connection profile (required). Must be unique across all connections.
Description-Optional description for this connection
Labels-Key-value pairs to categorize and organize the connection

Example Labels

  • line: body-3: Production line
  • device: pc10g: Specific PLC
  • environment: production: Deployment environment

2. PLC​

FieldDefaultMeaning
Address(required)PLC host name or IP address, e.g. 192.168.1.10
Port1025The computer-link port, 1 to 65535, as set in PCwin's link parameters. The protocol has no port of its own; 1025 is the common setting
Transporttcptcp or udp, as set for that port in the PLC's link parameters. A UDP port answers only the hosts in the PLC's other node table: see UDP
UDP Local Port0UDP only: the port MaestroHub sends from, the one entered for this host in the PLC's other node table, 0 to 65535. 0 lets the system pick one, for a PLC that answers any port
PLC Model(required, no default)The CPU and its mode: pc3j-pc2, pc3j-separate, pc10g-standard, pc10g-pc10, nano10gx or plus. See PLC models
Relay Path(empty)Optional, to reach a PLC behind this one through its link modules, e.g. P1-L2:N3. Empty for the PLC at the address. See Relay path
Connection Timeout5sMaximum time to open the connection and read the PLC's CPU status (1s to 5m)
Response Timeout5sHow long one request waits for the PLC's reply (500ms to 1m). A relayed request may need longer
String Encodingutf-8How STRING values are stored in the PLC: utf-8, shift-jis (Japanese text) or windows-1251 (Cyrillic)

Each function has its own Timeout (default 30m) that bounds the whole operation. Within it, each request waits at most the Response Timeout for its reply.

The connection is refused when it carries a setting it would ignore: a UDP Local Port other than 0 with the tcp transport.

JTEKT TOYOPUC connection formJTEKT TOYOPUC connection form

The Connection tab: the PLC's address and port, the transport and the PLC model

PLC models​

The model decides which areas exist, how far each reaches and which commands MaestroHub sends. Nothing is guessed from an address, so PLC Model has no default: choose the CPU and the mode it runs in.

PLC ModelForProgramsWhat it reaches
pc3j-pc2A PC2, or a PC3J in PC2 interchange modeOne: P1- to P3- are refusedThe basic areas only, D to D2FFF and B to B1FFF. No extended areas
pc3j-separateA PC3JG or PC3JX in its own multi-program (separate) modeThreeThe basic areas, D to D2FFF, B, the extended areas, U to U07FFF and EB to EB1FFFF
pc10g-standardA PC10G in standard (PC3JG) modeThreeThe basic areas, D to D0FFF, B, the extended areas, U to U07FFF and EB to EB1FFFF
pc10g-pc10A PC10G in PC10 modeThree, with their upper rangesThe basic areas with their upper ranges, D to D2FFF, B, the extended areas, U to U1FFFF, EB to EB3FFFF and FR to FR1FFFFF
nano10gxA Nano 10GXThree, with their upper rangesAs pc10g-pc10, without B
plusA TOYOPUC-PlusThreeThe basic areas, D to D0FFF, the extended areas and U to U07FFF. No B, EB or FR

The tables are the published model profiles of plc-comm-computerlink, whose author checked them on real CPUs. The pc3j-pc2 table is Kepware's PC2 model, which agrees with JTEKT's basic area table.

pc3j-separate is one setting for both CPUs in that mode. A PC3JX has no GX, GY, GM or EB, and a PC3JG has no D1000 to D2FFF: such a device is refused by the PLC, not by MaestroHub. See Troubleshooting.

UDP​

A PLC port set to UDP answers only the hosts entered in its other node table (in PCwin's link parameters), each with the port it sends from. To use UDP:

  1. Set Transport to udp and Port to the PLC's UDP port.
  2. Enter the MaestroHub host's IP address and a port in the PLC's other node table.
  3. Set UDP Local Port to that same port. MaestroHub sends from it, so each UDP connection on one MaestroHub host needs its own local port.

Each frame travels in one UDP datagram. A PLC that does not have the host in its table is not expected to answer, so a missing entry shows as no answer rather than as a refusal.

Relay path​

A request can reach a PLC behind this one: the first PLC's link module passes it on over its link, and so on, up to four hops. The Relay Path lists the hops, the first one reached first, separated by commas. Each hop is written P<program>-L<link>:N<station> in decimal:

PartRangeMeaning
P0 to 15, optionalThe program number, the high half of the hop's link byte. Left out, it is 0
L0 to 15The link number of the link module
N1 to 65535The station number on that link

For example, P1-L2:N3 passes the request to station 3 on link 2, and P1-L2:N3,L1:N5 goes on from there to station 5 on link 1. Leave it empty for the PLC at the address. PLC Model is the model of the PLC at the end of the path.

The connection is refused when the path is not written this way, has more than four hops, or has a number out of range. The CPU status read on connect goes along the path too, so a wrong link or station fails Test Connection, naming the hop that refused or did not answer.

Testing the Connection​

Click Test Connection at the bottom of the form to try the current settings before saving. It connects as described in What happens on connect. Once the connection runs, its health probe reads the CPU status again and reports the round trip. When the PLC does not answer, the connection is closed and opened again. When a hop of the relay path refuses the probe, the health check fails with the hop's error and the connection to the first PLC stays open.

Function Builder​

Creating JTEKT TOYOPUC Functions​

After the connection is saved:

  1. Open the connection and navigate to the Functions tab
  2. Click New Function to open the function type selection dialog
  3. Choose Read Device, Read Block or Write Device
  4. Fill the Basic tab (name, description, labels) and the Configuration tab (operation-specific parameters)
  5. Use the Test button to run the function against the live PLC before saving. Testing a Write Device function writes to the PLC
JTEKT TOYOPUC function typesJTEKT TOYOPUC function types

Two reads and one write

Device Addresses​

A device address is an area and its index in hexadecimal, as JTEKT writes it: D0100 is data register 0x100, which is 256. Letter case and leading zeros do not matter, so d100 is D0100.

  • A program's copy. P1-, P2- or P3- in front names that program's own copy: P2-D0100. The areas P, K, V, T, C, L, X, Y, M, S, N, R and D have a copy per program. Without a prefix, an address reaches the program that the PLC's link parameters name, as JTEKT's manual says; this works on every model. On pc3j-pc2, which runs one program, a prefix is refused. B and the extended areas are not kept per program, so a prefix there is refused too.
  • The upper ranges of a PC10G in PC10 mode and a Nano 10GX (M1000 to M17FF and the others in the table below) belong to the programs: name them with a prefix, P1-M1000.
  • A bit area's words. In a bit area, the index names one bit: M0010 is one internal relay. W after the index names a word of 16 bits: M001W is M0010 to M001F, and bit n of M001W is M001n. A register area takes no W: D0100 already names a word.
  • Shared ranges. X and Y are one range of memory, and so are T and C, EX and EY, ET and EC, GX and GY: X0010 and Y0010 read the same bit.
  • Results give the device back in one standard form: d100 comes back as D0100, p2-d100 as P2-D0100, m1w as M001W and u8000 as U08000.

Basic areas

AreaWhat it isKindRangeUpper range, with P1- to P3- (pc10g-pc10, nano10gx)
PEdge relayBitsP0000 to P01FFP1000 to P17FF
KKeep relayBitsK0000 to K02FF-
VSpecial relayBitsV0000 to V00FFV1000 to V17FF
TTimer contactBitsT0000 to T01FFT1000 to T17FF
CCounter contactBitsC0000 to C01FFC1000 to C17FF
LLink relayBitsL0000 to L07FFL1000 to L2FFF
XInputBitsX0000 to X07FF-
YOutputBitsY0000 to Y07FF-
MInternal relayBitsM0000 to M07FFM1000 to M17FF
SSpecial registerRegistersS0000 to S03FFS1000 to S13FF
NPresent value registerRegistersN0000 to N01FFN1000 to N17FF
RLink registerRegistersR0000 to R07FF-
DData registerRegistersD0000 to D2FFF (D0FFF on pc10g-standard and plus), with or without a prefix-
BFile registerRegistersB0000 to B1FFF, not on nano10gx and plus; no prefix-

Extended areas (not on pc3j-pc2; no prefix)

AreaWhat it isKindRange
EP, EK, EVExtended edge, keep and special relayBits0000 to 0FFF
ET, ECExtended timer and counter contactBits0000 to 07FF
ELExtended link relayBits0000 to 1FFF
EX, EYExtended input and outputBits0000 to 07FF
EMExtended internal relayBits0000 to 1FFF
GX, GY, GMExtended input, output and internal relayBits0000 to FFFF
ESExtended special registerRegistersES0000 to ES07FF
ENExtended present value registerRegistersEN0000 to EN07FF
HExtended set value registerRegistersH0000 to H07FF
UExtended data registerRegistersU00000 to U07FFF; to U1FFFF on pc10g-pc10 and nano10gx
EBExtended buffer registerRegistersEB00000 to EB1FFFF; to EB3FFFF on pc10g-pc10 and nano10gx; not on plus
FRFile register in flash, read onlyRegistersFR000000 to FR1FFFFF, on pc10g-pc10 and nano10gx only

The address and its data type are checked when the function is saved: an address that is no address, or a data type its area does not hold, refuses the save. The model's areas and ranges are checked when the function runs on its connection, before anything is sent. Which devices the PLC's program uses is up to the program; a device past the end of what the PLC has is refused by the PLC with error 40.

Data Types​

Data TypeRegistersValue
BIT-true or false; one bit of a bit area (M0010)
WORD1Unsigned 16-bit, 0 to 65535 (the default)
INT1Signed 16-bit, -32768 to 32767
DWORD2Unsigned 32-bit
DINT2Signed 32-bit
REAL232-bit floating point
LREAL464-bit floating point
STRING⌈length / 2⌉Text, two bytes per register
  • BIT is for one bit of a bit area, the word types for registers and for the W words of a bit area. A mismatch is refused with the form to use: M0010 with a word type says to name M001W, M001W as BIT says to name one bit, and D0100 as BIT says it is a register.
  • Values of two or four registers are stored low register first: a DINT at D0100 keeps its low 16 bits in D0100 and its high 16 bits in D0101. This is how plc-comm-computerlink, checked on real CPUs, and the second PC10 client store them.
  • A STRING is String Length bytes (1 to 256) in ⌈length / 2⌉ registers. A TOYOPUC has no string type, so the layout is the PLC program's convention: by default the first character is in the low byte of the first register; String Byte Order high puts it in the high byte. Text shorter than the length is followed by zero bytes, and a read stops at the first zero byte. Text longer than the length is refused, not cut. "ABC" with length 4 at D0200 is D0200 = 4241H, D0201 = 0043H in the low order, and D0200 = 4142H, D0201 = 4300H in the high order. Its bytes are in the connection's String Encoding: one byte per ASCII character in UTF-8 or Shift-JIS, two per Japanese character in Shift-JIS.

Read Device (toyopuc.read.device)​

Purpose: Reads one typed value from a device, or Count consecutive values as a list.

ParameterDefaultMeaning
Device(required)A device address: D0100, M0010, M001W, P2-D0100, EB00000
Data TypeWORDHow to interpret the value. See Data Types
Count11 to 1000. 1 returns the value; more returns a list. Ignored for STRING
String Length1STRING length in bytes, 1 to 256. Ignored for other types
String Byte OrderlowWhich byte of each register holds the first character of a STRING: low or high. Ignored for other types
Timeout30mBound on this operation (1s to 1h)
  • Consecutive values follow each other by their size: D0100 as DINT with Count 3 reads D0100 to D0101, D0102 to D0103 and D0104 to D0105.
  • A BIT with a Count reads consecutive bits: M0010 with Count 4 gives M0010 to M0013. They are read in the words that hold them; a read changes nothing.
  • A read of more than 256 registers is sent as several block reads, one after the other.
  • A read that runs past the end of what the model reaches is refused before anything is sent.

Read Block (toyopuc.read.block)​

Purpose: Reads many named, typed devices in the fewest requests, and returns every value by its name. Use it to read a line's counts, setpoints and alarm bits in one node.

ParameterDefaultMeaning
Data Points(required)A list of points. Each point has a name, the key of its value in the result; a device such as D0100, M0010 or P2-D0100; a dataType; and a length in bytes for a STRING. Each name is used once. A point without a name is named by its device
String Byte OrderlowWhich byte of each register holds the first character of a STRING point: low or high. Ignored for other types
Timeout30mBound on this operation (1s to 1h)

Each point reads one value. How the points are merged:

  • Points whose registers lie close together in the PLC's memory, at most 16 registers apart, are read with one block read, the registers between them included, up to 256 registers.
  • What is left over, single values of one or two registers standing alone, is read with one multi-point read when two or more share one: up to 128 registers of the basic areas; up to 176 points of the program and extended areas whose reply fits in 128 bytes, mixing programs and areas; up to 127 registers of the areas the PC10 commands reach (U08000 and up, EB on every model but pc3j-separate, and FR).
  • A single bit of a program area (P1-M0010) or an extended bit area (EM0010) is a bit point of that multi-point read. A bit of a basic area (M0010) is read in its word.
  • When the PLC refuses a request that served several points, MaestroHub asks for each of those points on its own, so a device that does not exist does not take its neighbours with it. The result's totalReads counts those requests too.

A point that is not an address, or whose data type its area does not hold, refuses the save. A point the PLC refuses, or one the model does not have (EB00000 on a plus), is reported by name in the result's errors, and the other points are still read. The node fails only when the link fails: when the connection drops, or when no point got any answer from the PLC.

Write Device (toyopuc.write.device)​

Purpose: Writes one typed value to a device, or a list of values to consecutive registers in one request.

ParameterDefaultMeaning
Device(required)A writable device: a register (D0200, P1-D0100, U08000), the W word of a bit area (M001W), or one bit (M0010). FR is read only
Data TypeWORDHow to encode the value
Value(required)The value, parsed by the data type: a number, true/false, 1/0 or on/off for a bit, or text for a STRING. A JSON list such as [1, 2, 3] writes consecutive registers, or consecutive bits. Supports ((paramName)) templates
String Length1STRING length in bytes, 1 to 256; longer text is refused. Ignored for other types
String Byte OrderlowWhich byte of each register gets the first character of a STRING: low or high. Ignored for other types
Timeout30mBound on this operation (1s to 1h)
Write Device function parametersWrite Device function parameters

A Write Device function whose value is the ((setpoint)) parameter, filled by the pipeline

The write rules:

  • A bit is changed by the PLC. MaestroHub sends the PLC's bit-write command, and the PLC changes that bit itself, so a bit its program changes in the same word in the meantime is never overwritten. MaestroHub never reads the word and writes it back.
  • A list of bits ([true, false, true] to a bit) changes consecutive bits, at most 128:
    • in a program area (P1-M0010) or an extended bit area (EM0010, GY0020): with one multi-point write, carried out whole or not at all;
    • in a basic area (M0010, Y0020, an address without P1- to P3-), which has no multi-bit write command: with one bit write per bit, in order. The write is then not all or nothing: a failure part way says how many bits were written, for example 12 of the 16 bits from M0010 were written, the next one was not: …. To change 16 bits in one request, write their word (M001W) as WORD; that sets all 16.
  • A list of values ([120, 45, 3]) writes consecutive registers in one request, so the write is carried out whole or not at all. It carries at most 256 registers. A run that crosses from one block of U or EB into the next (U07FFF to U08000, EB07FFF to EB08000) is written with two different commands, so it is refused: write the two parts separately. A STRING takes one text value per write.
  • FR is read only. A Write Device to FR is refused when the function is saved, and nothing is ever sent.
  • Nothing is sent when a value does not fit its device: text into a word, 70000 into an INT, a fraction into a whole-number type, text longer than String Length, a device the model does not have.
A write happens when the node runs, or not at all

A write is never buffered for later delivery: a setpoint that arrives an hour late is a new decision, not the old one. A pipeline run started by a late (replayed) input does not execute the write unless the node allows late input. A write that got no answer may be sent again by the node's Retry on Fail: writing the same value twice leaves the PLC in the same state. A write the PLC refused for its address, its command, its size or a protection is not retried.

Using Parameters​

The Value field supports ((parameterName)) placeholders; they appear in the Function Parameters block, where you set each one's type, whether it is required, and a default. For example, Device D0200, Data Type REAL and Value ((setpoint)) write the node's setpoint parameter to D0200. The Device field takes an address: it is checked when the function is saved.

Pipeline Integration​

Use the functions you configure here as nodes inside the Pipeline Designer. Each function type has its own node:

  • JTEKT TOYOPUC Read Device (connected.toyopuc.read.device): executes a toyopuc.read.device function
  • JTEKT TOYOPUC Read Block (connected.toyopuc.read.block): executes a toyopuc.read.block function
  • JTEKT TOYOPUC Write Device (connected.toyopuc.write.device): executes a toyopuc.write.device function

A TOYOPUC does not send data on its own: to poll one, drive the reads from a Schedule trigger.

JTEKT TOYOPUC node in the pipeline designerJTEKT TOYOPUC node in the pipeline designer

The Read Device node with its connection and function

For node-level details (output structure, execution settings), see the JTEKT TOYOPUC Nodes page.

For orchestration strategies that mix these PLCs with other data sources, see the Nodes page.

Common Use Cases​

Production counts and alarms to a historian or the UNS​

A Read Block of a line's counts (D0100 as DINT), alarm relays (M0010 as BIT) and a program's setpoints (P2-D0200 as REAL) on a Schedule trigger, routed to a historian or the Unified Namespace. Neighbouring registers share a request, so a block of related devices costs few round trips.

Setpoints and recipes​

A parameterized Write Device function (Value: ((setpoint))) fed from an MES or an operator form, with a Condition node checking the range first. A list such as [120, 45, 3] writes a recipe to consecutive registers in one request.

Acknowledging alarms and setting control bits​

Write true to a relay (M0010) to acknowledge an alarm or request a sequence. Only that bit changes; the program's other bits in the same word are left as they are.

A PLC behind another one​

Set a Relay Path (P1-L2:N3) to reach a PLC on a link behind the one MaestroHub connects to, without a network route of its own.

Troubleshooting​

Error Reference​

The texts below leave out the toyopuc: that most messages start with. A refusal by the PLC ends with its error code, for example (error code 0x40).

CodeWhat you seeWhat to doRetried?
40the PLC refused the request: the address, or the address plus the count, is out of range: the device does not exist on this PLC, or is past the end of its areaCheck the device against the PLC's program, and the last of Count values or of a list against the end of the area. On pc3j-separate, a PC3JX has no GX, GY, GM or EB and a PC3JG no D1000 to D2FFFNo
41the PLC refused the request: the word or byte count is out of range: the request is larger than this PLC takesRead or write fewer values in one function: a lower Count, a shorter listNo
23the PLC refused the request: the command is not one the PLC knows: check the PLC model of the connection: this model may not take the commandSet PLC Model to the CPU and the mode it runs inNo
34the PLC refused the request: access is prohibited by the PLC's settings: the PLC's link parameters do not allow this accessAllow the access in the PLC's link parametersNo
31the PLC refused the request: writing is prohibited while the program runsThe PLC takes this write only while its program is stoppedNo
3Dthe PLC refused the request: a competing process prevents itAnother process in the PLC prevents it for now; a retry can succeed once that process is doneYes
3Ethe PLC refused the request: the PLC is being resetWait for the reset to finishYes
73… relay commands collided on the same link module; retryAnother relayed request used the same link module at the same momentYes

The other codes of the table:

CodeMeaningRetried?
11CPU hardware faultYes
20, 21A relay command's fixed byte is not 05 (ENQ), or its transfer number is wrongNo
24, 25, 26The sub-command is not one the PLC knows; a byte of the command is wrong; the function call has the wrong number of operandsNo
32, 3FThe command cannot be carried out while a stop continues, or during the stopYes
33A debug function was called while the PLC is not in debug modeNo
35The PLC's execution priority setting does not allow thisNo
36Another device holds the execution priorityYes
39The PLC must be reset after its I/O parameters were writtenYes
3CThe command cannot be carried out during a fatal failureYes
42, 43Data was sent that the command does not take; a function call operand is wrongNo
52The timer or counter is not in useNo
66, 72The relay link module did not answerYes
70The relay link module cannot carry out the commandYes

Messages that do not come from the PLC's error table:

What you seeMeaningRetried?
the PLC refused the request (response code 0x…, no error code)The PLC refused the request with a response code that carries no error codeYes
hop 2 of the relay path (P0-L1:N5) refused the request: …That hop of the relay path did not pass the request on, or the PLC behind it refused it. The code after it is from the table aboveAs the code
EB00000: a Plus has no EB (extended buffer register) areaThe model has no such area. Nothing was sentNo
D1000: a PC10G standard mode reaches D0000 to D0FFFThe index is past what the model reaches. Nothing was sentNo
M1000: a PC10G PC10 mode reaches M0000 to M07FFAn upper range without a program prefix. Write P1-M1000. Nothing was sentNo
P1-D0100: a PC3J/PC2 interchange runs one program; write the address without P1-A prefix on a one-program model. Nothing was sentNo
P1-B0000: B is not kept per program; write it without P1-A prefix on an area that has no copy per program. Nothing was sentNo
M0010 names one bit: read it as BIT, or name the word that holds it, M001W, to read 16 bits as WORDA word type on one bit. The save is refusedNo
D0100 is a register: read it as WORD, INT, DWORD, DINT, REAL, LREAL or STRINGBIT on a register. The save is refusedNo
FR000000 is read only: …A write to FR, refused when the function is saved. Nothing was sentNo
… one write carries at most 256 / … one write changes at most 128The list does not fit in one request. Nothing was sentNo
… lie in two blocks of U, which are written with different commands; write them separatelyA list that crosses a block of U or EB. Nothing was sentNo
12 of the 16 bits from M0010 were written, the next one was not: …A list of bits in a basic area failed part way. The reason followsAs the reason
no answer from the PLC: …The request was sent and not answered within the Response Timeout. The connection is closed and opened againYes
the request was not sent: its call ended while it waited for the connection: …The call was cancelled, or ran out of time, while the request waited behind another request on the connection. Nothing reached the PLC, so a write has not taken effect. The connection stays upYes
the reply does not answer the request: …A reply that does not repeat the command or has the wrong length. The connection is closed and opened againYes
not connectedThe connection is not upYes, after reconnect

"Retried?" says whether the node's Retry on Fail setting sends the request again. A refusal that names the address, the command, the size or a protection, and a request MaestroHub refuses before sending, give the same answer every time, so they are not retried. A busy PLC (3D, 3E), a relay collision (73) and no answer are retried.

Connection Issues​

SymptomPossible CauseSolution
Test Connection fails with connect to the TOYOPUC at … over tcpNothing listens at that address and port, or a firewall is in the wayCheck the PLC's IP address, the port in PCwin's link parameters, and that the port is reachable from the MaestroHub host
Test Connection fails with did not answer a CPU status read … no answer from the PLC over TCPThe port took the connection but answered no computer-link requestCheck that the port is the computer-link port and is set to TCP in the PLC's link parameters
A UDP connection never answers: did not answer a CPU status read … no answer from the PLCThe PLC answers UDP only from the hosts and ports in its other node table, or the port is set to TCPEnter the MaestroHub host's IP address and a port in the PLC's other node table, and set UDP Local Port to that port. Check that Transport matches the port's setting. See UDP
A UDP connection fails with address already in useAnother connection or program on the MaestroHub host already sends from that UDP Local PortGive each UDP connection its own local port, and enter each in the PLC's other node table
Every request fails with error 23, or the model refuses devices the PLC hasPLC Model does not match the CPU or its modeSet the model and mode the CPU runs in. See PLC models
A device is refused with a … reaches … or has no … areaThe model does not reach that device, or an upper range is written without a program prefixUse a device the model has, or add P1-, P2- or P3- for an upper range
Test Connection or requests fail with hop 1 of the relay path (…) refused the requestThat hop's link module did not pass the request on: a wrong link or station number, a station that is off or not on that linkCheck the hop's L and N against the link module's settings. Codes 66 and 72 (the link module did not answer) and 73 (collision) are retried; 20 and 21 are not
Relayed requests fail with no answer from the PLCThe request and its reply take longer through the hops than the Response TimeoutRaise Response Timeout
Requests fail with writing is prohibited while the program runsThe PLC does not take that write while its program runsWrite while the program is stopped. The refusal is permanent, so the node does not retry it