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.
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-orP3-in front of an address names that program's own copy (P2-D0100) - Extended areas:
EPtoEM,ES,EN,H,GX,GY,GM,U,EB, andFR(file registers in flash, read only) - Typed values:
BIT,WORD,INT,DWORD,DINT,REAL,LREALorSTRING(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
| Term | Meaning |
|---|---|
| Computer link | JTEKT'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. |
| Area | A 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 area | An 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 areas | Memory beyond the basic areas, reached with their own commands: EP to EM, ES, EN, H, GX/GY/GM, U, EB, FR. |
| PCwin | JTEKT'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. |
| Relay | A request that one PLC's link module passes on to another PLC on its link, up to four hops. |
Not supported
| What | Why |
|---|---|
| The serial CMP-Link port | Not in this version: Ethernet only, over TCP or UDP. |
Writing FR file registers | A 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 command | Not in this version. |
| A symbolic tag map | Not in this version. Take the addresses from the PLC's program. |
| A trigger | A 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
| Field | Default | Description |
|---|---|---|
| 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 linedevice: pc10g: Specific PLCenvironment: production: Deployment environment
2. PLC
| Field | Default | Meaning |
|---|---|---|
| Address | (required) | PLC host name or IP address, e.g. 192.168.1.10 |
| Port | 1025 | The 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 |
| Transport | tcp | tcp 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 Port | 0 | UDP 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 Timeout | 5s | Maximum time to open the connection and read the PLC's CPU status (1s to 5m) |
| Response Timeout | 5s | How long one request waits for the PLC's reply (500ms to 1m). A relayed request may need longer |
| String Encoding | utf-8 | How 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.


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 Model | For | Programs | What it reaches |
|---|---|---|---|
pc3j-pc2 | A PC2, or a PC3J in PC2 interchange mode | One: P1- to P3- are refused | The basic areas only, D to D2FFF and B to B1FFF. No extended areas |
pc3j-separate | A PC3JG or PC3JX in its own multi-program (separate) mode | Three | The basic areas, D to D2FFF, B, the extended areas, U to U07FFF and EB to EB1FFFF |
pc10g-standard | A PC10G in standard (PC3JG) mode | Three | The basic areas, D to D0FFF, B, the extended areas, U to U07FFF and EB to EB1FFFF |
pc10g-pc10 | A PC10G in PC10 mode | Three, with their upper ranges | The basic areas with their upper ranges, D to D2FFF, B, the extended areas, U to U1FFFF, EB to EB3FFFF and FR to FR1FFFFF |
nano10gx | A Nano 10GX | Three, with their upper ranges | As pc10g-pc10, without B |
plus | A TOYOPUC-Plus | Three | The 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:
- Set Transport to
udpand Port to the PLC's UDP port. - Enter the MaestroHub host's IP address and a port in the PLC's other node table.
- 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:
| Part | Range | Meaning |
|---|---|---|
P | 0 to 15, optional | The program number, the high half of the hop's link byte. Left out, it is 0 |
L | 0 to 15 | The link number of the link module |
N | 1 to 65535 | The 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:
- Open the connection and navigate to the Functions tab
- Click New Function to open the function type selection dialog
- Choose Read Device, Read Block or Write Device
- Fill the Basic tab (name, description, labels) and the Configuration tab (operation-specific parameters)
- Use the Test button to run the function against the live PLC before saving. Testing a Write Device function writes to the PLC


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-orP3-in front names that program's own copy:P2-D0100. The areasP,K,V,T,C,L,X,Y,M,S,N,RandDhave 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. Onpc3j-pc2, which runs one program, a prefix is refused.Band 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 (
M1000toM17FFand 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:
M0010is one internal relay.Wafter the index names a word of 16 bits:M001WisM0010toM001F, and bit n ofM001WisM001n. A register area takes noW:D0100already names a word. - Shared ranges.
XandYare one range of memory, and so areTandC,EXandEY,ETandEC,GXandGY:X0010andY0010read the same bit. - Results give the device back in one standard form:
d100comes back asD0100,p2-d100asP2-D0100,m1wasM001Wandu8000asU08000.
Basic areas
| Area | What it is | Kind | Range | Upper range, with P1- to P3- (pc10g-pc10, nano10gx) |
|---|---|---|---|---|
P | Edge relay | Bits | P0000 to P01FF | P1000 to P17FF |
K | Keep relay | Bits | K0000 to K02FF | - |
V | Special relay | Bits | V0000 to V00FF | V1000 to V17FF |
T | Timer contact | Bits | T0000 to T01FF | T1000 to T17FF |
C | Counter contact | Bits | C0000 to C01FF | C1000 to C17FF |
L | Link relay | Bits | L0000 to L07FF | L1000 to L2FFF |
X | Input | Bits | X0000 to X07FF | - |
Y | Output | Bits | Y0000 to Y07FF | - |
M | Internal relay | Bits | M0000 to M07FF | M1000 to M17FF |
S | Special register | Registers | S0000 to S03FF | S1000 to S13FF |
N | Present value register | Registers | N0000 to N01FF | N1000 to N17FF |
R | Link register | Registers | R0000 to R07FF | - |
D | Data register | Registers | D0000 to D2FFF (D0FFF on pc10g-standard and plus), with or without a prefix | - |
B | File register | Registers | B0000 to B1FFF, not on nano10gx and plus; no prefix | - |
Extended areas (not on pc3j-pc2; no prefix)
| Area | What it is | Kind | Range |
|---|---|---|---|
EP, EK, EV | Extended edge, keep and special relay | Bits | 0000 to 0FFF |
ET, EC | Extended timer and counter contact | Bits | 0000 to 07FF |
EL | Extended link relay | Bits | 0000 to 1FFF |
EX, EY | Extended input and output | Bits | 0000 to 07FF |
EM | Extended internal relay | Bits | 0000 to 1FFF |
GX, GY, GM | Extended input, output and internal relay | Bits | 0000 to FFFF |
ES | Extended special register | Registers | ES0000 to ES07FF |
EN | Extended present value register | Registers | EN0000 to EN07FF |
H | Extended set value register | Registers | H0000 to H07FF |
U | Extended data register | Registers | U00000 to U07FFF; to U1FFFF on pc10g-pc10 and nano10gx |
EB | Extended buffer register | Registers | EB00000 to EB1FFFF; to EB3FFFF on pc10g-pc10 and nano10gx; not on plus |
FR | File register in flash, read only | Registers | FR000000 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 Type | Registers | Value |
|---|---|---|
BIT | - | true or false; one bit of a bit area (M0010) |
WORD | 1 | Unsigned 16-bit, 0 to 65535 (the default) |
INT | 1 | Signed 16-bit, -32768 to 32767 |
DWORD | 2 | Unsigned 32-bit |
DINT | 2 | Signed 32-bit |
REAL | 2 | 32-bit floating point |
LREAL | 4 | 64-bit floating point |
STRING | ⌈length / 2⌉ | Text, two bytes per register |
BITis for one bit of a bit area, the word types for registers and for theWwords of a bit area. A mismatch is refused with the form to use:M0010with a word type says to nameM001W,M001WasBITsays to name one bit, andD0100asBITsays it is a register.- Values of two or four registers are stored low register first: a
DINTatD0100keeps its low 16 bits inD0100and its high 16 bits inD0101. This is how plc-comm-computerlink, checked on real CPUs, and the second PC10 client store them. - A
STRINGis 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 Orderhighputs 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 atD0200isD0200 = 4241H,D0201 = 0043Hin the low order, andD0200 = 4142H,D0201 = 4300Hin 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.
| Parameter | Default | Meaning |
|---|---|---|
| Device | (required) | A device address: D0100, M0010, M001W, P2-D0100, EB00000 |
| Data Type | WORD | How to interpret the value. See Data Types |
| Count | 1 | 1 to 1000. 1 returns the value; more returns a list. Ignored for STRING |
| String Length | 1 | STRING length in bytes, 1 to 256. Ignored for other types |
| String Byte Order | low | Which byte of each register holds the first character of a STRING: low or high. Ignored for other types |
| Timeout | 30m | Bound on this operation (1s to 1h) |
- Consecutive values follow each other by their size:
D0100asDINTwith Count 3 readsD0100toD0101,D0102toD0103andD0104toD0105. - A
BITwith a Count reads consecutive bits:M0010with Count 4 givesM0010toM0013. 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.
| Parameter | Default | Meaning |
|---|---|---|
| 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 Order | low | Which byte of each register holds the first character of a STRING point: low or high. Ignored for other types |
| Timeout | 30m | Bound 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 (
U08000and up,EBon every model butpc3j-separate, andFR). - 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
totalReadscounts 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.
| Parameter | Default | Meaning |
|---|---|---|
| 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 Type | WORD | How 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 Length | 1 | STRING length in bytes, 1 to 256; longer text is refused. Ignored for other types |
| String Byte Order | low | Which byte of each register gets the first character of a STRING: low or high. Ignored for other types |
| Timeout | 30m | Bound on this operation (1s to 1h) |


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 withoutP1-toP3-), 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 example12 of the 16 bits from M0010 were written, the next one was not: …. To change 16 bits in one request, write their word (M001W) asWORD; that sets all 16.
- in a program area (
- 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 ofUorEBinto the next (U07FFFtoU08000,EB07FFFtoEB08000) is written with two different commands, so it is refused: write the two parts separately. ASTRINGtakes one text value per write. FRis read only. A Write Device toFRis 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,
70000into anINT, a fraction into a whole-number type, text longer than String Length, a device the model does not have.
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 atoyopuc.read.devicefunction - JTEKT TOYOPUC Read Block (
connected.toyopuc.read.block): executes atoyopuc.read.blockfunction - JTEKT TOYOPUC Write Device (
connected.toyopuc.write.device): executes atoyopuc.write.devicefunction
A TOYOPUC does not send data on its own: to poll one, drive the reads from a Schedule trigger.


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).
| Code | What you see | What to do | Retried? |
|---|---|---|---|
40 | the 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 area | Check 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 D2FFF | No |
41 | the PLC refused the request: the word or byte count is out of range: the request is larger than this PLC takes | Read or write fewer values in one function: a lower Count, a shorter list | No |
23 | the 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 command | Set PLC Model to the CPU and the mode it runs in | No |
34 | the PLC refused the request: access is prohibited by the PLC's settings: the PLC's link parameters do not allow this access | Allow the access in the PLC's link parameters | No |
31 | the PLC refused the request: writing is prohibited while the program runs | The PLC takes this write only while its program is stopped | No |
3D | the PLC refused the request: a competing process prevents it | Another process in the PLC prevents it for now; a retry can succeed once that process is done | Yes |
3E | the PLC refused the request: the PLC is being reset | Wait for the reset to finish | Yes |
73 | … relay commands collided on the same link module; retry | Another relayed request used the same link module at the same moment | Yes |
The other codes of the table:
| Code | Meaning | Retried? |
|---|---|---|
11 | CPU hardware fault | Yes |
20, 21 | A relay command's fixed byte is not 05 (ENQ), or its transfer number is wrong | No |
24, 25, 26 | The sub-command is not one the PLC knows; a byte of the command is wrong; the function call has the wrong number of operands | No |
32, 3F | The command cannot be carried out while a stop continues, or during the stop | Yes |
33 | A debug function was called while the PLC is not in debug mode | No |
35 | The PLC's execution priority setting does not allow this | No |
36 | Another device holds the execution priority | Yes |
39 | The PLC must be reset after its I/O parameters were written | Yes |
3C | The command cannot be carried out during a fatal failure | Yes |
42, 43 | Data was sent that the command does not take; a function call operand is wrong | No |
52 | The timer or counter is not in use | No |
66, 72 | The relay link module did not answer | Yes |
70 | The relay link module cannot carry out the command | Yes |
Messages that do not come from the PLC's error table:
| What you see | Meaning | Retried? |
|---|---|---|
the PLC refused the request (response code 0x…, no error code) | The PLC refused the request with a response code that carries no error code | Yes |
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 above | As the code |
EB00000: a Plus has no EB (extended buffer register) area | The model has no such area. Nothing was sent | No |
D1000: a PC10G standard mode reaches D0000 to D0FFF | The index is past what the model reaches. Nothing was sent | No |
M1000: a PC10G PC10 mode reaches M0000 to M07FF | An upper range without a program prefix. Write P1-M1000. Nothing was sent | No |
P1-D0100: a PC3J/PC2 interchange runs one program; write the address without P1- | A prefix on a one-program model. Nothing was sent | No |
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 sent | No |
M0010 names one bit: read it as BIT, or name the word that holds it, M001W, to read 16 bits as WORD | A word type on one bit. The save is refused | No |
D0100 is a register: read it as WORD, INT, DWORD, DINT, REAL, LREAL or STRING | BIT on a register. The save is refused | No |
FR000000 is read only: … | A write to FR, refused when the function is saved. Nothing was sent | No |
… one write carries at most 256 / … one write changes at most 128 | The list does not fit in one request. Nothing was sent | No |
… lie in two blocks of U, which are written with different commands; write them separately | A list that crosses a block of U or EB. Nothing was sent | No |
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 follows | As the reason |
no answer from the PLC: … | The request was sent and not answered within the Response Timeout. The connection is closed and opened again | Yes |
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 up | Yes |
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 again | Yes |
not connected | The connection is not up | Yes, 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
| Symptom | Possible Cause | Solution |
|---|---|---|
Test Connection fails with connect to the TOYOPUC at … over tcp | Nothing listens at that address and port, or a firewall is in the way | Check 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 TCP | The port took the connection but answered no computer-link request | Check 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 PLC | The PLC answers UDP only from the hosts and ports in its other node table, or the port is set to TCP | Enter 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 use | Another connection or program on the MaestroHub host already sends from that UDP Local Port | Give 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 has | PLC Model does not match the CPU or its mode | Set the model and mode the CPU runs in. See PLC models |
A device is refused with a … reaches … or has no … area | The model does not reach that device, or an upper range is written without a program prefix | Use 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 request | That 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 link | Check 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 PLC | The request and its reply take longer through the hops than the Response Timeout | Raise Response Timeout |
Requests fail with writing is prohibited while the program runs | The PLC does not take that write while its program runs | Write while the program is stopped. The refusal is permanent, so the node does not retry it |