Programmable Controllers

Programmable Logic Controllers

Pico Controllers

PicoGFX Program Operation Functions

Conditional Jump "JC" for Pico GFX

PicoGFX Conditional Jump
Symbol in the function
block diagram

The Pico GFX controllers provide 32 conditional jump function blocks JC01...JC32.

The conditional jump function block enables you to move forward to a jump label LB inside the function block diagram.

Structure your program as follows:

Function

When EN is 1, the program jumps forward over one or several function blocks. The next function block to be processed by the program is the first one following the jump label LBxx in the function block diagram. When EN is 0, the next function block that the program processes is the one that you have added behind JCxx in the function block diagram.

If the associated jump label is not present for an activated jump or is positioned in front of the jump label (backward jump), the program jumps to the end of the function block diagram. In both cases the bit output E1 is set to 1.

The function block status display indicates during simulation an active jump label (jump location) JCxx with a red frame. Jumped areas of the function block diagram change in intensity of color.

The red in the frame of an active function block that has been jumped lightens in color to pink, while the black frame of an inactive function block that has been jumped changes to grey.

Positioning, Linking and Parameter Assignment of a Conditional Jump Function Block

Requirement: You have included a Pico GFX controller in the project, have switched to Circuit Diagram View and have displayed the function block diagram there.

Positioning in the function block diagram

Drag the conditional jump JC.. function block into the function block diagram. In the Properties field window select the required function block number between 1 and 32 on the Parameters tab.

The conditional jump function block JCxx is now shown at the end of the function block diagram with the name of the required jump label defined LABEL:xx.

Position the conditional jump function block JCxx in the function block diagram in front of the function block(s) to be skipped. To do this, activate the context menu of the JCxx function block and use the Move Function Block function.

Use of the conditional jump function block also requires the placement of a jump label function block in the function block diagram.

Association in the circuit diagram

Drag the conditional jump function block JCxx onto a coil field of the circuit diagram and in the Properties Field window select the function block number already used in the positioning. Connect the JCxxEN coil with an appropriate contact for activation.

Note: For greater clarity, position the conditional jump function block JCxx in the circuit diagram if possible directly in front of the function block(s) to be skipped.

If the error output is to be evaluated, position the function block in the circuit diagram again. This time use it as a contact and associate JCxxE1 () with a suitable Boolean operand.

Circuit diagram elements and parameters

  Description Note
Coil function
(bit output)
EN Enable coil The program will branch to the jump label of the function block diagram if EN = 1.
Contact
(bit output)
E1 Error output Status 1 if no associated jump label is present or is located in front of the jump location (backward jump).
Simulation
Possible    

Memory Requirement

The conditional jump function block requires 20 bytes of memory.