Axis PEN-01 User manual

USER MANUAL
PEN-01 ADAPTER
TO PENDRIVE

1. General description
Adapter enables to save data send from measurement device (for example from scale) to
USB memory pendrive. Data is saved in a file, which can be readout after disconnectin the
pendrive and connectin it to computer. To readout file any text editor can be used. User can
also use pro ram AXIS PEN. Copyin file can be done by typical computer pro rams or
Windows tools.
one-way communication with any device equipped with RS232C connection
possibility of savin a timestamp of incomin data
possibility to connect pendrive with any capacity usin USB connection
supply from RS232C interface or from external feeder
2. Technical specification
Type PEN-01
Interfaces RS232C (DB-9), USB (type A)
File system FAT12 / FAT16 / FAT32
Si nallin USB Control diode and RS232C control diode
Supply 12 VDC 100mA (usin RS232C or external feeder)
Wei ht 40
Dimensions 72x41x24mm
RS232C interface diagram (PEN-01)

3. Options of connecting adapter to measurement equipment and pendrive
Standard option (with external feeder)
MEASURE
EQUIPMENT
PEN-01 PENDRIVE
~230V
EXTERNAL FEEDER (option)
ption with USB extension conduit (supply by RS232C joint)
MEASURE
EQUIPMENT
PEN-01
PENDRIVE
ption with RS232C extension conduit (supply by RS232C interface)
MEASURE
EQUIPMENT
PEN-01
PENDRIVE
CABEL WP-1

4. Adapter configuration
After connectin pendrive to adapter, adapter tries to open „confi .txt” file and readouts
confi uration parameters. If there isn’t confi uration file in the pendrive main catalo , it will
be created and it will have default parameters. To chan e the parameters, user should edit
„confi .txt” file usin computer and text editor. User can also use pro ram AXIS PEN.
Each line of a confi uration file should be written in a fallowin way:
„PARAMETER_NAME = VALUE”. If particular line of a confi uration file contains such a
sequence of characters: “//” it means that everythin fallowin this sequence is a comment
and won’t be interpreted by PEN-01 as a parameter name or value. Values of parameters
can by placed directly after “=” character or can by placed in the quotation marks (if
parameter contains white spaces, value of this parameter has to be put in quotation marks).
If the confi uration file haven’t particular parameter or the value of this parameter is
incorrect, then the value of the parameter will be set to default.
It is possible to use control codes in confi uration file by usin special escape character
(‘\’ character). This character causes fallowin it characters to be interpreted in a different
way than usual. Possible escape sequences are:
\b - Backspace; (same as \x08)
\f - FormFeed; (same as \x0c)
\n - Newline; (same as \x0a)
\r - Carria e-Return; (same as \x0d)
\t - Horizontal Tab; (same as \x09)
\x<2-hex-di its> - code of character (e. . \x4e means 'N' character)
\X<2-hex-di its> - same as above
\\ - means '\' character
\" - means '"' character
\<anythin -else> - treated as if there where no ‘\’ character
Maximum size of confi uration file is 1KB.

Parameters that can be modified:
Name: PATH
Description: Path to file plus file name (8.3 format) where transmission is saved. If the
file doesn’t exist, it will be created. If it exists transmission will be added at
the end of file.
Default: /LOG.TXT
Example: PATH = /FOLDER1/ RESULTS.TXT
Name: A TO_NAME
Description: Parameter can have „YES” or „NO” value. If „NO” is set, it means that after
takin out the pendrive and connectin it once a ain, RS232 transmission
will be saved to the same file defined by PATH parameter. If „YES” is set
each takin out and in will create new file where the transmission will be
saved. New files names will be created usin file name (PATH parameter)
and successive numbers for example: LOG00001.TXT, LOG00002.TXT,
LOG00003.TXT etc. If the numbers run out, instead of next number, ‘X’
si n will show up.
Default: NO
Example: AUTO_NAME = YES
Name: BA D
Description: Settin RS232 transmission speed. (Available: 2400; 4800; 9600; 14400;
19200; 38400; 56000; 57600; 115200)
Default: 4800
Example: BAUD = 9600
Name: DATE
Description: If this parameter is present in confi uration file, date will be set and this
parameter will be preceded with „//” si ns to avoid chan in data durin
next pendrive insertin .
Format: YYYY-MM-DD
Default: Data doesn’t chan e
Example: DATE = 2010-04-11
Name: TIME
Description: If this parameter is present in confi uration file, time will be set and this
parameter will be preceded with „//” si ns to avoid chan in data durin
next pendrive insertin .
Format: GG:MM:SS.
Default: Time doesn’t chan e
Example: TIME = 08:12:45

Name: COMMAND
Description: Command which should be sent throu h RS232 port at specified intervals.
Maximum size of command is 20 characters. Empty command means:
don’t send anythin .
Default: Empty
Example: COMMAND = SI
Name: INTERVAL
Description: Interval at which command should be sent (expressed in seconds). If this
parameter equals zero it means that command won’t be sent.
Default: 10
Example: INTERVAL = 20
Name: ECHO
Description: This parameter determines whether command sent to RS232 port should
be lo ed to file or not. Allowed values: YES or NO.
Default: YES
Example: ECHO = NO
Name: LOG_DATE
Description: This parameter determines whether date should be used as a timestamp or
not. Allowed values: YES or NO.
Default: NO
Example: LOG_DATE = YES
Name: LOG_TIME
Description: This parameter determines whether time should be used as a timestamp or
not. Allowed values: YES or NO.
Default: NO
Example: LOG_TIME = YES
Name: TRIG_TOKEN
Description: This parameter specifies sequence of characters which should make
timestamp to be inserted in a lo file. Maximum size of this sequence is 20
characters. Timestamp will be placed in a lo file behind reco nized
sequence of characters. Empty “TRIG_TOKEN” means: There is no
sequence of characters which should make timestamp to be inserted in a
lo file.
Default: \r\n (\r – code 13; \n – code 10) (ENTER)
Example: TRIG_TOKEN = ”” (empty)

Name: TRIG_PERIOD
Description: This parameter specifies minimum period of time which has to elapse after
last timestamp to cause that next data reception will make timestamp to be
inserted in a lo file. If, durin reception of byte of data throu h RS232 port,
PEN-01 finds that time which elapsed after last timestamp is lar er than
“TRIG_PERIOD” it will insert next timestamp to the lo file just before this
byte. If this parameter equals zero it means that elapsin time won’t make
timestamp to be placed in the lo file.
Default: 5
Example: TRIG_PERIOD = 10
Confi uration file example:
// *** CONFIG FILE VER. 07 ***
PATH = /LOG.TXT // Path to log file
A TO_NAME = NO // Allowed values: YES or NO
BA D = 4800 // Allowed values: 2400;4800;9600;14400…
//DATE = 2010-01-01 // Date format: YYYY-MM-DD
//TIME = 08:00:00 // Time format: HH:MM:SS
LOG_DATE = NO // Allowed values: YES or NO
LOG_TIME = NO // Allowed values: YES or NO
TRIG_TOKEN = "\r\n" // Max 20 characters
TRIG_PERIOD = 0 // 0 - 999999 [sec]
COMMAND = "SI\r\n" // Max 20 characters
INTERVAL = 3 // 0 - 999999 [sec]
ECHO = YES // Allowed values: YES or NO

5. Signalling
DIODA_USB – diode closer to USB interface
DIODA_RS232 – diode further from USB interface
After diode supply is on both diodes li ht for about 0,5 second.
DI DA_RS232
Event / State Diode RS232
„Adapter” isn’t supplied.
Li ht off
„Adapter” is supplied.
Li ht on
Transmission is in pro ress on RS232 receivin line
DI DA_USB
6. RS232C commands
The whole transmission from RS232 port is saved on Pendrive. Exception is situation
when byte with 0x10 value shows up. Device reco nizes this as a marker – successive bytes
are interpreted as a command for the device. Device ends interpretin successive bytes as
command after 0x10 si n shows up a ain. Followin command are reco nized:
l(/)– main catalo listin
o(/plik.txt) – readouts „plik.txt” file by RS232 interface
d(2010-04-11) – data settin
c(08:00:00) – time settin
Event / State Diode USB
Pendrive is disconnected or unidentified or full Li ht off
Pendrive is ready
Li ht on
Pendrive with confi uration file is connected and all parameters
are reco nized correctly
Pendrive without confi uration data. Confi uration file has been
created with default data.
Pendrive with confi uration file but one of the followin problems
occured:
- confi uration file is too bi
- unidentified parameter in confi uration file
- identified parameter has incorrect value
Data portion saved on Pendrive
Data portion saved on Pendrive but there is no free space
available

Notes

AXIS
Sp. z o.o.
ul.Kartuska 375B
80-125 Gdańsk, Poland
tel. +48 58 320 63 01..03
fax +48 58 320 63 00
E-mail: axis axis.pl www.axis.pl
@
Other Axis Adapter manuals