Β© 2026 Onsite Automation. All Rights Reserved. N
/* ===================================================================== */
/* β‘ ONSITE AUTOMATIONβ’ MASTER ENTERPRISE ENGINEERING OS - JAVASCRIPT ENGINE β‘ */
/* ===================================================================== */
window.masterApp = window.masterApp || {
activeTab: 'urs',
plcMode: 'ladder',
netProfile: 'industrial',
busMode: '480v',
gridSnap: true,
selectedIndex: 0,
sw: {
scene: null,
camera: null,
renderer: null,
controls: null,
internetStepRepo: [
{ name: 'Rockwell ControlLogix 5580 L81E CPU', sku: 'AB-1756-L81E', vendor: 'Rockwell Automation', file: 'AB_1756_L81E.step', category: 'CPU Controller', mass: '1.42 kg', type: 'plc' },
{ name: 'PowerFlex 525 AC Drive', sku: 'AB-25B-D010', vendor: 'Rockwell Automation', file: 'AB_25B_D010.step', category: 'VFD Inverter', mass: '2.10 kg', type: 'vfd' },
{ name: 'FANUC M-20iA Robotic Arm', sku: 'FANUC-M20iA', vendor: 'FANUC America', file: 'FANUC_M20iA.step', category: 'Robot Arm', mass: '250.0 kg', type: 'robot' },
{ name: 'SMC Pneumatic CA2 Cylinder', sku: 'SMC-CA2-80', vendor: 'SMC Corporation', file: 'SMC_CA2.step', category: 'Pneumatic Actuator', mass: '1.10 kg', type: 'cylinder' }
],
partVault: [],
treeItems: [
{ id: 't-1', name: 'Assembly_Cell_01.sldasm (Master Assembly)', icon: 'π¦', type: 'assembly' },
{ id: 't-2', name: ' Annotations & Planes', icon: 'π', type: 'annotation' },
{ id: 't-3', name: ' ControlLogix 5580 CPU <1>', icon: 'β‘', file: 'AB_1756_L81E.step', type: 'component', mass: '1.42 kg', cadType: 'plc' }
],
selectedTreeIdx: 2
},
rungs: [
{ id: 0, lineNo: '101', tag: 'CB1', desc: 'Main 3-Phase Breaker 480V', wire: 'W-480V-01', term: 'TB1-1 / TB1-2', y: 120 },
{ id: 1, lineNo: '102', tag: 'PS1', desc: '24VDC Power Supply Unit (10A)', wire: 'W-24VDC-01', term: 'TB2-1 / TB2-2', y: 210 },
{ id: 2, lineNo: '103', tag: 'SR1', desc: 'Emergency Stop Safety Relay PLe', wire: 'W-SAFE-01', term: 'SR1-IN1 / OUT1', y: 300 },
{ id: 3, lineNo: '104', tag: 'PLC1', desc: 'Rockwell ControlLogix L81E CPU', wire: 'NET-ETH-01', term: 'ETH1 / ETH2', y: 390 },
{ id: 4, lineNo: '105', tag: 'VFD1', desc: 'PowerFlex 525 Inverter Drive', wire: 'W-MOTOR-01', term: 'U / V / W', y: 480 },
{ id: 5, lineNo: '106', tag: 'M1', desc: 'Conveyor Drive Induction Motor', wire: 'W-M1-OUT', term: 'T1 / T2 / T3', y: 570 }
],
ursData: [
{ item: '01. Primary Cycle Time', target: '< 4.5 seconds per molded part', status: 'Compliant' },
{ item: '02. Safety Interlock Category', target: 'ISO 13849-1 Category 4 / PLe', status: 'Verified' },
{ item: '03. Controller Platform', target: 'Rockwell ControlLogix 5580 / Studio 5000', status: 'Approved' },
{ item: '04. Robotics Integration', target: 'Dual FANUC M-20iA 6-Axis Arms', status: 'Verified' },
{ item: '05. Data Integrity & Logging', target: '21 CFR Part 11 Audit Trail Enabled', status: 'Active' },
{ item: '06. Environmental Rating', target: 'NEMA 4X Stainless Enclosure', status: 'Approved' }
],
bomData: [
{ item: 'ControlLogix L81E CPU', qty: 1, vendor: 'Rockwell Automation', price: '$4,250.00' },
{ item: 'PowerFlex 525 VFD', qty: 2, vendor: 'Rockwell Automation', price: '$850.00' },
{ item: 'FANUC M-20iA Robot Arm', qty: 2, vendor: 'FANUC America', price: '$6,500.00' },
{ item: 'SMC Pneumatic Cylinders', qty: 6, vendor: 'SMC Corporation', price: '$1,200.00' },
{ item: 'Allen-Bradley PanelView 5510 HMI', qty: 1, vendor: 'Rockwell Automation', price: '$2,450.00' },
{ item: 'Sick C4000 Safety Light Curtain', qty: 2, vendor: 'Sick AG', price: '$1,850.00' }
],
ioData: [
{ tag: 'Local:1:I.Data[0]', desc: 'Cell Start Pushbutton', type: 'DI', state: 'ON (1)' },
{ tag: 'Local:1:I.Data[1]', desc: 'E-Stop Safety Chain Closed', type: 'DI', state: 'ON (1)' },
{ tag: 'Local:2:O.Data[0]', desc: 'Conveyor VFD Run Command', type: 'DO', state: 'OFF (0)' },
{ tag: 'Local:2:O.Data[1]', desc: 'Robot Grip Solenoid Valve', type: 'DO', state: 'OFF (0)' },
{ tag: 'Local:3:I.Data[0]', desc: 'Hydraulic Pressure Transducer', type: 'AI', state: '14.2 PSI' },
{ tag: 'Local:3:I.Data[1]', desc: 'Mold Temperature Sensor Zone 1', type: 'AI', state: '185.4 Β°F' }
],
ladderRungsVisual: [
{ num: '0000', symbols: ['--[ ]--', '--/ /--'], tags: ['Cell_Start_Button', 'Safety_Gate_Closed'], output: '( ) System_Running', powerFlow: true, desc: 'Master Start & Safety Interlock' },
{ num: '0001', symbols: ['--[ ]--'], tags: ['System_Running'], output: '(TON) Conveyor_Timer (PT:1500ms)', powerFlow: true, desc: 'Conveyor Startup Timer' },
{ num: '0002', symbols: ['--[ ]--'], tags: ['Conveyor_Timer.DN'], output: '( ) VFD_Conveyor_Run', powerFlow: false, desc: 'Conveyor VFD Run Output' },
{ num: '0003', symbols: ['--[ ]--', '--[ ]--'], tags: ['System_Running', 'VFD_Conveyor_Run'], output: '( ) Robot_Cell_Enable', powerFlow: false, desc: 'FANUC Robot Cell Enable Interlock' }
]
};
window.masterApp.sw.partVault.push(window.masterApp.sw.internetStepRepo[0]);
window.safeExportProjectZip = function() {
console.log("Executing Master Pack and Go ZIP export sequence...");
alert("π¦ [Pack and Go ZIP]\n\nComplete enterprise engineering project package exported successfully with full 12-tab CAD, DWG, PLC, HMI, and URS documentation archives.");
};
window.setPlcMode = function(mode, btn) {
window.masterApp.plcMode = mode;
const btnLadder = document.getElementById('btn-mode-ladder');
const btnStructured = document.getElementById('btn-mode-structured');
if (btnLadder && btnStructured) {
btnLadder.style.background = mode === 'ladder' ? '#d83b01' : '#1e222b';
btnLadder.style.color = mode === 'ladder' ? '#fff' : '#cbd5e1';
btnStructured.style.background = mode === 'structured' ? '#d83b01' : '#1e222b';
btnStructured.style.color = mode === 'structured' ? '#fff' : '#cbd5e1';
}
window.renderPlcEditorViewport();
};
window.renderPlcEditorViewport = function() {
const viewport = document.getElementById('plc-viewport-content');
if (!viewport) return;
if (window.masterApp.plcMode === 'ladder') {
viewport.innerHTML = `
Routine: MainRoutine (Actual Rockwell Ladder Logic View)
+ Add Ladder Rung
${window.masterApp.ladderRungsVisual.map((r) => `
RUNG ${r.num}
|${r.powerFlow ? 'βββ' : '---'}|
${r.symbols.map((sym, sIdx) => `
${sym}
${r.tags[sIdx]}
`).join('')}
${r.powerFlow ? 'βββββββββββββββ' : '-------------------'}
${r.output}
// ${r.desc}
`).join('')}
`;
} else {
viewport.innerHTML = `
Routine: MainRoutine (Structured Text Editor)
Syntax Verified // IEC 61131-3 Compliant
`;
}
};
window.addPlcRung = function() {
const nextNum = String(window.masterApp.ladderRungsVisual.length).padStart(4, '0');
window.masterApp.ladderRungsVisual.push({
num: nextNum,
symbols: ['--[ ]--'],
tags: ['New_Contact_Bit'],
output: '( ) New_Output_Tag',
desc: 'Custom Ladder Rung',
powerFlow: false
});
window.renderPlcEditorViewport();
};
window.setNetProfile = function(profile) {
window.masterApp.netProfile = profile;
document.querySelectorAll('.net-profile-card').forEach((c, idx) => {
const pNames = ['industrial', 'commercial', 'home'];
if (pNames[idx] === profile) {
c.classList.add('active');
} else {
c.classList.remove('active');
}
});
window.renderNetworkWorkspace();
};
window.renderNetworkWorkspace = function() {
const body = document.getElementById('network-workspace-body');
if (!body) return;
if (window.masterApp.netProfile === 'industrial') {
body.innerHTML = `
Industrial Network Architecture (OPC UA / EtherNet/IP)
High-speed deterministic control network linking plant-floor PLCs, VFDs, and SCADA servers.
OPC UA Server & Tag Namespace Configuration
OPC UA Endpoint URL:
π‘ Test OPC UA Server Connection
`;
} else if (window.masterApp.netProfile === 'commercial') {
body.innerHTML = `
Commercial Network Integration (MQTT / Cloud REST API)
Enterprise-level data bridge connecting plant production metrics to corporate ERP/MES systems.
Cloud MQTT Broker & REST Webhook Settings
MQTT Broker Host:
βοΈ Test Cloud MQTT Publish
`;
} else {
body.innerHTML = `
Home Automation & Facility Connection (Home Assistant / Zigbee)
Integration layer for smart facility management, auxiliary environmental sensors, and HVAC control.
Home Assistant WebSockets & Zigbee2MQTT Gateway
Home Assistant API URL:
π Test Facility Smart Lighting
`;
}
};
window.filterStepRepo = function(query) {
const list = document.getElementById('step-repo-results-list');
if(!list) return;
const q = (query || '').trim().toLowerCase();
const repo = window.masterApp.sw.internetStepRepo || [];
const matches = q === '' ? repo : repo.filter(p => p.name.toLowerCase().includes(q) || p.sku.toLowerCase().includes(q) || p.category.toLowerCase().includes(q));
list.innerHTML = matches.map(m => `
${m.name}
SKU: ${m.sku} | ${m.vendor}
Add π₯
`).join('');
};
window.downloadAndParseStepFile = function(sku) {
const part = window.masterApp.sw.internetStepRepo.find(p => p.sku === sku);
if (!part) return;
window.masterApp.sw.treeItems.push({
id: 't-' + Math.random(),
name: ` ${part.name} <${window.masterApp.sw.treeItems.length - 1}>`,
icon: 'π¦',
file: part.file,
type: 'component',
mass: part.mass
});
window.renderSwTree();
alert(`π [SolidWorks CAD Workspace]\n\nSuccessfully downloaded and added '${part.name}' to the assembly tree.`);
};
window.initThreeJsWorkspace = function() {
const container = document.getElementById('three-canvas-viewport');
if (!container) return;
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x05080f);
window.masterApp.sw.scene = scene;
const camera = new THREE.PerspectiveCamera(45, container.clientWidth / container.clientHeight, 0.1, 1000);
camera.position.set(90, 70, 90);
window.masterApp.sw.camera = camera;
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(container.clientWidth, container.clientHeight);
container.appendChild(renderer.domElement);
window.masterApp.sw.renderer = renderer;
const controls = new THREE.OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
window.masterApp.sw.controls = controls;
scene.add(new THREE.AmbientLight(0xffffff, 0.7));
const dirLight = new THREE.DirectionalLight(0xffffff, 0.9);
dirLight.position.set(150, 250, 150);
scene.add(dirLight);
const grid = new THREE.GridHelper(200, 20, 0xd83b01, 0x1e222b);
grid.position.y = -35;
scene.add(grid);
const rackMat = new THREE.MeshStandardMaterial({ color: 0x1e222b, metalness: 0.6, roughness: 0.3 });
const cpuMat = new THREE.MeshStandardMaterial({ color: 0xd83b01, metalness: 0.5, roughness: 0.2 });
const rack = new THREE.Mesh(new THREE.BoxGeometry(70, 38, 14), rackMat);
const cpu = new THREE.Mesh(new THREE.BoxGeometry(24, 34, 18), cpuMat);
cpu.position.set(-12, 0, 3);
scene.add(rack);
scene.add(cpu);
function animate() {
requestAnimationFrame(animate);
controls.update();
renderer.render(scene, camera);
}
animate();
};
window.renderSwTree = function() {
const container = document.getElementById('sw-feature-tree');
if(!container) return;
container.innerHTML = window.masterApp.sw.treeItems.map((item, idx) => `
${item.icon || 'βοΈ'}${item.name}
SLD
`).join('');
};
window.renderAutoCadSchematic = function() {
const group = document.getElementById('acad-svg-rungs');
if (!group) return;
group.innerHTML = window.masterApp.rungs.map((r, idx) => `
LN ${r.lineNo}
Wire: ${r.wire}
[ ${r.tag} ]
${r.desc.substring(0, 20)}
Term: ${r.term}
`).join('');
};
window.selectAcadComponent = function(idx) {
window.masterApp.selectedIndex = idx;
window.renderAutoCadSchematic();
window.renderAcadInspector(idx);
const cmdInput = document.getElementById('acad-command-input');
if(cmdInput) cmdInput.value = `Command: _PROPERTIES selected Rung Line [${window.masterApp.rungs[idx].lineNo}]`;
};
window.renderAcadInspector = function(idx) {
const inspector = document.getElementById('acad-property-inspector');
if (!inspector) return;
const r = window.masterApp.rungs[idx];
if (!r) return;
inspector.innerHTML = `
β‘ Selected Line #${r.lineNo}
Tag: ${r.tag}
Line Number (LN):
Component Tag:
Description:
Wire Tag:
Erase Component ποΈ
`;
};
window.insertAutoCadSymbol = function(prefix, name, spec) {
let nextY = 120 + (window.masterApp.rungs.length * 90);
if (nextY > 620) {
alert("Maximum vertical drawing capacity reached for Sheet 1.");
return;
}
const nextLine = String(101 + window.masterApp.rungs.length);
window.masterApp.rungs.push({
id: window.masterApp.rungs.length,
lineNo: nextLine,
tag: prefix + (window.masterApp.rungs.length + 1),
desc: name + ' (' + spec + ')',
wire: 'W-' + prefix + '-' + nextLine,
term: 'TB-' + nextLine + 'A',
y: nextY
});
window.selectAcadComponent(window.masterApp.rungs.length - 1);
};
window.autoRenumberLines = function() {
window.masterApp.rungs.forEach((r, idx) => {
r.lineNo = String(101 + idx);
});
window.renderAutoCadSchematic();
window.renderAcadInspector(window.masterApp.selectedIndex);
alert("π’ [AutoCAD Electrical Toolset]\n\nSuccessfully executed line numbering sequence across all active rungs.");
};
window.togglePowerBus = function() {
window.masterApp.busMode = window.masterApp.busMode === '480v' ? '24vdc' : '480v';
const l1Txt = document.getElementById('rail-l1-txt');
const l2Txt = document.getElementById('rail-l2-txt');
const btn = document.getElementById('bus-toggle-btn');
if (window.masterApp.busMode === '24vdc') {
if(l1Txt) l1Txt.textContent = '24VDC (+) BUS';
if(l2Txt) l2Txt.textContent = '0VDC (-) BUS';
if(btn) btn.textContent = 'β‘ Bus Active: 24VDC Control';
} else {
if(l1Txt) l1Txt.textContent = 'L1 (480VAC)';
if(l2Txt) l2Txt.textContent = 'L2 (NEUT)';
if(btn) btn.textContent = 'β‘ Toggle Bus: 480VAC / 24VDC';
}
};
window.toggleGridSnap = function() {
window.masterApp.gridSnap = !window.masterApp.gridSnap;
const btn = document.getElementById('grid-snap-btn');
const gridPath = document.getElementById('grid-path');
if(btn) btn.textContent = window.masterApp.gridSnap ? 'π Grid Snap: ON' : 'π Grid Snap: OFF';
if(gridPath) gridPath.setAttribute('stroke', window.masterApp.gridSnap ? '#0f172a' : '#1e293b');
};
π€ AI Diagnostic & Call Model
β
Describe the Fault, Error Code, or Symptom *
Facility / Contact Name *
Active Payment Gateway *
Review & Edit Telemetry Parameters β
Selected Settlement Gateway: PayPal
Diagnostic Fee: $25.00 USD
Back
Proceed to Secure Gateway Checkout β
β‘
Payment Gateway Redirect Initialized
Telemetry logged to Onsite Pulseβ’ and CRM/Service queue.
Done & Return to Dashboard
β
Selected Settlement Gateway: PayPal
Inspection Fee: $99.00 USD
Back
Proceed to Secure Gateway Checkout β
β‘
Payment Verified & AI Analysis Ready
Ticket routed to Onsite Pulseβ’ engine and CRM/Service queue.
Done & Return to Dashboard
β
Selected Settlement Gateway: PayPal
Brokerage Fee: $35.00 USD
Back
Proceed to Secure Gateway Checkout β
β‘
Payment Gateway Redirect Initialized
Brokerage logged to Onsite Pulseβ’ and CRM/Service queue.
Done & Return to Dashboard
β
Name
Specialty
β
5.0 Rating
Grid
PORTFOLIO & ACCOMPLISHMENTS
Request Direct Dispatch for this Engineer β
×
β‘ Onsite Pulse: Master System Overview
Bridging physical industrial machinery and high-performance digital architecture across all 50 states.
π’
For Clients & Facilities
Rapid Engineering Dispatch
Need industrial machinery wired, custom PLC ladder logic written, or high-performance web platforms deployed? Onsite Pulseβ’ connects you instantly with verified engineering talent.
1. Intake & Diagnosis
Log your machine fault, error codes, or project scope.
2. Triage & Bidding
Verified experts review live telemetry and bid on solutions.
3. Secure Execution
Patches deployed or field techs dispatched with secure escrow.
Submit Project / Support Ticket β
π οΈ
For Engineers & Techs
Join the Roster & Claim Bounties
Access live telemetry dashboards, review triage feeds, and bid on high-paying jobs. Click a tier below to register:
Standard Roster
$0/mo
No credit card required
Manual admin review
Free Troubleshooting Dashboard
20% platform fee per job
π‘οΈ Basic Alerts
$9.99/mo
Instant phone alerts
Standard priority queue
Free Troubleshooting Dashboard
20% platform fee per job
β‘ Silver Pro
$19.99/mo
Faster dispatch queue
Priority geo-matching
Free Troubleshooting Dashboard
20% platform fee per job
π Gold Elite
$29.99/mo
Top priority lead routing
Instant SMS broadcast
Free Troubleshooting Dashboard
15% platform fee per job
π Platinum Master
$39.99/mo
Instant priority dispatch
0% Commission Fee
Free Troubleshooting Dashboard
Featured on front page
β
π
Unlock Troubleshooting & Bidding Access
Select your Onsite Pulseβ’ technician package below to claim cash bounties and receive high-priority alerts.
Select Roster Tier & Pricing *
Standard Roster ($0 / forever) - Free account & dashboard
π‘οΈ Basic Alerts ($9.99 / mo) - Instant phone alerts & standard queue
β‘ Silver Pro ($19.99 / mo) - Faster dispatch queue & priority geo-matching
π Gold Elite ($29.99 / mo) - Top priority job dispatch & instant SMS broadcast
π Platinum Master ($39.99 / mo) - 0% Commission Fee + Featured Profile
Platinum Master ($39.99/mo): Enjoy instant priority dispatch across all 50 states, 0% commission fees on all claimed escrows, a free troubleshooting dashboard, and top-tier placement on the front page. Includes a 10-day free trial.
Payment Gateway *
Stripe (Secure Card Processing)
PayPal Business
CashApp
PayMe
Authorize & Register Account π
β
Step 01: Secure Diagnostic Gateway & Contact Info
β‘ $25 Technical Fault Database Access
Please provide your contact information below so we can track your ticket and follow up if your session is interrupted.
Diagnostic & Database Pass:
$25.00 USD
SELECT PAYMENT PROCESSOR:
π Secure checkout authorized for $25 pass.
Step 02: Authorize $25 & Proceed β
π₯οΈ STEP 03: OFFICIAL FAULT REPOSITORY
STATUS: UNLOCKED
π‘ Unlimited Searches Enabled: You can make as many searches as you need below.
β’ If you find your answer, go to Step 04 to complete the process.
β’ If you didn't get the help you needed, click Escalate to Onsite Pulse Network below to proceed to Step 05.
Detailed Query / Error Log Window *
π Search Technical Database
Enter query above to search telemetry logs...
π‘ Found Answer? Go to Step 04
π¨ Escalate to Onsite Pulse Network
π‘ STEP 04: RECORD SOLUTION & COMPLETE
KNOWLEDGE BASE SYNC
Describe what actually resolved your issue so we can store it in our global knowledge base to help other facilities in the future:
Problem Encountered *
Exact Resolution / Fix Applied *
β
Save Fix to Knowledge Base & Complete Ticket
Step 05: Onsite Pulseβ’ Network Dispatch
Choose Your Expert Engineering Support Pathway
Since your query wasn't resolved in the database, select one of our verified routing options below to connect instantly with elite professionals across all 50 states.
Direct 1-on-1 Priority Access
π Option A: Book Lead Systems Engineer (Consultation)
Your $25 diagnostic pass has been automatically credited! Get direct video/phone access with Lead Engineer Gabriella Grice to diagnose, debug, and patch your system live.
Book Head Engineer Session ($125) β
Crowdsourced Expert Bidding
β‘ Option B: Broadcast to Onsite Pulseβ’ Network
Set Your Max Bounty
Submit your problem description and the maximum bounty you are willing to pay. Verified technicians across our 50-state roster will review your ticket and bid on providing the solution.
Detailed Problem Description for Bidding *
Submit Ticket & Open for Tech Bidding π
π¬ Option C: Free Engineering Solution Consult
$0.00
Looking for general architectural advice or non-emergency engineering guidance? Log your request to our free community consultation desk.
Request Free Consult β
β
Multi-Technician Grid Sync
π
Book Onsite Engineering
Select your required time slots. Your booking includes an instant automated system analysis of your issue immediately after checkout.
β³
Awaiting Payment Confirmation...
Please wait while we authorize your payment. Do not close this window.
β
Booking Secured!
π€ GabbyBot Automated System Analysis
System diagnostic complete. The assigned engineer has been notified to bring spare relays.
Return to Dashboard β