demonstration presentation example 1: create a program that uses a timer to get gross weight from...
TRANSCRIPT
Demonstration Presentation
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
Demonstration Presentation
• Select Create New Project• Locate Event Browser navigation pane
*Events are actions in the new program.• Open Timer Trip Handlers folder
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
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
Demonstration Presentation
• Open Miscellaneous Handlers folder
Demonstration Presentation
• Open Miscellaneous Handlers folder
Demonstration Presentation
• Open Miscellaneous Handlers folder
*Startup handler is used to define conditionspresent at startup.
• Select Startup handler
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
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
Demonstration Presentation
• Select the Toolbox
Demonstration Presentation
• Select the Toolbox• Select Timers navigation pane
Demonstration Presentation
• Select the Toolbox• Select Timers navigation pane• Timers navigation pane is now active• Drag and Drop Set Duration
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
Demonstration Presentation
• Drag and Drop Set Mode
Demonstration Presentation
• Drag and Drop Set Mode• Define Properties for “Set Mode”
Mode = Continuous; Timer = 1
Demonstration Presentation
• Drag and Drop Start Timer
Demonstration Presentation
• Drag and Drop Start Timer• Define Properties for “Start Timer”
Timer = 1
Demonstration Presentation
*Step 1 of 2 complete: Startup Handler is defined
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
Demonstration Presentation
• Select the Toolbox
Demonstration Presentation
• Select the Toolbox• Select Scales navigation pane
Demonstration Presentation
• Select the Toolbox• Select Scales navigation pane• Scales navigation pane is now active
Demonstration Presentation
• Select the Toolbox• Select Scales navigation pane• Scales navigation pane is now active• Drag and Drop Get Scale Value
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
Demonstration Presentation
• Select Conversions navigation pane
Demonstration Presentation
• Select Conversions navigation pane• Conversions navigation pane is now active
Demonstration Presentation
• Select Conversions navigation pane• Conversions navigation pane is now active• Drag and Drop Real to String
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;
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;
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);
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
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
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
Demonstration Presentation
• Select Create New Project• Locate Event Browser navigation pane
*Events are actions in the new program.
Demonstration Presentation
• Select Create New Project• Locate Event Browser navigation pane
*Events are actions in the new program.• Open Key Pressed Handlers folder
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
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
Demonstration Presentation
• Select the Toolbox
Demonstration Presentation
• Select the Toolbox• Select User Interface navigation pane
Demonstration Presentation
• Select the Toolbox• Select User Interface navigation pane• User Interface navigation pane is now active• Drag and Drop Prompt User for Real
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;
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;
Demonstration Presentation
• Select Setpoints navigation pane
Demonstration Presentation
• Select Setpoints navigation pane• Setpoints navigation pane is now active
Demonstration Presentation
• Select Setpoints navigation pane• Setpoints navigation pane is now active• Drag and Drop Set Setpoint Value
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
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