Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Other messages

Examples:

X:0 Z:0 [two spaces instead of one required]

X;0 Z:0

a

X:0 Z;100

Hello

100

Asdfg

Command

Action

Examples: Message sent to a ClearCore and a response, received from ClearCore

HOME:X{"x":"home"}

Moving the carriage to zero home position (homing) on X-axis.

ClearCore sends

Sent to ClearCore: HOME:X

Moving the carriage to zero position (homing) on X-axis.

Received from ClearCore:

HOME:Z

Moving the carriage to zero position (homing) on XSent to ClearCore:

{"x":"home"}

Immediate feedback from ClearCore:{"status":"received","x":"home"}

When homing on X-axis is finished, ClearCore sends one more message:{"status":"finished","x":"home"}

{"z":"home"}

Moving the carriage home position on Z-axis.

Sent to ClearCore: HOME:Z

Moving the carriage to zero position (homing) on Z-axis.

Received from ClearCore:

HOME:X,Z:

{"z":"home"}

Immediate feedback from ClearCore:{"status":"received","z":"home"}

When homing on X-axis is finished, ClearCore sends one more message: {"status":"finished","z":"home"}

{"x":"home","z":"home"}

or

{"z":"home","x":"home"}

Moving the carriage to zero position (homing) on simultaneously on X- and Z-axisesaxes at the same time.

Received: HOME:X,Z

Moving the carriage to zero position (homing) on simultaneously on X- and Z-axises.

X:[int number] Z:[int number]

Examples:

X:0 Z:0

X:0 Z:1

X:-5 Z:-5

X:500 Z:-1500

X:-10000 Z:0

X:-10000 Z:25000

Moving on X- and Z-axisesPay attention: homing on Z-axis is always first (for camera safety).

Sent to ClearCore:

{"x":"home","z":"home"}

Immediate feedback from ClearCore:{"status":"received","z":"home"}

When homing on Z-axis is finished, ClearCore sends message: {"status":"finished","z":"home"}

Next, ClearCore sends:{"status":"received","x":"home"}

When homing on X-axis is finished, ClearCore sends message: {"status":"finished","x":"home"}

Pay attention: an immediate response from ClearCore is only about receiving z:home message. After completion of Z-homing, ClearCore sends message about receiving x:home and performs X-homing.

{"x":550}

Movement on X-axis.

A distance must be non-zero. Distances equal to zero are ignored.

Sent to ClearCore:

{"x":550}

Immediate feedback from ClearCore:{"status":"received","x":550}

When movement on X-axis is finished, ClearCore sends a feedback message:{"movement":"finished","axis":"x"}

Sent to ClearCore: X:0,Z:0

No moving on X- nor Z-axisesaxes.

Received from ClearCore:

  1. Sent to ClearCore: X:0,Z:5000

Moving 5000 steps in positive direction on Z-axis. No moving on X-axis.

Received from ClearCore:

  1. Sent to ClearCore: X:-3000,Z:0

Moving 3000 steps in negative direction on X-axis. No moving on Z-axis.

Received from ClearCore:

  1. Sent to ClearCore: X:15000,Z:-20000

Moving 15000 steps in positive direction on X-axis and moving 20000 steps in negative direction on Z-axis.

Received from ClearCore:

CONFIG

[To Be Implemented]

Request for a current set of configuration parameters of a ClearCore module.

E-STOP

[To Be Implemented]

Emergency-Stop. ClearCore stops all the movements and sends a network message about activation of an E-stop button.

STATUS

[To Be Implemented]

Request for the current status of a ClearCore module (data from Registers).

ClearCore will respond with an Ethernet message "UDP: Received message was not recognized. Possible messages are: 'CONFIG', 'E-STOP', 'STATUS', 'HOME:X', 'HOME:Z', 'HOME:X,Z' and 'X:[int number] Z:[int number]'\n"

No other actions will be performed.

...

{"z":1500}

Movement on Z-axis.

A distance must be non-zero. Distances equal to zero are ignored.

Sent to ClearCore:

{"z":1500}

Immediate feedback from ClearCore:{"status":"received","z":1500}

When movement on Z-axis is finished, ClearCore sends a feedback message:{"movement":"finished","axis":"z"}

{"x":250,"z":750}

Movement on X- and Z-axes.

Distances must be non-zero. Distances equal to zero are ignored.

Two movements will be performed simultaneously.

Sent to ClearCore:

{"x":250,"z":750}

Immediate feedback from ClearCore (two separate UDP messages sent at the same time):

{"status":"received","x":250}

{"status":"received","z":750}

When both movements are finished, ClearCore again sends two separate UDP messages:

{"movement":"finished","axis":"x"}

{"movement":"finished","axis":"z"}

Pay attention: the two separate messages about finishing of both movements are sent the moment when BOTH movements are finished. These two messages are sent at the same time.

To be added text description.