İçeriğe geç
İletişim Başlayın

PLC

Bu içerik henüz dilinizde mevcut değil.

The machine’s logic is written in IEC 61131-3 Structured Text. The language is the standard’s; what follows is what is NEV’s own, and what a program that is correct in the language can still get wrong here.

There is one way in. A PLC project is added on PLC, and everything inside it, a program, a global variable list or a struct alike, comes from Add Element on the folder that holds it.

The project tree on the left: PLC, with PLCProject under it, and the POUs, GVLs and DUTs folders under that. On the right, what right-clicking each one offers. PLC offers Add PLC Project. All three folders point at the same Add Element. Captioned, all three folders offer the same one, and it asks which kind you meant.

Trajectories belong to the motion side. Whether they are allowed belongs to the PLC: the interlocks, the door, the tool changer, coolant and the safety chain are logic you write. Enabling a channel, starting a cycle and holding feed are PLC actions, so a machine that will not start is a question for the logic before it is a question for the program.

Motion is commanded through function blocks

Section titled “Motion is commanded through function blocks”

Do not write to the axis or channel structures. Every command goes through a function block from the shipped libraries, on the PLCopen interface: Execute in, and Done, Busy, Error and ErrorID out, with the axis or channel passed as VAR_IN_OUT.

Read the block’s own Busy and Done, never the channel’s status. Channel status is channel-wide and carries no command identity, so logic that derives its own state from it reports an unrelated program’s motion as its own block still working. This is what makes a finished operation appear to run forever.

A channel holds one command. Wait for a block to answer before submitting the next one to the same channel, or the later command replaces the earlier one and the first is never carried out.

A PLC event reaches the operator as words only if the project’s alarm catalogue is deployed with it. Without it the machine still runs and the alarm arrives as a pair of numbers.