Download User manual

Transcript
AO-08DP-uso-e
12-10-2011
12:19
Pagina 3
Parameter Store/Restore
SDO Messages
This module allows parameters to be saved in a non volatile memory. In order to
avoid storing parameters by mistake, storage is only executed when a specific
signature is written to the appropriate subindex. The signature is “save”.
Similarly, the default values of parameters, according to the communication or
device profile, are restored. On receipt of the correct signature in the appropriate
subindex, the device restores the default parameters and then confirms the SDO
transmission. The signature is “load”.
The new configuration becomes active after a reset, i.e. after a “Power Down” or
an NMT “Reset Node” message.
The entries of a device Object Dictionary are accessed trough SDO (Service Data Object)
messages. The basic SDO messages are as follows, as based on the Client – Server
request and response model:
Byte
Store
Parameter
Restore
Parameter
0
22h
1
10h
22h
11h
2
10h
3
01h
4
5
73h
61h
s
a
COB – ID = 600h + NodeID
10h
01h
6Ch
6Fh
l
o
COB – ID = 600h + NodeID
6
76h
v
7
65h
e
61h
a
64h
d
Byte
Read
request
Read
response
Write
request
Write
response
0
40h
1
4xh *
22h
60h
2
3
4
5
6
Index
Sub-Index
Reserved
COB – ID = 600h + NodeID
Index
Sub-Index
Data
COB – ID = 580h + NodeID
Index
Sub-Index
Data
COB – ID = 600h + NodeID
Index
Sub-Index
Reserved
COB – ID = 580h + NodeID
7
* This code is type dependant.
Please refer to the CIA DS301 Profile for more details.
Object Dictionary (with default values)
A
In order to configure the module, it is necessary to connect it to a PC with the CAN interface and the superivisory software installed. The configuration can be obtained by
writing the desired values to the module’s variables listed in the Object Dictionary.
Object Dictionary structure
Index Sub
(hex) Index
1000
1001
1003
1005
1006
1007
1008
1009
100A
100C
100D
1010
00h
01h
1011
00h
01h
1014
1015
1017
1018
00h
01h
1401
00h
01h
02h
03h
04h
05h
1402
00h
01h
02h
03h
04h
05h
1601
00h
01h
02h
03h
04h
1602
00h
01h
02h
03h
04h
Object
Name
VAR
VAR
ARRAY
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
ARRAY
VAR
VAR
ARRAY
Device Type
Error Register
Predefined error field
COB-ID SYNC
Communication cycle period
Synchrounous window length
Manufacturer Device Name
Manufacturer Hardware Version
Manufacturer Software Version
Guard Time
Life Time Factor
Store Parameters
Largest subindex supported
Save all parameters
Restore Default Parameters
Default
[hex]
00080191
00
00000000
00000080
00000000
00000000
“08DP”
“1.00”
“1.00”
0000
00
VAR
VAR
VAR
VAR
VAR
RECORD
VAR
VAR
RECORD
VAR
VAR
VAR
VAR
VAR
VAR
RECORD
VAR
VAR
VAR
VAR
VAR
VAR
RECORD
Largest subindex supported
Restore all default parameters
COB-ID EMCY
Inhibit Time EMCY
Producer heartbeat time
Identity Object
Number of entries
Vendor ID
2nd Receive PDO Comm Param.
Largest subindex supported
COB-ID used
Transmission type
Inhibit time
Reseved
Event timer
3rd Receive PDO Comm Param.
Largest subindex supported
COB-ID used
Transmission type
Inhibit time
Reseved
Event timer
2nd Receive PDO Mapping
01
01
80+NodeID
0000
07D0
UNSIGNED8
UNSIGNED32
UNSIGNED32
UNSIGNED16
UNSIGNED16
Identity (23h)
01
UNSIGNED8
000000E9 UNSIGNED32
PDO CommPar (20h)
05
UNSIGNED8
300+NodeID UNSIGNED32
FF *
UNSIGNED8
0000
UNSIGNED16
UNSIGNED8
0000
UNSIGNED16
PDO CommPar (20h)
05
UNSIGNED8
400+NodeID UNSIGNED32
FF *
UNSIGNED8
0000
UNSIGNED16
UNSIGNED8
0000
UNSIGNED16
PDO Mapping (21h)
RO
RW
RW
RW
RW
VAR
VAR
VAR
VAR
VAR
RECORD
VAR
VAR
VAR
VAR
VAR
No. of mapped application obj.
Write Output 16-bit ch1
Write Output 16-bit ch2
Write Output 16-bit ch3
Write Output 16-bit ch4
3rd Receive PDO Mapping
No. of mapped application obj.
Write Output 16-bit ch5
Write Output 16-bit ch6
Write Output 16-bit ch7
Write Output 16-bit ch8
04
64110110
64110210
64110310
64110410
RO
RO
RO
RO
RO
01
03
04
64110510
64110610
64110710
64110810
Type
UNSIGNED32
UNSIGNED8
UNSIGNED32
UNSIGNED32
UNSIGNED32
UNSIGNED32
Vis-String
Vis-String
Vis-String
UNSIGNED16
UNSIGNED8
UNSIGNED32
UNSIGNED8
UNSIGNED32
UNSIGNED32
UNSIGNED8
UNSIGNED32
UNSIGNED32
UNSIGNED32
UNSIGNED32
PDO Mapping (21h)
UNSIGNED8
UNSIGNED32
UNSIGNED32
UNSIGNED32
UNSIGNED32
Acc.
Attr.
RO
RO
RO
RW
RW
RW
const
const
const
RW
RW
RO
RW
RW
MO
M
M
O
O
O
O
O
O
O
O
O
O
O
O
O
O
M
RO
RO
M
Index Sub
(hex) Index
200C
00h
01h
02h
03h
04h
05h
06h
07h
08h
2010
00h
01h
02h
03h
04h
05h
06h
07h
08h
3000
3001
3010
6411
RO
RW
RW
RW
RW
RW
00h
01h
02h
03h
04h
05h
06h
07h
08h
M
RO
RW
RW
RW
RW
RW
6443
00h
01h
02h
03h
M
04h
05h
06h
07h
08h
M
RO
RO
RO
RO
RO
6444
00h
01h
02h
03h
04h
05h
06h
07h
08h
Object
Name
ARRAY
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
ARRAY
VAR
VAR
VAR
VAR
Analog Output channel status
Number of entries
Analog Output channel status Ch1
Analog Output channel status Ch2
Analog Output channel status Ch3
Analog Output channel status Ch4
Analog Output channel status Ch5
Analog Output channel status Ch6
Analog Output channel status Ch7
Analog Output channel status Ch8
Analog Output channel type
Number of entries
Analog Output channel type Ch1
Analog Output channel type Ch2
Analog Output channel type Ch3
Default
[hex]
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
ARRAY
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
ARRAY
VAR
VAR
VAR
VAR
Analog Output channel type Ch4
Analog Output channel type Ch5
Analog Output channel type Ch6
Analog Output channel type Ch7
Analog Output channel type Ch8
Node Address
Node Baurate
Fast/Enhanced mode
Analog Output 16_bit
Number of entries
Analog Output 16_bit Ch1
Analog Output 16_bit Ch2
Analog Output 16_bit Ch3
Analog Output 16_bit Ch4
Analog Output 16_bit Ch5
Analog Output 16_bit Ch6
Analog Output 16_bit Ch7
Analog Output 16_bit Ch8
Analog Output error mode
Number of entries
Analog Output error mode Ch1
Analog Output error mode Ch2
Analog Output error mode Ch3
00
00
00
00
00
7F
06
01
VAR
VAR
VAR
VAR
VAR
ARRAY
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
Analog Output error mode Ch4
Analog Output error mode Ch5
Analog Output error mode Ch6
Analog Output error mode Ch7
Analog Output error mode Ch8
Analog Error Output 32_bit
Number of entries
Analog Error Output 32_bit Ch1
Analog Error Output 32_bit Ch2
Analog Error Output 32_bit Ch3
Analog Error Output 32_bit Ch4
Analog Error Output 32_bit Ch5
Analog Error Output 32_bit Ch6
Analog Error Output 32_bit Ch7
Analog Error Output 32_bit Ch8
01
01
01
01
01
08
01
01
01
01
01
01
01
01
08
00
00
00
08
0
0
0
0
0
0
0
0
08
01
01
01
08
0
0
0
0
0
0
0
0
Type
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
INTEGER16
UNSIGNED8
INTEGER16
INTEGER16
INTEGER16
INTEGER16
INTEGER16
INTEGER16
INTEGER16
INTEGER16
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
UNSIGNED8
INTEGER32
UNSIGNED8
INTEGER32
INTEGER32
INTEGER32
INTEGER32
INTEGER32
INTEGER32
INTEGER32
INTEGER32
Acc.
Attr.
MO
O
RO
RW
RW
RW
RW
RW
RW
RW
RW
O
RO
RW
RW
RW
RW
RW
RW
RW
RW
RO
RO
RW
O
O
O
O
RO
RW
RW
RW
RW
RW
RW
RW
RW
O
RO
RW
RW
RW
RW
RW
RW
RW
RW
O
RO
RW
RW
RW
RW
RW
RW
RW
RW
Notes: *] The factory set (value present in the modules when new) for the transmission type is: 01h.