viewof cycleTimeReq = Inputs.select(
["< 100 μs", "< 1 ms", "< 10 ms", "< 100 ms", "> 100 ms"],
{value: "< 10 ms", label: "Required cycle time:"}
)
viewof safetyRated = Inputs.radio(
["Yes", "No"],
{value: "No", label: "Safety certification required?"}
)
viewof numDevices = Inputs.range([1, 10000], {
value: 100,
step: 10,
label: "Number of devices:"
})
viewof legacyDevices = Inputs.radio(
["Yes - must integrate", "No - greenfield"],
{value: "No - greenfield", label: "Legacy devices present?"}
)
viewof itIntegration = Inputs.radio(
["Critical", "Moderate", "Not needed"],
{value: "Moderate", label: "IT/Cloud integration priority:"}
)
// Protocol selection logic
function selectProtocol(cycle, safety, devices, legacy, it) {
let recommendations = [];
if (legacy === "Yes - must integrate") {
recommendations.push({
protocol: "OPC-UA Gateway",
reason: "Integrate legacy devices without replacement",
priority: "High",
color: "#16A085"
});
}
if (cycle === "< 100 μs") {
recommendations.push({
protocol: "EtherCAT",
reason: "Only protocol meeting <100μs requirement",
priority: "Required",
color: "#E67E22"
});
} else if (cycle === "< 1 ms") {
recommendations.push({
protocol: "PROFINET IRT",
reason: "Deterministic <1ms with motion control support",
priority: "Recommended",
color: "#3498DB"
});
recommendations.push({
protocol: "EtherCAT",
reason: "Alternative with superior performance",
priority: "Alternative",
color: "#7F8C8D"
});
} else if (cycle === "< 10 ms") {
recommendations.push({
protocol: "PROFINET IO",
reason: "Standard factory automation protocol",
priority: "Recommended",
color: "#3498DB"
});
recommendations.push({
protocol: "EtherNet/IP",
reason: "Alternative for Rockwell ecosystems",
priority: "Alternative",
color: "#7F8C8D"
});
} else {
recommendations.push({
protocol: "Modbus TCP",
reason: "Sufficient for monitoring applications",
priority: "Recommended",
color: "#3498DB"
});
}
if (it === "Critical") {
recommendations.push({
protocol: "OPC-UA",
reason: "Universal IT/OT integration standard",
priority: "Required",
color: "#E67E22"
});
}
if (safety === "Yes") {
recommendations.push({
protocol: "PROFIsafe or FSoE",
reason: "Safety-rated protocol overlay required",
priority: "Required",
color: "#E74C3C"
});
}
return recommendations;
}
recommendations = selectProtocol(cycleTimeReq, safetyRated, numDevices, legacyDevices, itIntegration)
html`<div style="background: rgba(44, 62, 80, 0.05); padding: 20px; border-radius: 8px; margin: 20px 0;">
<h3 style="margin-top: 0; color: #2C3E50;">Recommended Protocols</h3>
${recommendations.map(rec => `
<div style="background: white; border-left: 4px solid ${rec.color}; padding: 15px; margin: 10px 0; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<div style="display: flex; justify-content: space-between; align-items: center;">
<div>
<div style="font-size: 1.3em; font-weight: bold; color: #2C3E50;">${rec.protocol}</div>
<div style="color: #7F8C8D; margin-top: 5px;">${rec.reason}</div>
</div>
<div style="background: ${rec.color}; color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9em; font-weight: bold;">
${rec.priority}
</div>
</div>
</div>
`).join('')}
<div style="margin-top: 20px; padding: 15px; background: linear-gradient(135deg, #2C3E50 0%, #16A085 100%); color: white; border-radius: 6px;">
<strong>Pro Tip:</strong> Modern industrial systems often layer multiple protocols:
<ul style="margin: 10px 0 0 20px;">
<li>Real-time control layer (EtherCAT/PROFINET)</li>
<li>IT integration layer (OPC-UA)</li>
<li>Cloud connectivity (MQTT over TLS)</li>
<li>Legacy device integration (protocol gateways)</li>
</ul>
</div>
</div>`Protocol Selection Assistant
Protocol Selection Assistant
animation
iiot
industrial
protocols
Try Change Required cycle time: to compare protocol recommendations. Then press Check protocols.
Observe After pressing Check protocols, watch recommended protocols as IT/Cloud integration priority: changes.
Explain Describe how Required cycle time: changes protocol recommendations after you press Check protocols.
Technical boundaries. Recommendations use cycle time, safety, legacy devices, and IT integration choices. The number of devices does not change the selection logic.