Skip to Content
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 examplesConnection requirements
TOYOPUC PLCs exposing computer-link servicesMatch 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.

  1. Open Parameter → Link Parameter, select the program and link containing the module, then click Link setup. The screenshot places Ethernet in Rack 0, Slot 1. Use the actual position; a link number is not a slot number.

PCwin Link Parameter and the Ethernet module position

  1. Check Rack and Slot No., choose Ethernet for Link module name, and confirm. Select the link and click Detail.

Selecting the rack, slot and Ethernet link module in PCwin

  1. 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. to 1025. The gateway initiates the connection, so the PLC must listen on this port. Do not select TCP Active Open or UDP for this connection.

PCwin Ethernet IP address and connection 1 passive TCP port

  1. 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 1025 is not automatically the gateway source port.

Peer IP and port fields in the PCwin Other Node Table

  1. 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

  1. In Development Configuration → Collection Configuration, add TOYOPUC_Link, select TcpClient, and enter remote endpoint 192.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.

TOYOPUC TCP client channel and remote endpoint

  1. Add device TOYOPUC_2PORT, select TOYOPUC, associate TOYOPUC_Link, and set the execution interval to 1000 milliseconds. Enable the channel, device and variables after configuration. Allow method calls controls protocol methods; it does not replace enable switches for cyclic collection.

TOYOPUC device, channel and execution interval

  1. Open Plugin Properties. Start with the default packing, timeout and format, then adjust for the PLC response time and variable workload.

TOYOPUC WORD packing, request timeout and frame delay

ParameterPurpose and configuration
Maximum packing lengthDefault 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 timeoutDefault 3000 ms per request. Allow for normal PLC/network response time. Separate from the device execution interval.
Pre-frame delayDefault 0 ms before each frame. Increase when the device requires a gap between requests; this also lengthens each cycle.
Retry countDefault 3. Retries after a failed operation consume cycle time and cannot correct invalid addresses.
Read/write duty cycleDefault 3, minimum 1. Under write load, schedules one read after n writes to balance writes with cyclic refresh.
Write priorityOff by default. A write can cancel a pending read when enabled, so frequent writes can delay refreshes.
Reverse string bytesOff by default. Swaps the two character bytes in each WORD. Use for reversed character order, not numeric word order.
Data orderDefault 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.

TOYOPUC retries, duty cycle, write priority and data format

Create a variable from a PLC word

  1. Add D10_UInt16, choose device TOYOPUC_2PORT, type UInt16, Read-only, and array length 0 for a scalar. Enter D10 or use Field Editor.

TOYOPUC D10 variable name, device, type, access and array length

  1. Select D · Data area and enter decimal 16 for Address offset. Confirm to generate D10. The suffix 10 is hexadecimal 0x10, equivalent to decimal 16 in the numeric field. Leave bit number and program override unchecked for a current-program word.

Decimal offset 16 in area D generates address D10

  1. Save and enable the variable, device and channel. If the PCwin word is decimal 1234 (hex 04D2), the variable should show 1234 with an advancing sample time. Check this word before adding multiword values, arrays and strings.
Data typeAddress and length
Int16, UInt16One 16-bit WORD. UInt16 represents 0–65535; Int16 interprets the same bits as signed.
Int32, UInt32, FloatTwo consecutive WORDs. Starting at D10 occupies D10 and D11; match the data order.
Int64, UInt64, DoubleFour consecutive WORDs; keep the entire value within the area and program.
BooleanWORD.bit in an area supporting bit access, for example M10.A. Hex A is decimal 10; valid suffixes are 0–F.
StringA word start plus explicit byte length and encoding. Odd-byte writes are padded to a WORD; reserve the corresponding PLC space.
Array length0 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

FieldPurpose and configuration
Data order overrideUnchecked uses device order. Check for a variable with a different layout; other variables are unchanged.
Encoding overrideMatch this String to the PLC encoding. Not needed for numeric variables.
String byte lengthActual buffer length in bytes. Character count differs from byte count for multibyte encodings.
BCD overrideSelect 8421/5421/2421/excess-3/Gray only for that PLC encoding. Leave ordinary binary integers unset.
Variable string length overrideOverrides the string conversion mode. Leave unset for ordinary fixed buffers; it does not detect custom PLC string structures.
Device areaMatch the PLC prefix using the protocol areas below, not unrelated shared editor options.
Address offsetEnter decimal; confirmation generates hexadecimal text. 16 becomes 10.
Bit numberCheck for Boolean and enter decimal 0–15; 10 becomes .A. Leave unchecked for WORD values.
Program overrideUnset 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.

Selecting program override 2 for a TOYOPUC D10 variable

AreaAccess rules
K, V, T, C, L, X, Y, MWORD and WORD.bit Boolean. Without prg=, uses the current program.
S, N, R, D, BWORD 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, EMExtended relay WORD/bit reads. The prefix selects its program area; do not add prg=.
ES, EN, EB, H, U, GX, GY, GMExtended 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.

TOYOPUC D10 UInt16 read and write inputs

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.

TOYOPUC current-program random WORD list and read button

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.