LinuxCNC Documentation
This page is 0% translated. Untranslated text is shown in English.

SYNOPSIS

loadrt classicladder_rt [numRungs=N] [numBits=N] [numWords=N] [numTimers=N] [numMonostables=N] [numCounters=N] [numPhysInputs=N] [numPhysOutputs=N] [numArithmExpr=N] [numSections=N] [numSymbols=N] [numS32in=N] [numS32out=N] [numFloatIn=N] [numFloatOut=N]

loadusr classicladder <file name> [--nogui]

DESCRIPTION

This component consist of a realtime part and a non-realtime part. The non-realtime part loads the programmable ladder description, while the realtime part provides the pins. The file name of the configuration can be changed using an argument to the non-realtime part. By default the non-realtime part provides a graphical visualisation of the loaded ladder, which can be disabled using the --nogui option to the non-realtime part.

These pins and parameters are created by the realtime classicladder_rt module. Each period (minimum 1000000 ns), ClassicLadder reads the inputs, evaluates the ladder logic defined in the GUI, and then writes the outputs.

PINS

classicladder.0.in-NN IN bool

These bool signal pins map to %INN variables in ClassicLadder.

classicladder.0.out-NN OUT bool

These bool signal pins map to %QNN variables in ClassicLadder. Output from ClassicLadder.

classicladder.0.s32in-NN IN sint

Integer input from ClassicLadder. These sint signal pins map to %IWNN variables in ClassicLadder.

classicladder.0.s32out-NN OUT sint

Integer output from ClassicLadder. These sint signal pins map to %QWNN variables in ClassicLadder.

classicladder.0.floatin-NN IN real

Integer input from ClassicLadder. These real signal pins map to %IFNN variables in ClassicLadder. These are truncated to S32 values internally, e.g. 7.5 will be 7.

classicladder.0.floatout-NN OUT real

Real output from ClassicLadder. These real signal pins map to %QFNN variables in ClassicLadder.

classicladder.0.hide_gui IN bool

This bool pin hides the ClassicLadder window, while still having the non-realtime code run. This is usually desirable when modbus is used, as modbus requires the non-realtime code to run.

classicladder.0.refresh.time OUT real

Tells you how long the last refresh took, in seconds.

classicladder.0.refresh.tmax IO real

Tells you how long the longest refresh took, in seconds. Write 0 to reset it.

PARAMETERS

classicladder.0.ladder-state RO sint

Tells you if the program is running or not

FUNCTIONS

classicladder.0.refresh FP

The rung update rate. Add this to the servo thread. You can added it to a faster thread but it. Will update no faster than once every 1 millisecond (1000000 ns).

BUGS

SEE ALSO

ClassicLadder chapters in the LinuxCNC documentation for a full description of the ClassicLadder syntax and examples.