Features

Compilation Feedback

Real-time compilation errors and warnings

Compilation Feedback

PLC Assist provides real-time compilation feedback, showing you errors and warnings as soon as changes are applied.

How It Works

When code changes are applied:

  1. The bridge sends the updated code to your PLC environment
  2. The project is compiled
  3. Compilation results are sent back to PLC Assist
  4. Errors and warnings appear in the chat

This happens automatically -- you don't need to manually trigger compilation.

Understanding Compilation Results

Success

When compilation succeeds, you'll see a success message along with any warnings.

Errors

When compilation fails, you'll see a list of errors with descriptions and locations.

Warnings

Warnings don't prevent compilation but indicate potential issues.

Common Error Types

Undefined Identifiers

Error: Identifier 'bStartMotor' not defined

Cause: Variable or function not declared Fix: Declare the variable or check spelling

Type Mismatches

Error: Type mismatch: Cannot assign REAL to INT

Cause: Incompatible data types Fix: Use explicit conversion (REAL_TO_INT) or change variable type

Missing Declarations

Error: Variable 'counter' must be declared

Cause: Using a variable without declaring it Fix: Add the variable to the appropriate VAR section

AI-Assisted Error Fixing

When you encounter errors, you can ask the AI for help:

"Fix the compilation error on line 15"
"Why am I getting a type mismatch error?"
"The compiler says 'bStart' is undefined, but I declared it"

The AI can:

  • Explain what the error means
  • Suggest fixes
  • Apply corrections automatically

Troubleshooting

Compilation Not Running

If compilation doesn't run:

  • Check that the bridge is connected
  • Verify your project is open in the PLC environment
  • Try reconnecting the bridge

Errors Not Clearing

If errors persist after fixing:

  • Trigger a manual compile
  • Restart the bridge

Next Steps

On this page