User manual

48
© 2007, Elektro-Automatik GmbH & Co. KG
EN
9. Guide to program the interface
cards
9.1 Explanation of the communication object list
The communication object list is located in section 9.3. This
list is the reference when creating user-defined applicati-
ons, apart from LabView, which are intended to control the
device(s).
The 1st column contains the object number (=object
address). This number has to be assigned to the byte OBJ
in the telegram.
The 3rd column defines if the object is read only, i.e. it
can only be requested from the device, or if it can also be
written.
The 4th column defines a special access condition of an
object. The execution of these objects additionally depends
on one of the below conditions. If the condition is not given,
the object is not executed and the device will send an answer
which contains an error code. Meaning of the numbers:
1 = The output/input of the device has to be switched off
(The object is only accepted and executed by the device if the power out-
put/input is in standby mode)
2 = Option „Internal resistance“ has to be unlocked*
(The object is only accepted and executed by the device if the option „Internal
resistance“ is unlocked)
3 = Transfer of the function data has to be enabled*
(The object is only accepted and executed by the device if it has been
instructed before, by another object, to receive and set function data)
4 = Function manager activated*
(The object is only accepted and executed by the device if the function
manager has already been activated manually in the device menu or by
another object)
5 = Function manager not activated*
(The object is only accepted and executed by the device if the function
manager is not active)
* only at series PSI 9000
Attention! It is generally required to set the device into
remote mode before sending objects that will change
any value on the device.
The 5th column defines the type of the data in the data field
of the telegram.
The 6th column defines the data length of the data field. At
objects with data type „string“ this byte defines the maximum
length of the string. The string has to be terminated with an
EOL (end of line, =0 ) or it ends after the given number of
bytes. Strings are transmitted in up to three split telegrams
when using CAN. See also „7.5.2 Telegram structure IF-
C1“.
The 7th column is used to mask out data of type „char“.
The mask (1st data byte) defines which bits may be set or
unset. In the telegram, the first byte of the data field is the
mask and the second byte is the data byte (= char data),
which will be masked by the first byte. It defines the bits that
will be changed
Columns 8 & 9 explain details about the data field.
The time format (where used) is of type „integer“ and
deneslikethis:
0 ... 10000 = 0…10,000s
16384 ... 22383 = 10,00s...59,99s
32768 …36367 = 1min:00s…59,99min
49152 …55151 = 1h:00min…99h:59min
9.2 Approach
The programming of the various device classes, in which the
interface cards are used, always follows the same scheme.
It only differs in number and functionality of the communi-
cation objects.
Generally applies:
- Monitoring, that is only requesting actual values and status,
is always possible with the appropriate objects (access
type „read“). The devices don‘t require the remote mode
for this.
- Setting of statuses and set values (controlling) requires the
activation of the remote mode (remote in this case means
that the device is remotely controlled via a digital interface
card)
- the remote mode can be blocked by certain circumstances.
For instance, the explicit local operation (only PSI9000) or
another mode the device is in and which does not allow
remote control. For further details refer to the user instruc-
tion guide of your device.
In order to start controlling a device, for example by sending
a set value, you need to
1. activate the remote mode (object 54)
2. send the set value.
The remote mode should be left, if not used any further. As
long as it is active, the device can not operated manually or
only restrictedly. The mode is indicated in the display.
Example 1: Activating the remote via IF-R1/IF-U1
According to the telegram format (also see 7.5), the first byte
is the start delimiter, which depends on the type and direction
of the telegram. Using, for instance, a device address (node)
of 5, the SD will be 0xD2, looking like this in bits:
11 01 00 10
Bits 0...3: 2 = three bytes are sent
Bit 4: 1 = direction from PC
Bit 5: 0 = Singlecast
Bits 6+7: 11 = Send data
...continued
Programming