Introduction
With its open and simple specifications, the Modbus protocol is widely used to control device communications in industrial applications. As indicated in the following table, Modbus modes and functions differ depending on cable type.
| Cable type | Serial | Ethernet | |
|---|---|---|---|
| Mode | ASCII | RTU | TCP |
| Functions | Master/slave | Master/slave | Client/server |
Project Overview
Yokogawa Engineering Asia Pte. Ltd. was engaged in an upstream supervisory control and data acquisition (SCADA) system project where there was a requirement for Modbus systems that could operate simultaneously as master and slave nodes. As STARDOM field control node (FCN) autonomous controllers allow both Modbus master and slave functions to run simultaneously, they were selected for this project.
While functioning as a Modbus master mode in this application, the FCN polls the fire and gas system (FGS) to obtain data. As a Modbus slave node, it then transmits FGS data to the Yokogawa FAST/TOOLS SCADA system via a Modbus gateway and a WAN. This gateway converts the Modbus RTU protocol to Modbus TCP protocol for communication over the WAN. The serial modules are duplexed for network redundancy.

Figure: System Configuration
Expected benefits
![]() |
|
Figure: Port name definition in Resource Configurator |
The NFLR121 FCN serial communications module has two ports for either RS-422 or RS-485 communications, and each can be configured as slave or master. By installing two of these modules, the second module is made to be a backup.
With STARDOM, the following benefits are expected:
- Reduced installation costs
- Simplified system configuration
- Increased system reliability
STARDOM Engineering
![]() |
| Figure: Setting of virtual name for port in POU |
STARDOM supports the IEC61131-3 programming language. The following two engineering tools are available:
- Resource Configurator: for hardware settings
- Logic Designer: for application logic
By keeping the application logic separate from the physical addresses, engineers can write programs for specific applications without having to consider the hardware configuration. This allows programs to be reused and improves engineering efficiency. The following screenshot from the Resource Configurator tool shows how the virtual name for a physical port is defined. In this case, SERIAL 1 is set for port1 and SERIAL 2 is set for port2 of the NFLR121 module.
By setting a virtual name for the program organization unit (POU) parameter, it is possible to link the physical hardware and the application logic. In the following figure, SERIAL 1 is set for SD_CMDBSM_BM_OPEN, which executes a Modbus master task. This specifies that port1 on an NFLR121 module is used as the communications port.
Application Overview
The NFLR121 FCN serial communications module has two ports for either RS-422 or RS-485 communications that support communication speeds between 300 bps and 115.2 kbps. In this project, one port was set as a Modbus master and the other as a Modbus slave. For redundancy purposes, two modules are installed in the following side-by-side configuration:
| PSU Power Supply Unit | PSU Power Supply Unit | CPU | CPU | Spare | AI | DI | DO | COM | COM |
Figure: Unit Configuration
|
|
| NFLR121 |
For this application, the following tasks were carried out in the sequence shown:
- Port configuration
- Modbus RTU master and slave programming for the same module
- Redundant Modbus RTU slave programming
Port Configuration
![]() |
| Figure: Setting of wiring method for port 2 on NFLR121 |
With the Resource Configurator, the following communication settings were made for each port:
- Port name
- Wiring method (2 wire/ 4 wire connection)
- Half duplex / full duplex
- Baud rate
- Data bits
- Parity setting
Programming the Same Module as Modbus RTU Master and Slave
![]() |
| Figure: Port name definition with Resource Configurator |
For this application, port name SERIAL 1 was set to port 1 and port name SERIAL 2 was set to port 2 for the NFLR121 module in slot 9.
As shown below, two POUs were used in this application: SD_CMDBSM_BM_OPEN POU for the Modbus RTU master node and SD_CMDBSM_BS_OPEN POU for the slave node. Port 1 on the NFLR121 module was used for communication as a Modbus RTU master node and port 2 was used as a slave node.

Redundant Modbus RTU Slave Programming
![]() |
| Figure: Port name definition with Resource Configurator |
NFLR121 modules were installed in slots 9 and 10. In this application, port name SERIAL 3 was set to port 1 and SERIAL 4 was set to port 2 for the redundant NFLR121 module in slot 10.
The two SD_CMDBSM_BS_OPEN POUs shown below were used in this application. Port 2 of the NFLR121 module in slot 9 and port 2 of the NFLR121 module in slot 10 were used for communication as a Modbus RTU slave node. In the event of a failure of port 2 on the NFLR121 module in slot 9, communication would not be disrupted.

Conclusion
Each of the communications modules on a STARDOM FCN autonomous controller can simultaneously function as Modbus master and slave nodes without affecting the other settings in the customer site. The use of two modules makes communications fully redundant.
In this application, the FCN Modbus master node simultaneously polls data from the FGS while the Modbus slave node transmits the FGS data to FAST/TOOLS. This keeps installation costs to a minimum. Furthermore, the use of the redundant module configuration ensures that there will be no interruption in the communications between FAST/TOOLS and the FCN autonomous controller.
相关行业
-
供排水
水资源是有限的,因此促进可持续水循环是联合国可持续发展目标(SDGs)之一。横河电机一直致力于提供先进的数字化控制解决方案,以实现清洁安全用水的稳定供应、通过污水处理保护水环境、管理水资源流失,并优化工厂运行以减少二氧化碳排放和运营成本。凭借我们先进的技术、可靠的产品以及在全球各类水务项目中积累的丰富专业经验,我们与您携手提供可持续的水务解决方案,助力您的业务发展,并在工厂整个生命周期内创造价值。
横河电机为市政用水和工业用水市场提供广泛的水控制应用支持。
-
电力
20世纪70年代中期,横河电机推出了EBS电气控制系统,并以此进入电力业务领域。自此以后,横河电机坚定不移地持续提升技术水平和业务能力,旨在为全球客户提供更优的服务和解决方案。
横河电机凭借着全球电力解决方案网络,在充满活力的全球电力市场中发挥着积极的作用。这使得横河电机内部能够进行更紧密的团队协作,将全球资源与行业知识库有机结合。横河电力的行业专家团队通力合作,为每位客户量身打造适合其复杂需求的解决方案。
-
石油和天然气
横河电机在石油天然气行业的各个环节均拥有丰富经验,业务覆盖海上与陆上设施、管道运输、终端处理及深水作业等领域。我们提供的解决方案能够提升安全水平、确保设备准确可靠地运行,并有效提高工厂运营效率。
-
污水处理
污水处理厂涉及众多设备,如电机、泵和鼓风机,因此降低其电力消耗、节省运行成本至关重要。横河电机利用数字技术提供优化的控制解决方案,以提高能源效率。
-
水处理
横河电机提供理想的解决方案,以提升水处理工厂的可靠运行。这些解决方案融合了先进的技术、过硬的产品质量和贯穿全生命周期的丰富应用专业知识。
-
海上设施(FPSO、FLNG与FSRU)
海上勘探与生产需要在严苛环境下实现更长运行时间。有人与无人设施需配备具备先进远程监控功能的可靠集成控制与安全系统(ICSS)。横河电机拥有先进技术及执行各种规模与复杂程度海上项目的丰富经验。
-
上游
上游行业涵盖海上和陆上作业,包括井口自动化、分馏、完井和分离等环节,旨在开采并初步处理地下或水下原油与天然气。
石油被采至地表后,必须在运输前进行分离。通常在初级和二级分离阶段,通过三相分离将气流、水流和油流分开。气体输送需要管道,并可在上游阶段加入分馏处理。液体则存入储罐或通过管道输送至加工环节,此过程需准确的液位测量。
相关产品&解决方案
-
FAST/TOOLS
FAST/TOOLS起源于灵活的先进系统技术(FAST)项目,如今是一个综合的、集成的SCADA应用程序套件。FAST/TOOLS功能强大且灵活,服务范围从50点单元流程,到数百万点、绵延数千英里的海上生产和管道系统。
-
FCJ All-in-one PLC/RTU
The brick type model FCJ autonomous controller fulfills the basic requirements of the utility control. It also provides the reliability for the SCADA communication with network redundant capability.
-
过程控制PLC/RTU
无论是流程工厂还是偏远地区,我们的过程控制可编程逻辑控制器(PLC)与远程终端单元(RTU)都能助力用户实现优化运营。





