Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from...

48
Demonstration Presentation

Transcript of Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from...

Page 1: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

Page 2: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

EXAMPLE 1:

• Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port

Step(s):

1. Define the actions that occur in Startup

2. Define the actions that occur in Timer1Trip

Page 3: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.• Open Timer Trip Handlers folder

Page 4: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.• Open Timer Trip Handlers folder

• Select Timer 1Trip handler• Adds new tab to IDE for Timer1Trip

Page 5: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.• Open Timer Trip Handlers folder

• Select Timer 1Trip handler• Adds new tab to IDE for Timer1Trip

Page 6: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Open Miscellaneous Handlers folder

Page 7: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Open Miscellaneous Handlers folder

Page 8: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Open Miscellaneous Handlers folder

*Startup handler is used to define conditionspresent at startup.

• Select Startup handler

Page 9: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Open Miscellaneous Handlers folder

*Startup handler is used to define conditionspresent at startup.

• Select Startup handler

• Adds new tab to IDE for Startup handler

Page 10: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Open Miscellaneous Handlers folder

*Startup handler is used to define conditionspresent at startup.

• Select Startup handler

• Adds new tab to IDE for Startup handler

Page 11: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox

Page 12: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Timers navigation pane

Page 13: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Timers navigation pane• Timers navigation pane is now active• Drag and Drop Set Duration

Page 14: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Timers navigation pane• Timers navigation pane is now active• Drag and Drop Set Duration

• Define Properties for “Set Duration”

Duration = 100 (1 second); Timer = 1

Page 15: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Drag and Drop Set Mode

Page 16: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Drag and Drop Set Mode• Define Properties for “Set Mode”

Mode = Continuous; Timer = 1

Page 17: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Drag and Drop Start Timer

Page 18: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Drag and Drop Start Timer• Define Properties for “Start Timer”

Timer = 1

Page 19: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

*Step 1 of 2 complete: Startup Handler is defined

Page 20: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

FIRST EXAMPLE• Create a program that uses a timer to get gross

weight from scale #1 and write it to a serial port

Step(s):

1. Define the actions that will occur in Startup

2. Define the actions that will occur in Timer1Trip

Page 21: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox

Page 22: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Scales navigation pane

Page 23: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Scales navigation pane• Scales navigation pane is now active

Page 24: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Scales navigation pane• Scales navigation pane is now active• Drag and Drop Get Scale Value

Page 25: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select Scales navigation pane• Scales navigation pane is now active• Drag and Drop Get Scale Value

• Define Properties for “Get Scale Value”

Mode = Gross; ScaleNumber = 1; Units = Primary

Page 26: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane

Page 27: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane• Conversions navigation pane is now active

Page 28: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane• Conversions navigation pane is now active• Drag and Drop Real to String

Page 29: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane• Conversions navigation pane is now active• Drag and Drop Real to String

• Define Properties for “Real to String”

DataSource = Local;

Page 30: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane• Conversions navigation pane is now active• Drag and Drop Real to String

• Define Properties for “Real to String”

DataSource = Local; Precision = 0;

Page 31: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane• Conversions navigation pane is now active• Drag and Drop Real to String

• Define Properties for “Real to String”

DataSource = Local; Precision = 0; Value (n/a);

Page 32: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Conversions navigation pane• Conversions navigation pane is now active• Drag and Drop Real to String

• Define Properties for “Real to String”

DataSource = Local; Precision = 0; Value (n/a); Width = 7

Page 33: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

EXAMPLE 1: Complete

• Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port

Step(s):

1. Define the actions that occur in Startup

2. Define the actions that occur in Timer1Trip

Page 34: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

EXAMPLE 2:

• Create a program featuring a user prompt to set the target value for a setpoint

Step(s):

1. Define the actions that occur in Soft1Keypressed

Page 35: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.

Page 36: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.• Open Key Pressed Handlers folder

Page 37: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.• Open Key Pressed Handlers folder• Select Soft1Keypressed handler

• Adds new tab to IDE for Soft1Keypressed

Page 38: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Create New Project• Locate Event Browser navigation pane

*Events are actions in the new program.• Open Key Pressed Handlers folder• Select Soft1Keypressed handler

• Adds new tab to IDE for Soft1Keypressed

Page 39: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox

Page 40: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select User Interface navigation pane

Page 41: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select User Interface navigation pane• User Interface navigation pane is now active• Drag and Drop Prompt User for Real

Page 42: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select the Toolbox• Select User Interface navigation pane• User Interface navigation pane is now active• Drag and Drop Prompt User for Real

• Define Properties for “Prompt User for Real”

DataSource = Static;

Page 43: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

Message = Enter Target Value

• Select the Toolbox• Select User Interface navigation pane• User Interface navigation pane is now active• Drag and Drop Prompt User for Real

• Define Properties for “Prompt User for Real”

DataSource = Static;

Page 44: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Setpoints navigation pane

Page 45: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Setpoints navigation pane• Setpoints navigation pane is now active

Page 46: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Setpoints navigation pane• Setpoints navigation pane is now active• Drag and Drop Set Setpoint Value

Page 47: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

• Select Setpoints navigation pane• Setpoints navigation pane is now active• Drag and Drop Set Setpoint Value• Define Properties for “Set Setpoint Value”

SetpointNumber = 1;

Value (n/a); SetpointNumberDataSource = Static

ValueDataSource = Local

Page 48: Demonstration Presentation EXAMPLE 1: Create a program that uses a timer to get gross weight from scale #1 and write it to a serial port Step(s): 1.Define.

Demonstration Presentation

EXAMPLE 2: Complete

• Create a program featuring a user prompt to set the target value for a setpoint

Step(s):

1. Define the actions that occur in Soft1Keypressed