FactoryStudio is an industrial automation software that allows the creation of SCADA and HMI applications to monitor and control industrial processes in real-time. It is based on a client-server architecture and supports multiple communication protocols including Modbus, OPC UA, and AB Rockwell ControlLogix. Each external device used with FactoryStudio has its own set of communication rules defined by the manufacturer or protocol creator. These rules are used to create TX messages (sent from FactoryStudio to the device) and RX messages (sent from the device to FactoryStudio). Each byte within these messages has a specific meaning.
In order for FactoryStudio to communicate with external devices, communication drivers need to be configured. The software offers various types of drivers, each with their own characteristics and configuration requirements. In addition, FactoryStudio offers advanced visualization features such as real-time graphics, animations, and customizable screens. It supports various data types including text, numbers, images, and videos.
On this page:
A set of rules that defines how external devices communicate with FactoryStudio.
A message sent from FactoryStudio to the external device.
A message sent from the external device to FactoryStudio.
The basic unit of information used in TX and RX messages.
Software that enables communication between FactoryStudio and an external device.
Any device or software used in conjunction with FactoryStudio, such as PLCs, sensors, actuators, among others.
FactoryStudio supports multiple communication protocols, including Modbus, OPC UA, and AB Rockwell ControlLogix. Each protocol has its own specific characteristics and benefits that may be more suitable for different applications.
Characteristics: Modbus is a serial protocol that uses a master-slave architecture to communicate with external devices. It is request-response based, meaning the master device sends a request to the slave device and waits for a response before sending the next request. Modbus supports various data types, including bits, bytes, integers, and floats.
Benefits: Modbus is widely used in the industry and is relatively easy to implement. It supports a wide variety of devices, including PLCs, sensors, and actuators.
Characteristics: OPC UA (Open Platform Communications Unified Architecture) is a platform-independent protocol based on web services. It uses a client-server model to communicate with external devices and supports advanced security and encryption to protect transmitted information.
Benefits: OPC UA offers interoperability between different platforms and devices, allowing them to easily communicate with each other. It also offers enhanced security compared to other protocols.
Characteristics: The AB Rockwell ControlLogix protocol is used to communicate with devices in the ControlLogix family from Rockwell Automation. It uses a master-slave architecture and supports various data types, including bits, bytes, integers, and floats. The ControlLogix protocol is widely used in the industry and is relatively easy to implement.
There are several communication protocols available to connect to external devices using FactoryStudio software. Each protocol has its own specific characteristics and benefits that may be more suitable for different applications.
For more information related to a specific protocol, go to: Communication Drivers - v10 - Tatsoft LLC
In the detailed functionality, we will delve into the main features and functions of the device module in FactoryStudio. We will discuss communication messages, provide a protocol example, explain ReadGroups and WriteGroups, examine communication optimization, and elaborate on the ReadOnDisplay AccessType.
Communication messages are the foundation of data exchange between FactoryStudio and external devices. They are used to transmit information from one entity to another, following a specific communication protocol. There are two types of communication messages: TX messages (sent from FactoryStudio to the device) and RX messages (sent from the device to FactoryStudio). Both types of messages contain a series of bytes, each with its specific meaning, following the rules established by the chosen communication protocol. Message types can include command, response, alarm, and status messages.
To better understand the communication process, let's analyze a real-world protocol, Modbus TCP/IP. This protocol is widely used in industrial automation and allows the exchange of data between various devices through a TCP/IP network.
Modbus TCP/IP uses a client-server model, where the client (FactoryStudio) sends requests to the server (the device) to read or write data. The request and response messages contain the following elements:
Understanding the structure of a specific protocol is essential to properly configure communication between FactoryStudio and external devices.
Communication protocols exist so that there can be communication between two entities. In our case, we are talking about FactoryStudio and other external devices used in the field; mainly PLCs, but they can be other types of devices or software.
Each device manufacturer and/or creator of a communication protocol defines the rules of communication messages. These messages are called TX and RX. TX messages are the messages that go from FactoryStudio to the device, and the RX messages are the messages that go from the device to FactoryStudio.
Each entity related to this “conversation” needs to know the communication protocol to understand what the TX and RX messages mean. Each byte within the message has a meaning. Let us consider a fictitious communication protocol definition, for example:
Protocol: [STX] [CMD] [OPR] [STA] [CNT] <DATA> [ETX]
Where:
Based on this definition, we could say that the TX and RX below are valid:
This means - TX:
02[STX]
05[CMD RD]
31 [Integer]
00 00 [Start Address : 0]
04[Quantity: 4 bytes]
0D [ETX]
This means - RX:
02 [STX]
06 [ACK ANSWER]
31 [Integer]
00 00 [Start Address : 0]
04 [Quantity: 4 bytes (two operands integer)]
00 00 [Operand 1 with data value 0]
00 00 [Operand 2 with data value 0]
0D [ETX]
After analyzing this fictitious protocol, we can conclude:
ReadGroups and WriteGroups are essential elements for managing communication between FactoryStudio and external devices. They contain information about FactoryStudio tags and communication operands and are responsible for organizing and optimizing the data exchange process.
A ReadGroup is responsible for reading data from devices, while a WriteGroup is responsible for writing data to devices. These groups are dynamically created based on the tags' configuration, such as AccessType, Polling Rate, and addresses, and then managed by the communication driver.
Efficient communication is crucial for the performance of any industrial automation system. Several strategies can be implemented to optimize communication between FactoryStudio and external devices, such as:
By implementing these strategies, you can significantly improve the communication performance and overall responsiveness of your system.
The ReadOnDisplay AccessType is a setting that enables communication only when data is displayed on the screen. This can improve performance for data that doesn't require constant updates or historical storage.
During the device module startup, ReadGroups and WriteGroups are created without considering the AccessType. When a screen is opened, FactoryStudio checks if any points have the ReadOnDisplay setting and are linked to the tags of the open screen. Points with ReadOnDisplay AccessType that are not displayed on the screen are disabled, and the associated group is only disabled if all its points are disabled.
Understanding how the ReadOnDisplay AccessType works is essential for efficient communication, as it helps reduce unnecessary data exchange