Omega Engineering LDP-124 Series User Manual Download Page 19

Page : 18

ETX

STX

Address

Polarity

6th digit

5th digit

4th digit

3rd digit

2nd digit

1st digit

ETX

Power up

Next message

Start
addressing

Start
message

Instrument
address

Polarity
Overload

Character to
be placed on
digit MSB

Character to
be  placed on
digit LSB

End of
message

10.2.- STROBE OPERATING MODE, PROGRAMME EXAMPLE

ESC : Resets display to its power-on condition. Has priority

over any other character.

Address : Configured on the switch selector S4 (+30 hex).

All the units with the address, "0" (ASCII 30
hex), will display all data, including the address
code sent, and this address will cause any unit
to receive data.

Polarity : The middle bar is light-up.
Overload : Led located over the polarity bar is light-up.

/*  =============OMEGA Engineering Inc.==============
/*  Demo programm for series LDP-XX-S connected to a PC        */
/*  Example of comunication in Strobe operating mode using STX/ETX        */
/*  To be used under Turbo "C++" of Borland Version 1.01        */
/*  Fema Version 01, realized on Dec 1th of 1997        */

/*mode strobe*/

#include<bios.h>        /*
#include<conio.h>
#include<stdio.h>
#define COM1      0      /*
#define COM2      1      /*

#define TRUE    1
#define FALSE   0

#define EVEN 0x18
#define ODD 0x10
#define NONE 0x0

#define BIT7 0x2
#define BIT8 0x3

#define STOP1 0x0
#define STOP2 0x4

#define BAUD300    0x40
#define BAUD600    0x60
#define BAUD1200  0x80
#define BAUD2400  0xA0
#define BAUD4800  0xC0
#define BAUD9600  0xE0

int main(void)
{
 int count,DONE=FALSE;     /*counter  & end loop condition
 char dat1,men1[25];    /*temporary data and string*/
 ciscr();    /*Clear Screen*/
/*__________Initializing Host port________________*/
 bioscomp(0,(BAUD9600 | BIT8 | NONE | STOP1),COM2);    /*open COM2 port*/
/*__________Initializing instrument_______________*/
 bioscom(1,'\x3', COM1);       /*Start addressing (ETX, also XOFF)*/
*/__________Main loop of the programm_______________*/
while(!DONE){             /*start transmmision loop*/
/*__________Read message introduced using the keyboard________________*/
 count=0

/*reading the string introduced using the keyboard*/

 gotoxy(10,3);
 printf("enter the mesage (0-7 characters)");    /*Until press Enter key*/
 do{

dat1=getche();
Men1[count]=dat1;
count++;
}while (dat1!='\x0d);

 men1[count]='\r';
/*_________Send the message and present it on the screen_____________*/
 cirscr();
 {
 bioscom(1,'\x2',COM2);       /*Send STX*/
  gotoxy(12.10);
 printf("STX");
 bioscom(1,'0' , COM2);       /* Send address*/
 printf("0");
 count=0

/*_______Message Loop Transmmision_________*/
 while (men1[count]!='\r'){

/*Covert to capital letters to see the small letters*/
if (men1[count]<123 & men1[count]>96) men1[count]=men1[count]-32;

*/Print on the screen and send every message character to the port until carriage return*/

printf("%c", men1[count]);
bioscom(1,men1[count],COM2);
count++;
};

   bioscom(1,'\x3',COM2);       /*Send ETX, End of message*/
    printf("ETX");
   }
  }
return 0;
}

'  =============OMEGA Engineering Inc.==============
'  Demo programm for series LDP-XX-S connected to a PC
'  Example of comunication in Strobe operating mode using STX/ETX
'  Realizer for Microsoft Qbasic, VERSION 1.1
'  Fema Version 01, realized on Dec 1th of 1997

OPEN "COM2:9600,N,8,1,CD0,CS0,DS0,OP0,RS,TB20,RB20" FOR RANDOM AS #1
'Open port 2 without protocols, 9600, 8, none, buffers for 20 characters'
CLS
PRINT#1,CHR$(3)
DO
LOCATE 10,5
INPUT "Enter message"; A$
A$ = UCASE$(A$)

'Conversion to capital letters'

CLS
LOCATE 12,5
PRINT "STX 0" + A$ + " ETX"

'Print string on screen'

PRINT #1, CHR$(2) + "0" +A$ + CHR$(3)  'Send string to the port'
LOOP WHILE NOT (A$="")

'Until empty string is entered'

Summary of Contents for LDP-124 Series

Page 1: ...LDP 124 LDP 126 LDP 144ANDLDP 146 SERIESFORSERIALASCIIINPUT http www omega com e mail info omega com User s Guide...

Page 2: ...ree 0800 1 66342 e mail czech omega com France 9 rueDenisPappin 78190Trappes Tel 33 130 621 400 Fax 33 130 699 120 Toll Free in France 0800 4 06342 e mail france omega com Germany Austria Daimlerstras...

Page 3: ...3 10 OVERLOAD AND POLARITY INDICATORS 7 4 10 BS 4505 SUBSET 7 5 10 RECOGNISED CODES 7 6 11 TABLE OF CHARACTERS 7 7 12 CONFIGURATION 8 13 POWER SELECTION 8 1 13 INSTRUMENT CONFIGURATION 8 2 13 CONFIGUR...

Page 4: ...ions must be given when install the signal input and control wires If the wires are longs can act like an antenna and introduce the electrical noise to the unit therefore Do not install the signal inp...

Page 5: ...e Transport Company for instructions about submitting a claim 2 UNPACKING AND INSPECTION It is advisable to do a detailed reading of this Manual before mounting the instrument This Operator s Manual c...

Page 6: ...even segments red or green colour with 57 mm 2 3 height and minus sign for polarity Serie LDP 144 S 4 digits type LED seven segments red or green colour with 100 mm 4 height and minus sign for polarit...

Page 7: ...nt Programmable position INPUT SIGNALS Selectable by internal jumpers TTL level Input impedance 12 K Logic 1 2 V stop bit Logic 0 0 8 V start bit Maximum input 12 to 7 V 4 INSTRUMENTS DESCRIPTION 4 1...

Page 8: ...mum input 15 V Differential Threshold Less than 0 2 V Internal charge RS422 485 Hysteresis 70 mV typical Input impedance 12 K Max diff input 12 V Max Volt relative to signal common 12 7 V Termination...

Page 9: ...y at power up To change any set up conditions see the configuration section The unit has a protection fuse located on the power supply socket If this fuse must be replaced or changed because the power...

Page 10: ...eans that the instrument is ready to receive data and all printable characters received 20 2B 2D 2E and 30 to 5F will be displayed directly if the instrument is programmed in shift mode or after recei...

Page 11: ...play for example to light the overload indicator a character that includes the upper bar but excludes the middle bar should be sent for example 0 or To light both overload and polarity indicators the...

Page 12: ...In strobed mode transfers last string to the display 11 17 Ctrl Q XON Same as STX 12 18 Ctrl R DC2 Sets the display to 25 brightness 13 19 Ctrl S XOFF Same as ETX but does not transfer last string in...

Page 13: ...J 4B K 4C L 4D M 4E N 4F O 50 P 51 Q 52 R 53 S 54 T 55 U 56 V 57 W 58 X 59 Y 5A Z 5B 5C 5D 5E 5F 7 7 TABLE OF CHARACTERS 30 0 31 1 32 2 33 3 34 4 35 5 36 6 37 7 38 8 39 9 3A 3B 3C 3D 3E 3F 40 41 A 42...

Page 14: ...needs only to be removed to gain access to the internal DIP and jumpers switches located on the control board Be sure that the instrument is disconnected from any power supply before removing the rea...

Page 15: ...19200 7 Address G ID setting 0 0 0 1 1 1 2 1 2 3 1 3 4 1 4 5 1 5 6 1 6 7 1 7 8 1 8 9 1 9 10 11 12 13 14 15 16 17 2 1 18 2 2 19 2 3 20 2 4 21 2 5 22 2 6 23 2 7 24 2 8 25 2 9 26 27 28 29 30 31 Selector...

Page 16: ...5 V GND RS 485 RS 422 Signal B Signal A GND Internal Load RS 485 RS 422 Signal B Signal A GND External Load RS 423 5 V Input 5 V GND Loop Loop not used A Loop Powered 2 mA Loop not used Loop B Loop Lo...

Page 17: ...G H I J Selector S1 and K L M N O Selector S2 10 Check that the level logic configuration is the appropriate if not use jumpers K L Selector S2 11 Close the rear cover using all the screws removed be...

Page 18: ..._Message Loop Transmmision_________ while men1 count r Covert to capital letters to see the small letters if men1 count 123 men1 count 96 men1 count men1 count 32 Print on the screen and send every me...

Page 19: ...oscomp 0 BAUD9600 BIT8 NONE STOP1 COM2 open COM2 port __________Initializing instrument_______________ bioscom 1 x3 COM1 Start addressing ETX also XOFF __________Main loop of the programm_____________...

Page 20: ...comp 0 BAUD9600 BIT8 NONE STOP1 COM2 open COM2 port __________Initializing instrument_______________ bioscom 1 x19 COM1 Start addressing XOFF __________Main loop of the programm_______________ while D...

Page 21: ...7 123456789012345678901234567 Dimensions in mm Parenthesis are in inches or pounds Add 27 mm 1 1 to the dimension C for power connector D E 12 MECHANICAL DIMENSIONS mm inches PANEL CUT OUT Panel thick...

Page 22: ...shall not exceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable for consequential incidental or special damages CONDITIONS Equipment sold by OMEGA...

Page 23: ...lewheel Systems Totalizers Batch Controllers pH CONDUCTIVITY pH Electrodes Testers Accessories Benchtop Laboratory Meters Controllers Calibrators Simulators Pumps Industrial pH Conductivity Equipment...

Reviews: