Device Connectivity
DataForeman supports multiple industrial protocols to connect to your devices, collect data, and store it for analysis. The Connectivity module handles all device communication and data acquisition.

Overview
The Connectivity module provides:
- Multi-Protocol Support: OPC UA, Siemens S7, EtherNet/IP (Allen-Bradley PLCs)
- Tag Browser: Visual interface to discover and select data points
- Real-Time Monitoring: Live status indicator showing active connections
- Auto-Discovery: Automatic device and tag detection (protocol-dependent)
- Data Quality: Connection health and data quality indicators
Supported Protocols
OPC UA (OPC Unified Architecture)
Use Cases:
- Modern SCADA systems
- Industrial IoT gateways
- Multi-vendor equipment integration
Features:
- Browse server node tree
- Subscribe to value changes
- Secure authentication (username/password, certificates)
- Automatic reconnection on network issues
Siemens S7
Use Cases:
- Siemens PLCs (S7-300, S7-400, S7-1200, S7-1500)
- Direct PLC communication
- High-speed data collection
Features:
- Read data blocks (DB)
- Support for all S7 data types
- Optimized batch reading
- Slot and rack configuration
EtherNet/IP (Allen-Bradley)
Use Cases:
- Rockwell Automation PLCs (ControlLogix, CompactLogix)
- Allen-Bradley devices
- Ethernet-based industrial networks
Features:
- Multi-rate polling (different tags at different speeds)
- Program-scoped tag browsing
- Structure and UDT support
- Connection rate optimization
Getting Started
Step 1: Navigate to Connectivity
Click the Connectivity icon in the left sidebar.
Step 2: Select Protocol Tab
Choose the protocol that matches your device:
- OPC UA tab for OPC servers
- SIEMENS S7 tab for Siemens PLCs
- ETHERNET/IP tab for Allen-Bradley PLCs
Step 3: Create a Connection
- Click SETUP NEW CONNECTION
- Fill in the connection details (see protocol-specific sections below)
- Click Test Connection to verify
- Click Save to create the connection
OPC UA Connection Setup
Required Information
- Connection Name: Descriptive name for this connection
- Endpoint URL: OPC UA server address (e.g.,
opc.tcp://192.168.1.100:4840) - Security Mode: None, Sign, or SignAndEncrypt
- Authentication: Anonymous, Username/Password, or Certificate
Configuration Steps
- Enter the endpoint URL of your OPC UA server
- Select security mode (start with “None” for testing)
- If required, enter username and password
- Click Browse Endpoints to auto-detect server capabilities
- Test the connection
- Save the configuration
Browsing Tags
Once connected:
- Go to the TAGS tab
- Select your OPC UA connection from the dropdown
- Expand the node tree to find your data points
- Select tags you want to monitor
- Click Add Selected Tags to start data collection

Siemens S7 Connection Setup
Required Information
- Connection Name: Descriptive name
- IP Address: PLC IP address (e.g., 192.168.1.50)
- Rack: Usually 0 for most setups
- Slot: Usually 1 for S7-300/400, 0 for S7-1200/1500
- PLC Type: Select your PLC model
Configuration Steps
- Enter the PLC IP address
- Configure rack and slot numbers
- Select the PLC type from the dropdown
- Test the connection
- Save the configuration
Adding Tags
- Go to the TAGS tab
- Select your S7 connection
- Manually define tags with:
- Tag name
- Data block number (e.g., DB1)
- Start byte (e.g., 0)
- Data type (BOOL, INT, REAL, etc.)
- Click Add Tag to start monitoring
EtherNet/IP Connection Setup
Required Information
- Connection Name: Descriptive name
- IP Address: PLC IP address
- Slot: Usually 0 for ControlLogix, varies for CompactLogix
- Timeout: Connection timeout in milliseconds (default: 5000)
Configuration Steps
- Enter the PLC IP address
- Set the slot number (check your PLC configuration)
- Adjust timeout if needed for slower networks
- Test the connection
- Save the configuration
Browsing Tags
The EtherNet/IP driver supports automatic tag discovery:
- Go to the TAGS tab
- Select your EtherNet/IP connection
- Click Browse PLC to discover available tags
- Filter by:
- Program name (for program-scoped tags)
- Data type
- Tag name pattern
- Select tags to monitor
- Click Add Selected Tags
Live Status Monitor
The LIVE indicator in the top-right shows:
- Green (4/4): All connections active and healthy
- Yellow (3/4): Some connections have issues
- Red (0/4): No active connections
- Gray: Connectivity service not running
Click the indicator to see detailed status for each connection.
Tag Management
Tag Settings Tab
The Settings tab provides system-wide configuration:
- Poll Rates: Default polling intervals for each protocol
- Batch Sizes: Number of tags to read in one request
- Timeout Values: Connection and read timeouts
- Retry Logic: Automatic reconnection settings
Multi-Rate Polling
For EtherNet/IP connections, you can configure different poll rates for different tags:
- Fast (100ms - 1s): Critical process variables
- Medium (1s - 10s): Standard monitoring tags
- Slow (10s - 60s): Setpoints and status flags
This optimizes network traffic and PLC load.
Data Quality Indicators
Each tag has a quality indicator:
- Good: Data is current and valid
- Uncertain: Data may be stale or estimated
- Bad: No communication or invalid data
Troubleshooting
Cannot Connect to Device
-
Check Network:
- Ping the device IP address
- Verify firewall rules allow traffic
- Check network cables and switches
-
Verify Settings:
- Confirm IP address is correct
- Check rack/slot numbers (S7)
- Verify endpoint URL (OPC UA)
-
Protocol-Specific:
- OPC UA: Check security mode matches server
- S7: Ensure PLC has accessible data blocks
- EIP: Verify slot number and communication path
Tags Not Updating
- Connection Status: Check live status indicator
- Tag Configuration: Verify tag addresses are correct
- Poll Rate: Confirm poll rate is appropriate
- PLC Program: Check if PLC is in RUN mode
Performance Issues
- Reduce Poll Rate: Slow down non-critical tags
- Batch Optimization: Adjust batch sizes in settings
- Connection Limits: Check PLC connection limits
- Network Load: Monitor network bandwidth usage
Best Practices
Security
- Use secure authentication when possible
- Limit network access to DataForeman server
- Use VLANs to separate OT and IT networks
- Regularly update PLC and server firmware
Performance
- Group tags by poll rate (fast, medium, slow)
- Use appropriate data types (don’t read DWORD for BOOL)
- Limit total tag count per connection (< 1000 recommended)
- Monitor CPU and memory usage in Diagnostics
Organization
- Use clear, descriptive connection names
- Follow consistent naming conventions for tags
- Document rack/slot configurations
- Maintain an inventory of connected devices
Next Steps
- Learn how to visualize collected data in Chart Composer
- Create dashboards with your tags in Dashboard Creation
- Monitor system health in Diagnostics