Creating the ladder program, Creating the ladder program -18 – KEYENCE LK-CC100/DN100 User Manual

Page 54

Advertising
background image

3-18

3

3 Connecting to DeviceNet

Creating the Ladder Program

Acquiring measurement data, tolerance comparator results, various
statuses (auto-zero, timing, system error), and program number settings

Create the ladder program as follows.

1

Check the status.

Verify the SYSTEM_ERR_FLAG is OFF and READY_FLAG is ON.

2

Store the counter value.

Store the current counter value (COUNTER_LO and COUNTER_HI).

3

Check for counter value updates.

Wait until the current counter value, stored in Step 2, changes.

4

Acquire data.

Acquire the required data.

Check the counter value for an update twice immediately after the controller is started, is set, performs
Able Tuning, sets scaling from measurement data, or completes communication.

NOTE

Advertising