Skip to Content
On this page

FATEK Program

FATEK standard-protocol register read/write and run control for FBs, B1 and B1z PLCs.

Compatible devices and models

Device series / model examplesConnection requirements
FBs series PLCsConfigure the port for FATEK standard communication with matching station and serial settings. Ethernet modules or serial servers must transparently carry that protocol. Use a Modbus plugin for Modbus mode.
B1 and B1z seriesUse the FATEK standard protocol with matching station, serial settings and model-specific ranges. B1 can use the FATEK server on a B1-CM25E/B1-CM55E Ethernet module, default port 500. B1z uses its serial port or a transparent link; B1 expansion modules do not apply. Select a Modbus plugin for Modbus services.

Prepare the port in WinProLadder

This driver uses the FATEK standard ASCII protocol. Open the correct CPU project and read its actual settings online. A port configured as Modbus RTU/ASCII needs the Modbus driver or an engineering change back to FATEK. Port2 high-speed CPU Link binary mode is a different service.

  1. Open PLC → Setting → Station Number online. The example station is 1; enter decimal 1 in the gateway. Normal requests use stations 1–254;255 is not a normal acquisition station for this driver.

WinProLadder station-number window set to 1

View original image

  1. Open PLC → Setting → Port0 Parameters and select the connected port. Read the baud rate, data bits, parity and stop bits. The illustrated settings are 9600/7/Even/1. The FBs manual gives the same initialization values for Port1–Port4; an existing installation must use its current values. Reply and transmission delays are PLC-side timing, separate from the gateway polling interval.

WinProLadder port parameters with 9600 baud,7 data bits, even parity and 1 stop bit

View original image

  1. Open PLC → Setting → Protocol, select Fatek Communication Protocol for that port, apply the change through the site procedure and read it back. The open list on the right distinguishes FATEK from the two Modbus modes.

WinProLadder FATEK protocol selection

View original image

These windows are from section 9.6 of the official WinProLadder manual . Wiring and initial port settings are described in FBs advanced applications, chapter 12 .

RS232 is point to point: use the cable for the actual CPU/communication board, cross TXD/RXD and connect SG. The Port0 Mini-DIN pinout is not a generic DB9 pinout. For RS485 connect D+, D− and the signal reference; use bus wiring and the module’s termination instructions. Do not infer polarity solely from different vendors’ A/B labels. Stations on a shared bus need unique station numbers, matching serial settings and a single master.

For an Ethernet module, first configure its IP, FATEK server port and attached PLC port in the module’s utility. The gateway example assumes the module has been read back as 192.168.1.50:500. A different transparent serial server may use another port. See the model table above for B1-CM25E/CM55E applicability.

Associate the channel and device

Under “Development configuration → Collection configuration”, select FATEK Program. Use SerialPort for a physical COM port and match all serial parameters. Use TcpClient for a FATEK Ethernet server or a transparent serial server, entering its actual IP and port.

TCP client channel for the FATEK server example

View original image

Associate the device with this channel. The example execution interval is 1000ms; the PLC station number belongs on the plugin-properties tab. Enable the connected channel, device and required variables after checking the settings.

FATEK Program selection and channel association

View original image

TcpService is for an incoming transparent DTU connection. It does not turn a PLC serial port into a network listener. This entry has no UDP channel.

Plugin properties

FATEK station, discrete and WORD pack limits, and DTU settings

View original image

PropertyMeaning and selection
PLC stationDefault 1, normal range 1–254. Enter the decimal value read in WinProLadder: hexadecimal 0A is decimal 10. This is independent of the COM number and IP address.
Maximum discrete packDefault 256, range 1–256 points. Bounds a continuous Boolean request in X/Y/M/S/T/C, including gaps. An individual Boolean array must also fit.
Maximum pack lengthDefault 64, range 1–64 16-bit WORDs in WX/WY/WM/WS/WT/WC/RT/RC/R/D/F. Int32, UInt32 and Float occupy two words; an 8-byte String occupies four. Smaller packs shorten requests but increase request count.
DTU IDNeeded for TcpService DTU routing; match the identity sent by the remote DTU. Leave empty for ordinary SerialPort/TcpClient. It does not replace the PLC station.
Heartbeat contentOnly applies in the TCP server’s default DTU mode. Empty inherits the channel heartbeat; a value overrides the device’s match/echo content.
Heartbeat HexOff by default: heartbeat is UTF-8 text. On interprets hexadecimal bytes. This does not change the channel DTU ID encoding or FATEK framing.
Read/write timeoutDefault 3000ms per request. Account for low baud rates, long frames and PLC reply delays; a longer timeout does not correct a wrong station or protocol.
Frame delayDefault 0ms before each transmission, separate from the device polling interval. Increase only when the peer requires spacing.
Retry countDefault 3. Correct repeated address/count errors instead of relying on retries.
Read/write dutyDefault 3, minimum 1: schedule a read after n writes; this is not a percentage.
Write priorityOff by default. Enabling it allows a write to cancel a read. Keep it off for initial read-only acquisition.
Reverse string bytes within wordsOff by default. Swaps the two character bytes in each WORD. Match the PLC character layout; it does not fix addresses or framing.
Data formatDefault DCBA; ABCD/BADC/CDAB are also available. Protocol hex values are restored to 16-bit words, then multiword values follow the selected layout. Check a known 16-bit value before a 32-bit value. An address override applies to one variable.

FATEK timeout, scheduling and data-format settings

View original image

Map PLC points to variables

Monitor a dedicated R100 register in WinProLadder and prepare 1234. Add gateway variable R100 with address R100, type Int16, array length 1, read-only access and a 1000ms interval. Use UInt16 for unsigned 0–65535 values; interpreting a negative PLC INT as UInt16 changes its meaning.

Single-element read-only Int16 variable at R100

View original image

Open the address editor: area R, offset 100, no bit number. Confirm and fill back. Numbers are decimal; no protocol padding zeros or 40001 offset are required.

FATEK R100 address and conversion overrides

View original image

Address or fieldMeaning and example
X/Y/M/S/T/CDiscrete Boolean points, such as M100;1–256 points per request. T/C here mean contacts, not current values; do not read T100 as Int16.
WX/WY/WM/WS/WT/WC16-point WORD views: WM0 covers M0–M15, WM16 covers M16–M31. The start must be a multiple of 8; adjacent words advance by 16 point numbers. WM8 is a different alignment window, so WM8 and WM16 are not adjacent words.
RT/RC16-bit timer/counter register views, such as RT12 and RC12, distinct from T12/C12 contacts. Up to four address digits; actual range depends on the CPU.
R/D/F16-bit registers, such as R100 and D100. The parser accepts 0–65535; the CPU may allocate less. WORD reads/writes are limited to 64 words per request.
OffsetStart within the area. Ordinary registers advance by 1; W views advance by 16. Discrete format supports up to 9999; the last W-view WORD start is at most 9984.
Bit numberUse X/Y/M/S/T/C directly for Boolean points. Leave the generic word-bit field unset; dot forms such as R100.3 are not FATEK addresses.
Byte-order overrideABCD/BADC/CDAB/DCBA for this variable, e.g. R100;data=DCBA. Overrides the device format.
Encoding overrideString character decoding, such as ASCII or UTF-8, independent of the ASCII protocol framing.
String byte lengthRequired for String. R100;len=8;encoding=ASCII with array length 1 uses R100–R103. Array length 2 uses 16 bytes/eight words.
BCD overrideSelect only for a matching PLC BCD or Gray representation. Leave unset for ordinary binary 1234.
Variable string length overrideUse only for the corresponding length-bearing storage layout; a plain WORD character buffer does not automatically reveal its layout.

There are no additional variable properties. Supported types are Boolean, Int16, UInt16, Int32, UInt32, Float and String. Array length must exceed 0, and each variable’s occupied WORD count must fit the pack limit. WM0 bit 0 corresponds to M0; use M0 Boolean directly when only that point is needed.

Compare values and controller status

After saving, enable the connected channel and device. Change R100 from 1234 to 5678 in WinProLadder and compare the same gateway variable, quality and advancing collection time. Check one known M Boolean point separately. If16-bit values match but Float values do not, compare the PLC’s two raw words and data order. For boundary failures, reduce the packed span and check the CPU area limits.

“Protocol debugging → Operations” provides controller status, Run PLC and Stop PLC. Read status first and compare it with WinProLadder. The status includes running, low battery, ladder checksum, ROM PACK, watchdog, PLC ID and emergency-stop flags.

FATEK controller-status and run/stop operations

View original image

ReadStatusAsync takes no parameters and supports direct calls or periodic reads using an Object variable. RunAsync and StopAsync take no parameters and support direct calls and variable-write triggers. Enable device method calls only when remote state changes are permitted on site, then read status again after the action. These methods change the controller’s operating state.

For no response, check wiring, port ownership, all serial parameters and the station. For a rejected frame, check FATEK standard mode, area and count. See Collection configuration for shared channel settings, conversion chains and RPC access.