Skip to Content
On this page

Fuji SPH

Fuji SPH Ethernet PLC address reading and writing and CPU control driver

Compatible devices and models

Device series / model examplesConnection requirements
Fuji MICREX-SX SPH PLCs exposing SPH Ethernet servicesConfigure the corresponding Ethernet service, connection ID and station and match WORD areas. CPU control requires device remote permissions.

Identify the CPU in SX-Programmer

This entry uses the binary SPH Ethernet service. Open the actual MICREX-SX SPH project and record the CPU number, Ethernet module, IP address and data-service port. Configure NP1L-ET1/ET2 according to the Fuji FEH259 manual . Engineering access, Modbus TCP and SPH data services can use different ports.

  1. In SX-Programmer Standard, open Options → MICREX-SX Communication. Select the engineering computer’s COM, USB or communication board, connect online, and read the project and CPU information. The 3000 ms and 492 bytes in this window belong to the engineering tool; configure gateway timeout and packing separately.

SX-Programmer Standard MICREX-SX engineering connection window

View original image

Source: Fuji SX-Programmer Standard manual FEH590f , printed page 3-112. For an Ethernet engineering connection, its parameter string contains the peer IP and port separated by a space. The gateway channel instead uses IP:port.

  1. Read the module IP, subnet mask and SPH data port. The example below uses 192.168.1.60:18245 and CPU0. Connect the gateway and module through the appropriate Ethernet network; avoid duplicate IPs and use the configured data port.
  2. Select an allowed 16-bit test location M1.100 in the project and monitor its decimal value. M1, M3 and M10 are different areas; keep the area number and use the actual memory address instead of a symbol name.

Associate the channel and device

Open Development configuration → Collection configuration, select Fuji SPH, and create a TcpClient channel with remote address 192.168.1.60:18245. Start with channel concurrency 1. Select a different CPU with the device connection ID, not by changing the IP’s last octet.

Fuji SPH TCP client channel and data-service address

View original image

Associate the device with this channel and use a 1000 ms execution interval for the example. Ordinary reads do not require Allow method calls. Enable the actual configured channel, device and variable after checking the connection.

Fuji SPH device and associated channel

View original image

TcpService is also available for a transparent DTU that connects to the gateway and carries the same SPH frames. This entry has no serial or UDP channel.

Plugin properties

Fuji SPH connection ID, WORD packing and DTU properties

View original image

PropertyPurpose and selection
Connection IDDefault 254, hexadecimal FE, normally CPU0. CPU0–CPU7 normally use FE–F7, decimal 254–247. Enter the actual CPU/module value as a decimal byte, 0–255; do not enter FEH, a station number or TCP port.
Maximum packing lengthDefault 230, range 1–230 16-bit WORDs. Int16/UInt16 occupy one WORD; Int32/UInt32/Float occupy two. Gaps inside a combined read consume span too. A single array or string must fit this limit.
DTU IDUsed for session selection with a DTU on TcpService. Leave empty for a direct TcpClient connection; it does not encode the CPU connection ID.
Heartbeat contentOnly used in the default TCP server DTU mode. Empty inherits the channel heartbeat; a value overrides this device’s match/echo content. Do not inject arbitrary heartbeat commands into the PLC data service.
Heartbeat is HexOff by default: UTF-8 text; on: hexadecimal bytes. This does not change SPH binary frames or numeric byte order.
Read/write timeoutDefault 3000 ms per request. Adjust for measured CPU and link latency; first correct a wrong CPU or service port.
Pre-frame delayDefault 0 ms before transmission. Increase only for a peer that needs spacing; it is separate from the device’s 1000 ms interval.
Failure retry countDefault 3. Useful for transient loss, but does not resolve persistent address, CPU or permission errors.
Read/write duty cycleDefault 3, minimum 1: schedule a read after n writes. This is not a percentage.
Write priorityOff by default. Enabling allows writes to cancel an active read; leave off while establishing read-only collection.
Reverse string bytes in WORDOff by default. Swaps two character bytes inside each WORD; select from the PLC string layout. It cannot correct a connection ID or WORD address.
Data orderDefault DCBA; ABCD/BADC/CDAB/DCBA available. Confirm a known Int16, then select the layout used by the PLC’s two-WORD 32-bit values. A variable can override it.

Fuji SPH timing, scheduling and data-format properties

View original image

Create a variable from a project address

Create Fuji_M1_100, address M1.100, type Int16, array length 1, access Read only. A decimal value 1234 in the engineering monitor should appear as 1234 in the gateway. Use UInt16 for unsigned values; Float needs two consecutive WORDs.

Fuji SPH M1.100 read-only scalar variable

View original image

Open Field editor, select area M1, offset 100, and leave the bit number unset for an ordinary WORD. Confirm and save.

Fuji SPH M1 area, offset 100 and converter overrides

View original image

Address or fieldRule and example
I, QI/O-image WORDs, for example I20 and Q20. Use the project allocation and PLC access permissions; the Q prefix does not itself grant writes.
M1, M3, M10Separate the area and WORD offset with a dot: M1.100, M3.1000, M10.1000. M1.100 is not M1100.
Address offsetDecimal WORD offset, protocol range 0–16777215; offset plus the requested WORD count cannot exceed 16777216. The actual CPU allocation can be smaller.
Bit numberBoolean requires an explicit .0–.15, such as M3.1000.12 or I20.5. Non-Boolean addresses must not contain a bit suffix.
Array lengthMust be greater than zero. M1.100 / Int16 / length 3 covers WORDs 100–102. Boolean arrays continue from the specified bit into the following WORD as needed; their total WORD span must fit packing.
Byte-order overrideOverrides only this variable, for example M1.100;data=DCBA. Empty inherits the device order; the decimal address unit is unchanged.
Encoding overrideSelects String character decoding, for example encoding=ASCII; it does not change the binary SPH protocol.
String byte lengthString requires len. M1.200;len=8;encoding=ASCII with array length 1 occupies four WORDs. len is bytes per string; array length 2 occupies eight WORDs.
BCD overrideSelect only when the PLC stores the matching BCD or Gray representation. Leave unset for ordinary binary integers.
Variable-length string overrideSelect according to an explicitly defined PLC length layout. Leave unset for a fixed character area; the layout is not detected automatically.

There are no additional variable properties. Supported types are Boolean, Int16, UInt16, Int32, UInt32, Float and String. Boolean is read-only; writes require complete WORD data. Use coordinated PLC logic or a complete WORD operation when changing a bit. String writes also need complete WORDs, so use an even byte length.

Compare values and use CPU operations

Change the test M1.100 from 1234 to 5678 in the engineering tool and compare the same variable, collection timestamp and quality in the gateway. Then check a known M3.1000.12 state. If WORDs are correct but Float is wrong, inspect both raw WORDs and data order. For range errors, check the area, offset, total array span and CPU allocation.

Protocol debugging → Read/write reads the same address. The Operations CPU range selects batch or individual controls. These commands start, initialize, stop or reset CPUs; use reads for an ordinary connection check.

Fuji SPH CPU range and batch-control buttons

View original image

ControlCpuAsync supports direct calls and variable-write triggers. Its mode values are 0 batch start, 1 batch initialize/start, 2 batch stop, 3 batch reset, 4 individual start, 5 individual initialize/start, 6 individual stop and 7 individual reset. Enable Allow method calls only for an approved remote-control workflow and verify the connection ID’s target CPU. This method is not a polling read.

For timeouts, check IP, data-service port and module service. If a CPU or key-switch condition rejects a control command, use the PLC’s allowed remote-operation mode. See Collection configuration for common channels and conversion chains, and the Plugin index for other entries.