13.4 Programmed Operation
13.4.4 Command Block Links
13.4.4 Command Block Links
Command blocks are linked as shown below depending on the link numbers in attribute 2 (Link
Number) of the command blocks.
Attribute 2
(Link Number)
Attribute 2
(Link Number)
Attribute 2
(Link Number)
Attribute 2
(Link Number)
Attribute 2
(Link Number)
The command block number is equivalent to the instance ID of the command block object.
If the link number that is stored in attribute 2 is 0, this command block will be the final block in
the sequence of command blocks.
If command block 1 is executed from the host controller with the command blocks stored as
shown in the preceding example, the command blocks are executed in the following sequence.
Command block 1 (start)
Command block 2
Command block 4
Command block 3
Command block 5 (end)
13.4.5 Creating and Changing Command Blocks
You can use explicit messages to create and change Command Block objects (class ID: 0x27).
You can use the following two services.
Service
Code
0x02
13-28
Instance 1
2
Instance 2
4
Instance 3
5
Instance 4
3
Instance 5
0
End
Name
Changes all the data of
Set_Attribute_All
the specified instance.
Meaning
Use this service to set all of the attribute data in
a command block at the same time. We recom-
mend that you normally use this service to write
command blocks.
Remarks
Continued on next page.