480 likes | 570 Views
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): Define the actions that occur in Startup Define the actions that occur in Timer1Trip. Select Create New Project
E N D
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): • Define the actions that occur in Startup • Define the actions that occur in Timer1Trip
Select Create New Project • Locate Event Browser navigation pane *Events are actions in the new program. • Open Timer Trip Handlers folder
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
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
Open Miscellaneous Handlers folder *Startup handler is used to define conditionspresent at startup. • Select Startup handler
Open Miscellaneous Handlers folder *Startup handler is used to define conditionspresent at startup. • Select Startup handler • Adds new tab to IDE for Startup handler
Open Miscellaneous Handlers folder *Startup handler is used to define conditionspresent at startup. • Select Startup handler • Adds new tab to IDE for Startup handler
Select the Toolbox • Select Timers navigation pane
Select the Toolbox • Select Timers navigation pane • Timers navigation pane is now active • Drag and Drop Set Duration
Select the Toolbox • Select Timers navigationpane • Timers navigation pane is now active • Drag and Drop Set Duration • Define Properties for “Set Duration” Duration = 100 (1 second); Timer = 1
Drag and Drop Set Mode • Define Properties for “Set Mode” Mode = Continuous; Timer = 1
Drag and Drop Start Timer • Define Properties for “Start Timer” Timer = 1
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): • Define the actions that will occur in Startup • Define the actions that will occur in Timer1Trip
Select the Toolbox • Select Scales navigation pane
Select the Toolbox • Select Scales navigation pane • Scales navigation pane is now active
Select the Toolbox • Select Scales navigation pane • Scales navigation pane is now active • Drag and Drop Get Scale Value
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; Units = Primary ScaleNumber = 1;
Select Conversions navigation pane • Conversions navigation pane is now active
Select Conversions navigation pane • Conversions navigation pane is now active • Drag and Drop Real to String
Select Conversions navigation pane • Conversions navigation pane is now active • Drag and Drop Real to String • Define Properties for “Real to String” DataSource = Local;
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;
Select Conversions navigation pane • Conversions navigation pane is now active • Drag and Drop Real to String • Define Properties for “Real to String” DataSource = Local; Value (n/a); Precision = 0;
Select Conversions navigation pane • Conversions navigation pane is now active • Drag and Drop Real to String • Define Properties for “Real to String” DataSource = Local; Width = 7 Value (n/a); Precision = 0;
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): • Define the actions that occur in Startup • Define the actions that occur in Timer1Trip
EXAMPLE 2: • Create a program featuring a user prompt to set the target value for a setpoint Step(s): • Define the actions that occur in Soft1Keypressed
Select Create New Project • Locate Event Browser navigation pane *Events are actions in the new program.
Select Create New Project • Locate Event Browser navigation pane *Events are actions in the new program. • Open Key Pressed Handlers folder
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
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
Select the Toolbox • Select User Interface navigation pane
Select the Toolbox • Select User Interface navigation pane • User Interface navigation pane is now active • Drag and Drop Prompt User for Real
Select the Toolbox • Select User Interface navigationpane • User Interface navigation pane is now active • Drag and Drop Prompt User for Real • Define Properties for “Prompt User for Real” DataSource = Static;
Select the Toolbox • Select User Interface navigationpane • User Interface navigation pane is now active • Drag and Drop Prompt User for Real • Define Properties for “Prompt User for Real” DataSource = Static; Message = Enter Target Value
Select Setpoints navigation pane • Setpoints navigation pane is now active
Select Setpoints navigation pane • Setpoints navigation pane is now active • Drag and Drop Set Setpoint Value
Select Setpoints navigationpane • 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
EXAMPLE 2: Complete • Create a program featuring a user prompt to set the target value for a setpoint Step(s): • Define the actions that occur in Soft1Keypressed