Two Ways Of Programming; Syntax - Fluke PM 6666 Operator's Manual

Timer / counter
Table of Contents

Advertisement

Two Ways of Programming

The simplest way of programming the counter is by manu-
ally setting up the measurement you want from the front
panel of the counter, then let the controller ask the counter
how it is set up. The data the controller gets from the
counter can be used to set up the same measurement
over and over again. This method is called 'Bus-learn' and
will be explained later.
The other method is to make a program message where
each step of the set-up is separately specified.
Programming Checklist
Check that the following steps have been taken to ensure
correct programming of the instrument.
Normally only the six first steps must be programmed.
Do you know the current setting of the counter? If not,
send device clear 'D' to get the default settings.
Select Measuring-function; (Default: Frequency-A.)
Select Measuring-time;(Default: 0.2 s.)
Select Trigger-slopes;
(Default on Input-A and Input-B: Positive.)
Select Coupling;
(Default on Input-A: AC.)
(Default on Input-B: DC.)
Select Trigger-level;(Default: AUTO.)
For advanced programming, check the following steps.
Set Output separator; (Default: LF.)
Set EOI mode;
(Default: OFF.)
Set service request(SRQ) -mask;
(Default, No SRQ.)
Select Free-Run on or off;
(Default: ON.)
If Free-Run is off, select Time-Out if desired;
(Default: Infinite, programmed as 0 s.)
Set Output-mode;
(Default: Normal output format, High-speed dump OFF
and MTCXO compensation ON.)
All functions and commands in the checklist will be ex-
plained later.
NOTE:
You only have to program the changes from the pre-
vious set-up.

Syntax

What is a Programming Command?
A programming command consists of a header, address-
ing the function you want, and a body instructing the func-
tion what to do.
GPIB-INTERFACE OPERATION
EXAMPLE:
NOTE:
What is a Programming Message?
A programming message is a number of programming
commands with separators between them. E.g. the com-
mands necessary to set up a measurement.
EXAMPLE: PER A;MTIME 0
Input Separator
All communication between the counter and the controller
uses sequences of ASCII-characters terminated by a
separator. Input separators are the separators sent by the
controller. They are used in four different places:
Between
header and
body
<space>
The separators in the example above are the ones nor-
mally used in respective place. The counter will however
accept any one in any place.
The following separators will also work in any of the four
places: colon, CR, ETB, ETX, the separator selected as
output separator, as well as an active EOI-signal.
Order of Commands in a Program
Message
Normally, the programming commands in a programming
message can be placed in any order.
However, the following commands must always be placed
at the end of a program message since any command
sent after them will disable the selection:
INPA?
INPB?
These commands will be ignored if found anywhere but in
the end of a message.
<number>
In some program commands, the body is replaced by the
term <number> or <num>. Here you must enter a numeri-
cal value. <number> can be entered in any format you like
TRGSLP POS
HEADER, addressing
Trigger Slope
Some programming commands consists only of the
Header, e.g. trigger command 'X'.
As unit
Between
separator
program
between
commands
bodies
<comma>
<semicolon> <linefeed>
TIME A,B:FRUN ON↵
MEAC?
FNC?
BUS?
ID?
PM 6666 - OPERATORS MANUAL
Page: 25
BODY, switching
slope to positive
To end a
program
message
X
OUTM 4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents