General concepts

Building Programs with Blocks

The Blocks Code Area is where you build your programs in Clu-Blocks Pro.

To create a program, simply drag blocks from the Blocks Area into the Code Area and connect them together.

Each block represents an instruction. When blocks are connected, they create a sequence of actions that the D1 R32 will follow.

Think of the Code Area as your digital workbench where all your ideas come together.


Creating a Program

Building a program usually follows these simple steps:

Choose a Block

      ↓

Drag It Into the Code Area

      ↓

Connect It to Other Blocks

      ↓

Run the Program

Most programs are read from:

TOP

 ↓

BOTTOM


Moving and Connecting Blocks

Blocks can be moved by clicking and dragging them.

Compatible blocks will snap together automatically.

Example

Turn LED ON

      ↓

Wait 1 Second

      ↓

Turn LED OFF

The order of the blocks becomes the order of the instructions.


Working with Menus

Clu-Blocks Pro provides two useful right-click menus.

Workspace Menu

Right-click an empty area of the Code Area.

[ INSERT IMAGE HERE: Workspace Context Menu ]

This menu contains tools for managing the workspace.


Block Menu

Right-click directly on a block.

[ INSERT IMAGE HERE: Block Context Menu ]

This menu contains tools for managing that specific block.


Useful Block Tools

ToolWhat It Does
DuplicateCreates a copy of a block
CollapseMakes a block smaller
ExpandRestores a collapsed block
DeleteRemoves a block
DisableTemporarily turns a block off
EnableTurns a disabled block back on

Not every block will show the same options.


Copying Blocks

If you need the same block more than once, you don't have to rebuild it.

You can simply copy it.

Example

LED Block

      ↓

Duplicate

      ↓

LED Block Copy

This saves time and keeps all the settings the same.

Keyboard Shortcuts

ActionShortcut
CopyCtrl + C
PasteCtrl + V
UndoCtrl + Z

Collapsing Blocks

As programs get bigger, they can take up a lot of space.

The Collapse option makes a block smaller without removing it.

Large Block

      ↓

Collapse

      ↓

Small Block

This helps keep your workspace organized.

When you need to see the full block again, choose:

Expand


Disabling Blocks

Sometimes you want to test a program without deleting part of it.

You can disable a block instead.

Example

Blink LED

↓

Disable Block

↓

Block Stays in Program

But Does Not Run

This is useful when testing different versions of your project.

 Disable means "keep it, but don't use it right now."


 Removing Blocks

There are several ways to remove a block.

Method 1

Drag the block to the Bin.

Method 2

Select the block and press:

Delete

or

Backspace

Method 3

Right-click the block and select:

Delete Block


Accidentally Deleted Something?

Use:

Ctrl + Z

or

Undo

to restore it.


 Keeping Your Workspace Organized

As projects become more complex, keeping your program organized becomes important.

A clean workspace helps you:

 Find blocks faster

 Understand your program

 Fix mistakes more easily

 Add new features later

 Work with larger projects

Good organization saves time and makes programming much easier.


 Beginner Practice Activities

Activity 1: Move a Block

Drag a block from the Blocks Area into the Code Area.

Learn:

Moving blocks

Navigating the workspace


Activity 2: Connect Blocks

Create:

LED ON

 ↓

Wait

 ↓

LED OFF

Learn:

Connecting blocks

Understanding program order


Activity 3: Copy a Block

Create one block and duplicate it.

Learn:

Copying blocks

Reusing code


Quick Reference

ActionHow To Do It
Move a BlockClick and drag
Connect BlocksSnap them together
Open Workspace MenuRight-click empty space
Open Block MenuRight-click a block
CopyCtrl + C
PasteCtrl + V
UndoCtrl + Z
DeleteDelete key, Backspace, Bin, or Menu
CollapseRight-click → Collapse
ExpandRight-click → Expand

Key Takeaway

The Code Area is where your programs are built. By dragging, connecting, copying, organizing, and managing blocks, you can create programs that are easier to understand, test, and improve.