Programming in widget "LadderEditor"

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Process  > LadderEditor  > Concept  >

Programming in widget "LadderEditor"

This section provides a step-by-step explanation of how to program in Ladder Diagram using widget "LadderEditor".

Adding items

There are 4 different types of items:

Item

Description

kontakt

Contact:

Contacts can be connected to the left power rail.

They can be linked to other contacts/timers on the left or right.

Contacts cannot be connected to the right power rail.

spule

Coil:

Coils can only be used on the right power rail of the ladder diagram.

They are connected to the left with contacts/timers.

zeitverz-c3-b6gerung1

Switch-on delay:

Switch-on delays can be connected to the left power rail.

They can be linked to other contacts/timers on the left or right.

Switch-on delays cannot be connected to the right power rail.

zeitverz-c3-b6gerung2

Switch-off delay:

Switch-off delays can be connected to the left power rail.

They can be linked to other contacts/timers on the left or right.

Switch-off delays cannot be connected to the right power rail.

In order to create an executable program, items must be added from the toolbar. They can be added to the programming interface using drag-and-drop.

kontakte_spulen

The marked sections indicate where the item can be placed:

insert_contact

If the item is placed, a dialog box appears automatically to select which variable ("Condition") and type of item ("Contact type") should be added. The variables are defined in the MpCodeBox configuration. For possible item types, see section Contacts and coils.

code_box_dialog

Adding a timer

There are 2 types of timers. These are the switch-on delay and switch-off delay.

When items are added, a dialog box appears automatically to define the timer. The time is specified in milliseconds.

dialogbox_zeitverz-c3-b6gerung

Editing an existing item

In order to edit an existing item (e.g. to bind another variable), double-click on the desired item to select it:

edit_existing_item

A dialog box then appears where a different variable can be selected, for example:

edit_existing_item_result

Adding subsequent/parallel items

In order to add an item after or parallel to another item, select an item from the toolbar and add it to the desired position using drag-and-drop.

Adding a subsequent item:

insert_1

Adding a subsequent item

insert_result_1

Result

Adding a parallel item:

insert_2

Adding a parallel item

insert_result_2

Result

Moving an existing item

To move an existing item, select it and move it to the new position using drag-and-drop.

move_existing_item

The item will then be shown at the new position:

move_existing_item_result

Deleting an item

To delete an item, select it and move it outside the network.

delete_existing_item

Connecting items

Items can be connected to one another. Click on an item to create connecting lines. The clicked area is darkened. The possible connection paths are lighter:

connect_items_solution

Depending on where a connecting line should be created, it is possible to select below, above, to the left or to the right.

Example for creating a connecting line above:

connect_items

Creating a connecting line above

connect_items_result

Result

Adding a network

To add a network, click on the green "Plus" icon. The network is placed below the existing network:

add_network

Adding a network

add_network_result

Result

Deleting a network

To delete a network, click on the red "X" icon:

delete_network

Deleting a network

delete_network_result

Result

Adding a network comment

A comment can be added to a network. Property showComments for widget "LadderEditor" must be set to true for this.

Then click on the sample comment:

click_comment

A dialog box then opens where the new comment can be entered.

add_comment

Invalid network

If a program is saved, its validity is checked. Saving is initiated from the title bar. For more information, see Working with the title bar. If a program is invalid, then a red bar will be shown to the left of the network.

networkinvalid

Reasons a program may be invalid:

No items in the network

Open item or connecting line

Item without a macro

Invalid connecting lines