|
JTEKT Toyopuc PC10G controllers over Ethernet
The Toyopuc driver reads and writes controller registers on JTEKT Toyopuc PC10G devices using the Computer Link protocol over the controller built-in Ethernet port. Communication blocks are dynamically created according to the polling cycle defined on the AccessType for each Device Point.
The driver addresses data registers, link registers, present-value and special registers, the relay areas at word granularity, and the expansion data register area. Individual programs on a multi-program controller can be addressed explicitly.
This connector uses the binary command set of the Ethernet port. It is not the ASCII frame used by the RS-422 serial Computer Link, which is a separate protocol on the same controller family.
Before connecting, the controller built-in Ethernet port must be configured in PCWin with an IP address and a listening port:
A connection configured as a non-specified passive open accepts one client at a time. If another node is already connected on that port, the existing connection is reset.
Station syntax: <IP address> ; <Port number>
Where:
E.g.: 192.168.1.10; 2000
This protocol carries no station number, so the node requires only the address and port.
The syntax for the Toyopuc communication points is: <Operand><Address>, written as a single token with no separator.
Where:
Prefix | Description |
|---|---|
none | The program selected by the controller link parameters. The most efficient option, and the default. |
P1- | Program 1, addressed explicitly. |
P2- | Program 2, addressed explicitly. |
P3- | Program 3, addressed explicitly. |
On a controller running a single program, an unprefixed address and the matching program prefix return the same data. The U area is shared rather than per-program and therefore takes no prefix.
Area | Description | Address range (hex) |
|---|---|---|
D | Data register | 0 to 2FFF |
R | Link register | 0 to 7FF |
N | Present value register | 0 to 1FF |
S | Special register | 0 to 3FF |
M | Internal relay, word access | 0 to 7F |
XY | Input and output relay, word access | 0 to 7F |
L | Link relay, word access | 0 to 7F |
T | Timer and counter, word access | 0 to 1F |
V | Special relay, word access | 0 to F |
K | Keep relay, word access | 0 to 2F |
U | Expansion data register | 0 to 7FFF |
The relay areas are accessed one word at a time, matching the word-address notation used by PCWin. A relay word address shown as M20W in the programming software is written as M20 here.
In the Devices Points table the Node column takes the fully qualified node reference, Node.<NodeName>, not the bare node name. A node called ToyopucNode1 is referenced as Node.ToyopucNode1. This matters when points are imported from a file rather than picked in the editor.
Address | Reads |
|---|---|
D0 | Data register D0000 in the link-parameter program |
D100 | Data register D0100, hexadecimal offset |
P1-D160 | Data register D0160 in program 1 |
P2-R0 | Link register R0000 in program 2 |
M20 | Internal relay word M20W |
U106 | Expansion data register U0106 |
When a request is rejected, the controller returns an error code that is written to the Trace Window together with its description. The most frequently seen codes are:
Code | Meaning | Usual cause |
|---|---|---|
0x40 | Address, or address plus data count, out of range | The point address exceeds the area, or a block runs past the end of the area. Check the address range table above. |
0x41 | Word or byte count out of range | BlockSize is larger than the controller accepts. Reduce it. |
0x34 | Access prohibited by configuration | The controller is configured to deny access to that area. |
0x31 | Write prohibited during sequence operation | A write was attempted against a region the running program protects. |
If no reply is received at all, confirm the controller port is open and that no other client is holding the connection.
Enable TraceFrames on the channel to capture the exact bytes exchanged when reporting a communication problem.
Toyopuc Revision History | |
|---|---|
Version | Notes |
1.0.0.0 | Initial release. Word read and write over the Ethernet Computer Link binary command set, with per-program scope and expansion data register support. |