dumbass - 2022-11-25

Hi, I want to create an crane configuration which used the I_btNavigate: BYTE (BITWISE: 0=up, 1=down, 2=Next, 3=Previous, 4=Cancel, 5=Ok) to control the configuration table.

To define the crane configuration, the operator can choose whether to enter the model number or fill the crane selection manually. In addition, the chart code contains 9-digits including:
Type: String (One digit).
MB Length: Real (Two-digit).
Jib Length: Real (Two-digit).
Offset: Real (One-digit).
CW weight: Int (One-digit).
Other: T.B.D. (One digit).

If the operator chooses to fill in manually, then the structure of the crane selection will change following the crane type. Also, it returns the values of the chart code. When an invalid chart code is entered, a warning message and an alarm are activated.

The flowchart below describes the data flow in selecting the crane configuration. To illustrate, the process starts from the Idle state then the next/previous buttons will execute the selection of different types of cranes. In addition, there are two main types of mobile cranes: SSL, and others such as SWSL and SFSL, etc. Depending on the crane structure and its functionalities, the user will choose the type. Similarly, CW – Counterweight and MB length are the next two states.

For SSL selection, the only option is hook types: single hook, or double hooks. In opposition, other crane types must choose MB angle/ Jib offset, Jib length, and hook types following the crane structure and its functionalities. Finally, the current state can be cancelled by clicking on the OK/Cancel buttons, which converts to the old state.

But I don't know how to program the concept.