Skip to Content
On this page

Fuji Command

Fuji Command Setting protocol PLC address read and write driver

Compatible devices and models

Device series / model examplesConnection requirements
Fuji MICREX-F PLCs exposing Command Setting Type servicesConfigure the Ethernet interface for the Command Setting Type frames and B/M/K/D/W address areas used by this plugin. SPB/SPH use different protocols.

Enable Command service in the MICREX-F Ethernet module

This driver uses binary TCP Command Setting Type messages. Configure the PLC Ethernet interface for that service. An SPB ASCII, SPH data-loader or Modbus endpoint uses a different protocol.

For an NC1L-ET1/FFU170B module, configure the IP address, TCP connection and Command service in the matching project, transfer the parameters and initialize the module. Consult Fuji manual FEH097  for the actual rack, file numbers, switches and ladder addresses.

  1. Assign a PLC IP reachable from the gateway and check how the module H/L switches determine the last IP octet. This example uses 192.168.0.2.
  2. Configure the network parameters and a TCP connection in module File 0. On NC1L-ET1, common parameters occupy 0–19; connection 1 begins at 20 and each connection occupies 50 WORDs. Connection number and TCP port are separate settings.
  3. Select TCP, Binary and Command Setting. Configure the PLC listening port; this example uses 2000, which must match the actual module configuration.
  4. Transfer the parameters, initialize the module and open the connection before enabling the gateway. For a PLC that initiates the connection, configure the gateway destination IP/port and use a gateway TcpService channel.

Prepare readable test memory in the PLC monitor and record its byte offset and value. A value shown as a word or float in the engineering tool still needs a byte offset in this protocol.

Gateway channel and device

In Development configuration → Collection configuration, select Fuji Command. Create a TcpClient channel for 192.168.0.2:2000, initially keeping maximum concurrency at 1. Associate the device with that channel; the example execution interval is 1000 ms.

Fuji Command TCP client address and port

View original image

Fuji Command device and associated channel

View original image

Supported channels are TcpClient and TcpService. There is no serial/UDP channel or separate station, rack or CPU property. The network connection and module service select the target PLC. Ordinary variable access does not require Allow method calls.

Plugin properties

Fuji Command byte packing limit and DTU properties

View original image

PropertyPurpose and configuration
Maximum packing lengthDefault 251, valid 1–251 payload bytes. Variables in the same area can share a read; gaps also count toward its span. A complete variable array or string must fit in one package. This is not a limit of 251 WORDs.
DTU IDSelects a DTU session when using TcpService. Normally empty for a direct TcpClient connection; it is not a PLC memory area or module connection number.
HeartbeatApplies to the default TCP server DTU mode. Empty inherits the channel heartbeat; a value overrides it for this device and must match the peer.
Heartbeat is HexOff by default, matching UTF-8 text; on matches hexadecimal bytes. This does not change the binary Command message format.
Read/write timeoutDefault 3000 ms, the response deadline for one request. Adjust for actual network/module latency after checking the service mode and port.
Pre-frame delayDefault 0 ms, a wait before each outgoing frame. Increase when required by the module; separate from the device execution interval.
Retry countDefault 3, for intermittent failures. Repeated address, service or command errors require correcting their cause.
Read/write duty cycleDefault 3, minimum 1: one read is scheduled after n writes. Adjust during sustained writes to meet monitoring needs; this is not a percentage.
Write priorityOff by default. Enabling it allows a write to cancel an active read. Keep it off for initial read-only collection.
Reverse string byte pairsOff by default. Swaps characters within two-byte groups when required by the PLC character layout.
Data orderDefault ABCD; ABCD/BADC/CDAB/DCBA are available. Match known integer and 32-bit values to the PLC byte layout. Individual variables can override it.

Fuji Command scheduling and ABCD data order

View original image

Create a variable at byte address D100

Create FujiCommand_D100, address D100, type Int16, array length 1, access Read only. It reads D-area bytes 100–101. With ABCD order, bytes 04 D2 represent decimal 1234. The next adjacent Int16 begins at D102.

Fuji Command D100 byte offset and Int16 variable

View original image

Open Field editor, select area D and starting byte 100, then confirm the address.

Fuji Command area and starting-byte address fields

View original image

Address/fieldRules and examples
AreaB, M, K, F, A, D, S, TS, TR, CS, CR, BD, WL, W9; also W21–W26, W30–W109, W120–W123 and W125. Actual allocation and permissions depend on the PLC project and module.
Starting byteDecimal 0–65535; starting offset plus accessed byte count must not exceed 65536. D100 means byte 100 in area D.
Numbered W areasSeparate area number and offset with a dot: W9.200, W21.200 or W22.200. The editor lists a subset of common W areas; enter other valid areas directly in Variable address. WL has no numbered area: WL200.
Boolean and ByteEach occupies one byte. D100.3 is not a bit selector for this driver. To extract a bit from a byte, read Byte and apply a value conversion according to the data definition.
Array lengthMust be positive. D100/Int16/3 occupies bytes 100–105; D100/Float/3 occupies 100–111. Byte/Boolean use 1 byte per element, Float/Int32/UInt32 use 4.
Data-order overrideEmpty inherits the device order. Options such as data=ABCD affect this variable’s decoding, not its address unit.
Encoding overrideSelect the source character encoding for String, for example encoding=ASCII.
String byte lengthString requires len. D200;len=8;encoding=ASCII uses 8 bytes per string, or 16 bytes for array length 2. Multibyte characters may consume several bytes.
BCD overrideSelect only for a source using the chosen BCD/Gray representation. Leave empty for ordinary binary values.
Variable-length string overrideSelect only for a known length-field layout; leave empty for a fixed character area. PLC string structures are not detected automatically.

There are no extra variable properties. Types are Boolean, Byte, Int16, UInt16, Int32, UInt32, Float and String. Before writing, check the purpose of the entire byte span to avoid overwriting adjacent data.

Compare source values and diagnose errors

Enable the channel, device and variable. Compare 1234 in PLC D-area bytes 100–101, change the test value to 5678 and check the gateway value, quality and acquisition time. Then add a D102 integer or D104 float while checking the byte span for each type.

Protocol debugging → Read/write uses the same address. Messages shows requests and replies. If TCP connects without a business response, check Binary/Command mode, whether the connection is open and the port.

Reply codeCheck
0x12Program-area writes prohibited; check the area and access permission.
0x20Command does not exist; check module service and protocol mode.
0x21Incorrect data order; check command and data format.
0x22Loader-only operation; the connection or permission does not accept this command.
0x24Module does not exist; check installation and project configuration.
0x32Memory range exceeded; check byte offset, total length and actual allocation.

See Collection configuration for common channels, variables and conversion chains, or the Plugin index for other protocols.