
PLC Layer 7 program interface
CP1413plus manual
4-56
Rev. 00/07
4.3.3.9 Set station address for multiple adapters
#include <S5Access.h>
unsigned short WENTRY_C S5SetStationAddressCard(unsigned
char W_POINTER address, unsigned short card)
This function modifies the local (own) station address. The function must be used on systems where
multiple adapters are installed. The function may also be used if the system contains only a single
adapter.
Parameters
address
Pointer to a memory location containing the modified station parame-
ters. The remaining 6 bytes contain the station address.
For an H1 environment the highest byte may not contain a broadcast-
or multicast-address.
card
adapter number. 0 is adapter 1
Return value
0
H1_NO_DRIVER
H1_NO_ADAPTER
Note
See note for
S5SetStationAddress
chapter 4.3.3.8
Example
unsigned char address [6];
station[0] = 0x00;
station[1] = 0x20;
station[2] = 0xd5;
station[3] = 0x80;
station[4] = 0x02;
station[5] = 0x01;
S5SetStationAddressCard(address,card);
See also
S5SetStationAddress
Summary of Contents for CP 1413plus
Page 2: ...jkjlj...
Page 8: ...Contents CP1413plus manual iv Rev 00 07...
Page 10: ......
Page 16: ...Special features CP1413plus manual 1 6 Rev 00 07...
Page 18: ......
Page 38: ...Standards and specifications CP1413plus manual 2 20 Rev 00 07...
Page 40: ......
Page 104: ...Entry into protocol file H1PROT_NIF CP1413plus manual 3 64 Rev 00 07...
Page 106: ......
Page 178: ...PLC Layer 7 program interface CP1413plus manual 4 72 Rev 00 07...
Page 180: ......
Page 194: ......
Page 206: ...ksdjfk...
Page 306: ......
Page 317: ...Appendix A Technical data A 1 B Abbreviations B 1 C List of figures C 1 D Index D 1...
Page 318: ...dfgdfgfdg...
Page 324: ...List of figures CP1413plus manual C 2 Rev 00 07...