PLC EthernetIP¶
Deprecated
This block is deprecated. Use the PLC Reader / PLC Writer blocks (set Connection mode to 'Direct - EtherNet/IP') instead. Note the outputs differ: instead of a single plc_results list, the PLC Reader returns tag_values (a tag->value dict) and the PLC Writer returns write_result, each alongside an error_status flag.
Class: PLCBlockV1
Source: inference.enterprise.workflows.enterprise_blocks.sinks.PLCethernetIP.v1.PLCBlockV1
This PLC Communication block integrates a Roboflow Workflow with a PLC using Ethernet/IP communication.
It can:
- Read tags from a PLC if mode='read'.
- Write tags to a PLC if mode='write'.
- Perform both read and write in a single run if mode='read_and_write'.
Parameters depending on mode:
- If mode='read' or mode='read_and_write', tags_to_read must be provided.
- If mode='write' or mode='read_and_write', tags_to_write must be provided.
If a read or write operation fails, an error message is printed to the terminal, and the corresponding entry in the output dictionary is set to a generic "ReadFailure" or "WriteFailure" message.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/sinks@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
plc_ip |
str |
IP address of the target PLC.. | ✅ |
mode |
str |
Mode of operation: 'read', 'write', or 'read_and_write'.. | ❌ |
tags_to_read |
List[str] |
List of PLC tag names to read. Applicable if mode='read' or mode='read_and_write'.. | ✅ |
tags_to_write |
Dict[str, Union[float, int, str]] |
Dictionary of tags and the values to write. Applicable if mode='write' or mode='read_and_write'.. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to PLC EthernetIP in version v1.
- inputs:
Image Stack,Anthropic Claude,Per-Class Confidence Filter,Color Visualization,Single-Label Classification Model,Perspective Correction,Corner Visualization,Roboflow Custom Metadata,Halo Visualization,Dynamic Zone,Qwen-VL,Keypoint Detection Model,JSON Parser,Email Notification,Object Detection Model,Background Color Visualization,Email Notification,Text Display,Image Preprocessing,Template Matching,Relative Static Crop,Florence-2 Model,VLM As Detector,OpenAI,OCR Model,Blur Visualization,Depth Estimation,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,PLC EthernetIP,Buffer,Webhook Sink,Byte Tracker,Contrast Equalization,Mask Edge Snap,Moondream2,Line Counter,VLM As Detector,Google Gemini,Triangle Visualization,Overlap Filter,Time in Zone,Inner Workflow,First Non Empty Or Default,Detections Stabilizer,Keypoint Detection Model,VLM As Classifier,Roboflow Asset Library Attributes,Polygon Zone Visualization,Google Gemma API,Contrast Enhancement,Image Threshold,Line Counter Visualization,Distance Measurement,Camera Calibration,Detection Offset,ByteTrack Tracker,Expression,S3 Sink,Microsoft SQL Server Sink,Twilio SMS Notification,Detections Combine,Morphological Transformation,Camera Focus,Size Measurement,Delta Filter,Stability AI Inpainting,PTZ Tracking (ONVIF),Classification Label Visualization,Stitch OCR Detections,Event Writer,Byte Tracker,Switch Case,Dominant Color,Rate Limiter,Mask Visualization,Reference Path Visualization,Identify Outliers,Image Slicer,Byte Tracker,OPC UA Writer Sink,Dot Visualization,Cache Set,Identify Changes,Dynamic Crop,Path Deviation,Llama 3.2 Vision,BoT-SORT Tracker,Gaze Detection,Segment Anything 2 Model,OpenAI-Compatible LLM,Single-Label Classification Model,Overlap Analysis,Qwen3.5,QR Code Detection,Object Detection Model,Qwen 3.6 API,Detections Consensus,Multi-Label Classification Model,OpenAI,SAM 3,PLC Reader,Image Convert Grayscale,Instance Segmentation Model,Roboflow Dataset Upload,SAM 3,Detections Classes Replacement,Roboflow Dataset Upload,Instance Segmentation Model,PLC Writer,Qwen 3.5 API,OC-SORT Tracker,Seg Preview,VLM As Classifier,Line Counter,MoonshotAI Kimi,Stability AI Image Generation,Path Deviation,Trace Visualization,Qwen2.5-VL,Icon Visualization,SIFT Comparison,Morphological Transformation,SmolVLM2,LMM For Classification,Clip Comparison,Environment Secrets Store,Detections Merge,Halo Visualization,Data Aggregator,Google Gemma,Ellipse Visualization,Twilio SMS/MMS Notification,Polygon Visualization,Crop Visualization,Absolute Static Crop,Model Monitoring Inference Aggregator,OpenRouter,OpenAI,PLC ModbusTCP,Motion Detection,Heatmap Visualization,Detections Filter,Perception Encoder Embedding Model,Dimension Collapse,Barcode Detection,YOLO-World Model,Google Gemini,Clip Comparison,Google Gemini,Background Subtraction,Keypoint Visualization,CSV Formatter,Stitch Images,Florence-2 Model,Current Time,Detections List Roll-Up,OpenAI,Qwen3-VL,Slack Notification,CLIP Embedding Model,SIFT,Local File Sink,Multi-Label Classification Model,Cosine Similarity,Image Contours,Pixel Color Count,GLM-OCR,Image Slicer,Time in Zone,Semantic Segmentation Model,Stitch OCR Detections,Semantic Segmentation Model,Multi-Label Classification Model,QR Code Generator,Detection Event Log,Detections Transformation,Mask Area Measurement,Google Vision OCR,Image Blur,Property Definition,Roboflow Vision Events,Bounding Rectangle,SAM2 Video Tracker,Qwen3.5-VL,Grid Visualization,Llama 3.2 Vision,Velocity,Label Visualization,SIFT Comparison,Detections Stitch,Circle Visualization,SAM3 Video Tracker,Camera Focus,MoonshotAI Kimi,CogVLM,SAM 3 Interactive,Bounding Box Visualization,LMM,Continue If,Roboflow Visual Search,EasyOCR,Cache Get,Instance Segmentation Model,Pixelate Visualization,Keypoint Detection Model,SORT Tracker,Track Class Lock,Anthropic Claude,Object Detection Model,Time in Zone,MQTT Writer,Polygon Visualization,SAM 3,Model Comparison Visualization,Single-Label Classification Model - outputs:
Polygon Zone Visualization,VLM As Classifier,Line Counter,MoonshotAI Kimi,Time in Zone,Google Gemma API,Seg Preview,Trace Visualization,Path Deviation,Line Counter Visualization,Anthropic Claude,Color Visualization,LMM For Classification,Perspective Correction,Clip Comparison,Corner Visualization,Halo Visualization,Keypoint Detection Model,Qwen-VL,Email Notification,Size Measurement,Halo Visualization,Object Detection Model,Classification Label Visualization,Google Gemma,Grid Visualization,Mask Visualization,Llama 3.2 Vision,Email Notification,Ellipse Visualization,Reference Path Visualization,Twilio SMS/MMS Notification,Label Visualization,Dot Visualization,Polygon Visualization,Cache Set,Crop Visualization,Path Deviation,Circle Visualization,Llama 3.2 Vision,SAM3 Video Tracker,OpenRouter,OpenAI,VLM As Detector,Florence-2 Model,OpenAI,Motion Detection,MoonshotAI Kimi,Object Detection Model,Instance Segmentation Model,Anthropic Claude,YOLO-World Model,Google Gemini,Qwen 3.6 API,Clip Comparison,Google Gemini,PLC EthernetIP,Detections Consensus,Keypoint Visualization,Buffer,Webhook Sink,Bounding Box Visualization,SAM 3,Florence-2 Model,PLC Reader,Instance Segmentation Model,Detections List Roll-Up,OpenAI,Line Counter,VLM As Detector,Google Gemini,Triangle Visualization,Roboflow Dataset Upload,SAM 3,Time in Zone,Instance Segmentation Model,Detections Classes Replacement,Keypoint Detection Model,Instance Segmentation Model,Roboflow Dataset Upload,Qwen 3.5 API,Object Detection Model,Anthropic Claude,Time in Zone,Keypoint Detection Model,VLM As Classifier,Polygon Visualization,SAM 3,Roboflow Asset Library Attributes
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
PLC EthernetIP in version v1 has.
Bindings
-
input
plc_ip(string): IP address of the target PLC..tags_to_read(list_of_values): List of PLC tag names to read. Applicable if mode='read' or mode='read_and_write'..tags_to_write(dictionary): Dictionary of tags and the values to write. Applicable if mode='write' or mode='read_and_write'..depends_on(*): Reference to the step output this block depends on..
-
output
plc_results(list_of_values): List of values of any type.
Example JSON definition of step PLC EthernetIP in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/sinks@v1",
"plc_ip": "192.168.1.10",
"mode": "read",
"tags_to_read": [
"camera_msg",
"sku_number"
],
"tags_to_write": {
"camera_fault": true,
"defect_count": 5
},
"depends_on": "$steps.some_previous_step"
}