Fema Electronica BDF-24-S Series Operator'S Manual Download Page 18

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.

/*  =============FEMA electronica s.a.==============
/*  Demo programm for series BDF-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;
}

'  =============FEMA electronica s.a.==============
'  Demo programm for series BDF-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 BDF-24-S Series

Page 1: ...IAL ASCII INPUT Series BDF 24 26 BDF 44 46 32 97 Rev 2409 01 Centro Industrial Santiga Altimira 14 Talleres 14 Nave 2 Tel 34 93 729 60 04 Fax 34 93 729 60 03 Apartado de Correos 49 E 08210 BARBER DEL...

Page 2: ...S 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 CONFIGURATION TABLES FOR BRIGHTNESS BAUD RATE OPERATIN...

Page 3: ...ns 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 input...

Page 4: ...ask the 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 M...

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

Page 6: ...oint Programmableposition INPUT SIGNALS Selectable by internal jumpers TTLlevel Inputimpedance 12 K Logic 1 2 V stop bit Logic 0 0 8 V start bit Maximuminput 12 to 7 V 4 INSTRUMENTS DESCRIPTION 4 1 FR...

Page 7: ...e Maximum input 15 V Differential Threshold Less than 0 2 V Internal charge RS422 485 Hysteresis 70 mV typical Inputimpedance 12 K Max diff input 12 V Max Volt relative to signal common 12 7 V Termina...

Page 8: ...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 9: ...e 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 receiving the cod...

Page 10: ...edisplay forexample tolighttheoverloadindicator acharacterthatincludestheupperbarbutexcludesthemiddle bar should be sent for example 0 or To light both overload and polarity indicators the character s...

Page 11: ...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 12: ...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 13: ...t 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 re...

Page 14: ...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 15: ...nput 5 V GND RS 485 RS 422 Signal B SignalA GND InternalLoad RS 485 RS 422 Signal B SignalA GND ExternalLoad RS 423 5 V Input 5 V GND Loop Loop not used A LoopPowered 2 mA Loop not used Loop B Loop Lo...

Page 16: ...F 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 b...

Page 17: ...ssage 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 messa...

Page 18: ..._ 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_________...

Page 19: ...ioscomp 0 BAUD9600 BIT8 NONE STOP1 COM2 open COM2 port __________Initializing instrument_______________ bioscom 1 x19 COM1 Start addressing XOFF __________Main loop of the programm_______________ whil...

Page 20: ...680 26 77 172 6 77 5 7 Kg 12 5 lbs 12 VA Dimensions in mm Parenthesis are in inches or pounds D E 12 MECHANICAL DIMENSIONS mm inches PANELCUT OUT Panel thickness Max 14 0 55 Min 2 5 0 10 1 Anti Glare...

Page 21: ...lease fill in the dates required below and send the instrument together with the Manual free of charge and properly packed with a description of the anomaly or defect found in the product directly to...

Page 22: ...A 0 10 Vdc Others signals Thermocouples Thermoresistance RTD Resistance Potentiometer Load Cells Strain Gauge Pulses frequency TACHOMETERS COUNTERS MODULAR DISPLAYS FOR PARALLEL BCD CODE GALVANIC ISOL...

Page 23: ...modifications made by the Operator in the unit in order to make easier the necessary maintenance and possible repairs It is also advisable make a note of all the interesting comments about the install...

Page 24: ...________ ____________________________________________________________________________________ ____________________________________________________________________________________ Post Code____________...

Page 25: ...ctives and Harmonised Standards stated below DIRECTIVES EUROPEAN DIRECTIVE FOR LOW VOLTAGE D73 23 CEE AMENDED BY D93 68 CEE Equipments powered from 50 to 1000 Vac and or from 75 to 1500 Vdc EUROPEAN D...

Reviews: