On this page
TOYOPUC
Reads and writes PLC words and bits using the JTEKT (formerly Toyoda) TOYOPUC computer-link protocol. This entry uses a TCP client connected to 2PORT-EFR. Word numbers and bit suffixes in address text are hexadecimal.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| TOYOPUC PLCs exposing computer-link services | Match computer-link protocol, CPU number, areas and route. Select run control and extended commands supported by the CPU. |
Configure the PLC module in PCwin
PC10G and PC3J can use the 2PORT-EFR (THU-6404) module. This entry accesses words and bits through its computer-link TCP connection; it does not offer PLC run/stop controls.
Confirm the module type, rack and slot. The 2PORT-EFR I/O identification code for Ethernet mode is B3; set its switches and initialization as specified in the module manual. The PCwin windows below come from the Takebishi connection guide . Replace the guide’s example IP addresses with those used on your network.
- Open Parameter → Link Parameter, select the program and link containing the module, then click Link setup. The screenshot places Ethernet in Rack
0, Slot1. Use the actual position; a link number is not a slot number.
- Check Rack and Slot No., choose Ethernet for Link module name, and confirm. Select the link and click Detail.
- In Ethernet, enter Own Node IP Address, for example
192.168.0.20. Select an available connection, check Use, choose TCP Destination Non-Specified Passive for Open Protocol, and set Own Node Port No. to1025. The gateway initiates the connection, so the PLC must listen on this port. Do not select TCP Active Open or UDP for this connection.
- Non-specified passive mode needs no Other Node Table. For specified passive mode, enter the gateway host IP and agreed local source port in Other Node Table, then bind the same source port in the gateway channel. PLC port
1025is not automatically the gateway source port.
- Set the subnet mask and required route through Sub-Net Mask and Gateway IP Address. Select Initialization based on Link Parameter when using link parameters. If an initial sequence program initializes the module, check the IP, port and connection mode it writes so it does not overwrite your settings. Download and reinitialize as required by the module.
Connect the gateway and PLC over a reachable Ethernet network. This example uses PLC 192.168.0.20:1025. In PCwin, monitor target-program D10 and record its value. See the JTEKT 2PORT-EFR product information .
Create the gateway channel and device
- In Development Configuration → Collection Configuration, add
TOYOPUC_Link, select TcpClient, and enter remote endpoint192.168.0.20:1025. Leave SSL off and DTU ID empty for ordinary Ethernet. Configure a backup endpoint only when one exists. Leave local binding empty for automatic allocation, or match the PLC peer settings for specified passive mode.
- Add device
TOYOPUC_2PORT, select TOYOPUC, associateTOYOPUC_Link, and set the execution interval to1000milliseconds. Enable the channel, device and variables after configuration. Allow method calls controls protocol methods; it does not replace enable switches for cyclic collection.
- Open Plugin Properties. Start with the default packing, timeout and format, then adjust for the PLC response time and variable workload.
| Parameter | Purpose and configuration |
|---|---|
| Maximum packing length | Default 128 WORD. Limits contiguous read groups within one area/program. Increasing it does not make distant addresses contiguous; reduce it first if long requests time out. |
| Read/write timeout | Default 3000 ms per request. Allow for normal PLC/network response time. Separate from the device execution interval. |
| Pre-frame delay | Default 0 ms before each frame. Increase when the device requires a gap between requests; this also lengthens each cycle. |
| Retry count | Default 3. Retries after a failed operation consume cycle time and cannot correct invalid addresses. |
| Read/write duty cycle | Default 3, minimum 1. Under write load, schedules one read after n writes to balance writes with cyclic refresh. |
| Write priority | Off by default. A write can cancel a pending read when enabled, so frequent writes can delay refreshes. |
| Reverse string bytes | Off by default. Swaps the two character bytes in each WORD. Use for reversed character order, not numeric word order. |
| Data order | Default DCBA; choices ABCD/BADC/CDAB/DCBA. Match multiword Int32, Float, Int64 and Double layout using a known multiword value. A UInt16 cannot establish cross-word order. |
Create a variable from a PLC word
- Add
D10_UInt16, choose deviceTOYOPUC_2PORT, type UInt16, Read-only, and array length0for a scalar. EnterD10or use Field Editor.
- Select D · Data area and enter decimal
16for Address offset. Confirm to generateD10. The suffix10is hexadecimal0x10, equivalent to decimal16in the numeric field. Leave bit number and program override unchecked for a current-program word.
- Save and enable the variable, device and channel. If the PCwin word is decimal
1234(hex04D2), the variable should show1234with an advancing sample time. Check this word before adding multiword values, arrays and strings.
| Data type | Address and length |
|---|---|
| Int16, UInt16 | One 16-bit WORD. UInt16 represents 0–65535; Int16 interprets the same bits as signed. |
| Int32, UInt32, Float | Two consecutive WORDs. Starting at D10 occupies D10 and D11; match the data order. |
| Int64, UInt64, Double | Four consecutive WORDs; keep the entire value within the area and program. |
| Boolean | WORD.bit in an area supporting bit access, for example M10.A. Hex A is decimal 10; valid suffixes are 0–F. |
| String | A word start plus explicit byte length and encoding. Odd-byte writes are padded to a WORD; reserve the corresponding PLC space. |
| Array length | 0 means scalar; a positive value is the element count. A UInt32 array of 3 elements at D10 occupies 6 WORDs within one area/program. |
Address fields and program selection
| Field | Purpose and configuration |
|---|---|
| Data order override | Unchecked uses device order. Check for a variable with a different layout; other variables are unchanged. |
| Encoding override | Match this String to the PLC encoding. Not needed for numeric variables. |
| String byte length | Actual buffer length in bytes. Character count differs from byte count for multibyte encodings. |
| BCD override | Select 8421/5421/2421/excess-3/Gray only for that PLC encoding. Leave ordinary binary integers unset. |
| Variable string length override | Overrides the string conversion mode. Leave unset for ordinary fixed buffers; it does not detect custom PLC string structures. |
| Device area | Match the PLC prefix using the protocol areas below, not unrelated shared editor options. |
| Address offset | Enter decimal; confirmation generates hexadecimal text. 16 becomes 10. |
| Bit number | Check for Boolean and enter decimal 0–15; 10 becomes .A. Leave unchecked for WORD values. |
| Program override | Unset means current program. Check and enter decimal 0–255 for a specific program. Explicit 0 differs from unset. |
To read program 2 D10, check Program override and enter 2, generating D10;prg=2. Manually entering prg=2;D10 is equivalent. Program selection belongs to each variable; there is no shared device program-number field.
| Area | Access rules |
|---|---|
| K, V, T, C, L, X, Y, M | WORD and WORD.bit Boolean. Without prg=, uses the current program. |
| S, N, R, D, B | WORD data, not Boolean D10.0. Read the word and use a common variable conversion to extract a bit. |
| EK, EV, ET, EC, EL, EX, EY, EM | Extended relay WORD/bit reads. The prefix selects its program area; do not add prg=. |
| ES, EN, EB, H, U, GX, GY, GM | Extended word, fixed-program or group areas. No additional prg=; stay within the PLC allocation. |
Read, write and random WORD debugging
Open Protocol Debug in the device workspace. Read/Write accesses typed values at an address; Operations reads current-program WORD lists.
In Read/Write, enter D10, UInt16, length 1, then click Read. Compare with D10 in the same PCwin program. To write an internal word intended for write access, enter 1234 and click Write, then read again and monitor it in PCwin. Writing through a configured variable also requires its access to be Read/Write.
Native Boolean writes support one current-program K/V/T/C/L/X/Y/M bit, such as a single M10.A. Multiple-bit, explicit-program and extended-program bit writes are rejected without a read-modify-write fallback. Word-write rules differ; writing a whole word to change one bit can alter the other bits.
In Operations, enter D0,D10,M20, or one address per line, and click Read current-program words. Submit 1–32 addresses, each at most 128 characters. Use current-program WORDs without bit suffixes or prg=. Result rows follow input order; compare UInt16 and HEX individually. Words need not be adjacent. Read again after changing the list; Use address only copies a row’s address into the input.
Troubleshooting
- TCP cannot connect: check the 2PORT-EFR IP, enabled passive connection, matching PLC and gateway remote ports, and active module parameters.
- Connected but invalid address: begin with a current-program UInt16; check area, hexadecimal numbering and program selection. Remove
prg=from fixed-program areas. - One word works but multiword values differ: check type width, data order and length. Do not interpret floating-point bits as an integer or vice versa.
- Bit address/write rejected: check WORD.bit notation, suffix
0–F, and the supported current-program single-bit areas. - PCwin settings revert: check whether an initial sequence program overwrites network settings and align it with link parameters.
See Collection Configuration for common enables, conversions and write controls, or the Plugin Index for other entries.












