Industrial-data-systems IDS Scale Basic Bedienungsanleitung Seite 1

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Industrial-data-systems IDS Scale Basic herunter. Industrial Data Systems IDS Scale Basic User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Scale Basic

Scale Basic Reference and Tutorial Version 4.2E Date 9/6/2001

Seite 2 - Table of Contents

Scale Basic 4.2E Tutorial Event Driven Programming Event Driven programming is useful for ‘real time’ applications. Real time applications are thos

Seite 3 - Introduction

Scale Basic 4.2E Tutorial Design Template To help in the design process, we will use the following design template. The first 4 sections (Applicatio

Seite 4 - EZ Link

Scale Basic 4.2E Tutorial Scale Basic Tutorial The following section assumes that the indicator is connected to a PC computer using EZ Link. If you

Seite 5 - EZ Link Configuration

Scale Basic 4.2E Tutorial Use the template above to enter and test the program. The program can be extracted from the Event and Function sections of

Seite 6 - EZ Link Test

Scale Basic 4.2E Tutorial The permanent storage registers (Fixed43…50) are used for permanent storage of numbers. These registers are stored in EA-R

Seite 7

Scale Basic 4.2E Tutorial The above function uses Memory1, 2, and 3. The memory registers used are listed in the Parameters section of the design tem

Seite 8

Scale Basic 4.2E Tutorial Setpoint Monitors Purpose1: to monitor 2 registers and activate a scale basic function when the lower register is greater

Seite 9

Scale Basic 4.2E Tutorial The Setpoint Monitor is used to generate the next event. When the setpoint event occurs, it activates user function 2 whic

Seite 10 - Event Driven Programming

Scale Basic 4.2E Tutorial 6. In EZ Link select File, Save As, then type in “test3” then click OK. This saves the program onto disk. 7. In EZ Lin

Seite 11

Scale Basic 4.2E Tutorial Scale Basic function is executed. There are 5 timer records that contain the following data: Time interval time interval

Seite 12 - Scale Basic Tutorial

Scale Basic 4.2E Table of Contents Table of Contents Introduction ...

Seite 13 - Arithmetic and Registers

Scale Basic 4.2E Tutorial 3. Scale Basic enter the following program: Function Instructions Comments User 1 Timer on, 5 turn on timer

Seite 14

Scale Basic 4.2E Reference Reference The reference is divided into 3 sections: 1. Instruction Reference: details each Scale Basic instruction and p

Seite 15

Scale Basic 4.2E Reference Test for Net >= Fixed43 Compare, Net, Fixed43 If not, Negative If Net >= Setpoint Fixed43 Relay

Seite 16 - Setpoint Monitors

Scale Basic 4.2E Reference Remarks: sets condition codes Positive, Negative, and Zero to reflect results. The decimal position of the result before

Seite 17

Scale Basic 4.2E Reference Remarks: Use this instruction to alert the operator that an error condition has occurred. The message is displayed until

Seite 18

Scale Basic 4.2E Reference The prompt is displayed for 0.7 seconds, then if the register is non-zero, the register data is displayed. If the registe

Seite 19

Scale Basic 4.2E Reference Get id, Memory1 Open Id 25 If, Zero If the Id was not found Error msg, 8 display error me

Seite 20

Scale Basic 4.2E Reference Flag on, 1 turn on flag 1 Display Memory1 set to display Memory1 (total) End if End if End

Seite 21 - Reference

Scale Basic 4.2E Reference Set Memory1, 3 Memory1 = 3 Index id, Memory1 Open ID record 3 (the 3d record in memory) Set Id1, 0

Seite 22 - Display [r] 218 [r]

Scale Basic 4.2E Reference Set Memory1, 20 Loop1 For Memory1 = 20 down-to 0 Index id, Memory1 Set Id1, 0 ID[Memroy1

Seite 23

Scale Basic 4.2E Introduction Introduction Scale Basic in a programming language that is used to modify the functions of a weight indicator. This

Seite 24 - Get data [r] 231 [r]

Scale Basic 4.2E Reference Next1 (see Loop1 / Loop2 instruction) 246 Next2 (see Loop1 / Loop2 instruction) 248 Nop 254 Purpose: no-

Seite 25 - Get id [r] 234 [r]

Scale Basic 4.2E Reference Relay on, 10 turn relay number contained in Memory10 on Example: turn off all relays. If scale is at center

Seite 26

Scale Basic 4.2E Reference Sign [r] 207 [r] Purpose: to set condition codes based on the value in register [r]. Positive is set if the regi

Seite 27 - Index id [r] 217 [r]

Scale Basic 4.2E Reference Timer off / Timer on (n) 225 [n] / 224 [n] Purpose: to activate / de-activate a timer. Remarks: the acti

Seite 28

Scale Basic 4.2E Reference Fn. 4: All off turn off all timers, relays, etc. End End of function. Txcom1 / Txcom2 (n)

Seite 29 - Make id [r] 235 [r]

Scale Basic 4.2E Reference Remarks: this instruction takes a minimum of 3 A/D conversion cycles. Press the Clear key to abort Valid wt command; also

Seite 30 - Nop 254

Scale Basic 4.2E Reference Condition Codes The condition codes are used in the IF instruction to determine if the instructions following the IF are t

Seite 31

Scale Basic 4.2E Reference Flags 10 -16 Purpose: Enables control of status LEDs on display panel (Gross, Net, Motion. Zero, Lb, Kg) Remarks: Fl

Seite 32 - Sign [r] 207 [r]

Scale Basic 4.2E Reference Netmode 103 Purpose: true if display is in Net mode. Overload 115 Purpose: true if scale status = Overload Pos

Seite 33

Scale Basic 4.2E Reference Built in Functions Close id 142 Purpose: use after Open id or Open new to save ID data to memory. Remarks: the Clos

Seite 34 - Valid wt 219

Scale Basic 4.2E Tutorial EZ Link EZ Link is a Microsoft Windows compatible program that you can use to configure, program, and test the indicator. T

Seite 35 - Write id 228

Scale Basic 4.2E Reference Print1, Print2, Print3, Print4 133, 134, 135, 146 Purpose: to send formatted data to the printer. Remarks: there are

Seite 36

Scale Basic 4.2E Reference Remarks: the Suspend instruction stops a Scale Basic function from executing, thus allowing the Event Monitor to scan for

Seite 37

Scale Basic 4.2E Reference Loop1 While - If Motion Motion on scale Update Update scale readings Next1 End - End if

Seite 38

Scale Basic 4.2E Reference Example Purpose1: trigger user function 1 when gross weight is greater than Memory register 12 (weight above setpoint).

Seite 39

Scale Basic 4.2E Reference Timer Events Purpose 1: to trigger a scale basic function after a set time interval. Purpose 2: to wait an interval of t

Seite 40

Scale Basic 4.2E Reference Flag on, 1 turn on flag 1 Relay on, 1 turn on relay 1 End if End if This example will caus

Seite 41

Scale Basic 4.2E Reference Example2: a bar code reader is used to read the tare weight for the scale. Setpoint 1 is configured to trigger when a ba

Seite 42

Scale Basic 4.2E Reference Remarks: xxx can be any valid register number. The data is transmitted in the form: nnnnnnnnn<cr> where nnnnnnnnn i

Seite 43

Scale Basic 4.2E Reference S / I Purpose: Status / Idle pairs are used to verify that a remote station is available to accept commands. Remarks: net

Seite 44 - Timer Events

Scale Basic 4.2E Reference Registers There are 5 types of registers: memory registers, fixed registers, scale registers, Id registers and special pur

Seite 45 - TTL Input Events

Scale Basic 4.2E Tutorial EZ Link Configuration The indicator’s communications port 2 [Com Port 2] defaults to 9600 baud, 8 bits, no parity. The EZ

Seite 46

Scale Basic 4.2E Reference 61 Alt units - Gross weight 62 Alt units - Tare weight 63 Alt units - Net weight 64 Gross Weight 65 Tare Weight 66 Net

Seite 47

Scale Basic 4.2E Reference Time / Date Logging Modification 118 Time Time Register The Time register has the following uses: Copy, <register&

Seite 48

Scale Basic 4.2E Reference Error Codes Err 0 Power on acquire zero error. Occurs when parameter 20 is set to acquire zero on power-up. If the scal

Seite 49 - Scale Registers

Scale Basic 4.2E Appendix A: Design Template Appendix A: Design Template Application Description. This is a general description as given by the cu

Seite 50 - Other Registers

Scale Basic 4.2E Tutorial EZ Link Test Use this procedure to test the connection between the indicator and the PC. On the PC: If you are using Window

Seite 51

Scale Basic 4.2E Tutorial Test 5 Press the indicator’s CLEAR key to exit diagnostic test 4. Enter test number 6 and then press the ENTER key. This t

Seite 52 - Error Codes

Scale Basic 4.2E Tutorial Event Driven Programming This section provides an introduction to event driven, computer program design. Program Design T

Seite 53 - Appendix A: Design Template

Scale Basic 4.2E Tutorial Sequence of operation Enter target weight data: Use the indicator’s built in memory register input function. Th

Kommentare zu diesen Handbüchern

Keine Kommentare