Step-by-step guide to connect FrameworX Connect to a Programmable Logic Controller PLC (PLC). This tutorial uses Allen-Bradley ControlLogix as an example, but includes notes for other brands.
Tutorial) teaches you to:
- Configure PLC communication driver (using ControlLogix example)
- Map PLC addresses
- Import tag database from
- PLC
- Optimize communication performance
Prerequisites:
- Add Tags to UNS (Tutorial)
- PLC network details (IP address, slot number)
- PLC programming software for tag export (optional)
In this page:
Table of Contents maxLevel 2 minLevel 2 indent 10px exclude Steps style none
Step 1:
Protocol Port
44818
102 Modbus devices Modbus TCP 502 Schneider Modbus or OPC UA Varies Step 2:
Select Your PLC Protocol
Navigate to Devices →
ChannelsProtocols and choose protocol:
PLC Brand |
---|
Connector | |
---|---|
Allen-Bradley ControlLogix | AB Rockwell ControlLogix |
Connector | |
Siemens S7 | Siemens S7 |
Devices Connector | |
Schneider Electric | Schneider Electric Control Expert (Unit Pro) Connector |
Configure Channel
Create
channelDevice Channel for ControlLogix:
- Name:
CLX_Channel
- Protocol:
AB ControlLogix
- Connection: Ethernet/IP
- Timeout: 5000ms
- Max Connections: 16
Add
PLCDevice Node
- Go to Devices → Nodes
- Create node:
- Name:
MainPLC
- Channel:
CLX_Channel
- IP Address:
192.168.1.100
- Slot: 0 (CPU slot)
- Connection Path: Leave blank for local
- Name:
Step 4: Import Tags from PLC
Method 1 - Online Import:
- Right-click node → Import Tags Online
- Connect to PLC
- Select tags to import
- Map to FrameworX namespace
Method 2 - Offline Import (L5X file):
- Export from RSLogix/Studio 5000
- In FrameworX: Tools → Import → ControlLogix L5X
- Browse to file
- Select tags and data types
Create Device Points
For manual configuration:
Controller Tag:
- Name:
Line_Speed
- Node:
MainPLC
- Address:
Line_Speed
(tag name in PLC) - Data Type: REAL/Float
- Scan Rate: 1000ms
Array Element:
- Name:
Alarm_Active_01
- Address:
Alarms[0]
- Data Type: BOOL
UDT Member:
- Name:
Motor1_Running
- Address:
Motor1.Running
- Data Type: BOOL
Import Tags from PLC
Method 1 - Online Import:
- Right-click node → Import Tags Online
- Connect to PLC
- Select tags to import
- Map to FrameworX namespace
Method 2 - Offline Import (L5X file):
- Export from RSLogix/Studio 5000
- In FrameworX: Tools → Import → ControlLogix L5X
- Browse to file
- Select tags and data types
Optimize Communication
- Create Scan Groups:
- Fast: 100ms (critical values)
- Normal: 1000ms (standard)
- Slow: 10000ms (setpointsslower process variables)
- Assign Points to Groups:
- Alarms → Fast
- Process values → Normal
- Configurations → Slow
Test Connection
- Start Runtime
- Check Devices → Monitor
- Verify:
- Connection status green
- Values updating
- Scan time acceptable
roubleshooting
Issue | Solution |
---|---|
Cannot connect | Check firewall, ping PLC |
Wrong slot | Verify CPU slot number |
Tags not found | Check controller/program scope |
Slow updates | Reduce points per packet |
Connection lost | Increase timeout value |
PLC
-Specific Notes
Siemens S7:
- Requires DB number and offset
- Example:
DB100.DBD10
(Double at offset 10)
Modbus:
- Use register addresses
- 40001 = Holding registers
- 30001 = Input registers
OPC UA:
- Browse available nodes
- Use NodeId for address
Best Practices
- Import tags to maintain consistency
- Use structured addressing
- Group related tags
- Set appropriate scan rates
- Monitor communication load
Next Steps
- CONNECT (Reference) - Explore list of connectors
- [Define Alarms] - Add alarms to PLC values
- [Historian] - Log PLC data
- [Operator UI Design] - Display PLC status
In this section...
Page Tree | ||||
---|---|---|---|---|
|