This function enables the capture of an axis' quota photo via hardware (maximum precision).
|
i32 pos_capture_cmd (i32 nAx, i32 micro, i32 edge)
|
|
Axis number (1-:-32)
|
|
Transducer type:
|
|
|
INCREMENTAL ENCODER
|
< 0
|
Disable capture
|
0
|
Only channel of 0
|
1
|
Micro of 0 associated plus channel of 0
|
CANopen/EtherCAT Parker - SBC (HID type)
|
< 0
|
Disable Capture
|
0
|
Immediate photo of resolver lap start or photo on channel
|
1
|
input0 on drive
|
2
|
input1 on drive
|
3
|
input2 to drive
|
CANopen/EtherCAT Parker - SBC (SLVD/TPDM type)
|
< 0
|
Disable capture
|
0
|
Immediate photo of resolver lap start or photo on channel
|
1
|
input0 on drive.
On TPDM, photos can be taken on multiple inputs if this performance is enabled
|
EtherCAT Robox IMD20
|
< 0
|
Disable Capture
|
0
|
Immediate photo of start of resolver round or photo on channel
|
1
|
input1 on drive
|
2
|
input2 on drive
|
CANopen/EtherCAT Phase AXM
(requires PLC program on board AXM)
|
< 0
|
Disable capture
|
0
|
Immediate photo of resolver lap start or photo on channel
|
1
|
input0 on drive
|
2
|
input1 on drive
|
3
|
input2 to drive
|
4
|
input3 to drive
|
CANopen/EtherCAT Phase Ultract TW
|
< 0
|
Disable capture. (not yet implemented)
|
0
|
Immediate photo of resolver lap start or photo on channel
|
1
|
input0 on drive
|
CANopen Sinamics RCB
|
-10 -11 -12 -13 -14 -15 -16
|
Hardware photo on specified input
|
< 0 (different from above)
|
Disable capture
|
0
|
Immediate photo of start of resolver round or photo on channel
|
1 -:- 16
|
Software photo on specified input. (latency 1 ms)
|
|
|
Bit flag:
|
|
|
|
0
|
0x00000001
|
0
|
Falling edge. (if provided by hw)
|
1
|
Rising front. (if provided by hw) (used where applicable)
|
1
|
0x00000002
|
1
|
Continuous capture
|
2
|
0x00000004
|
1
|
Disable photo execution
|
3
|
0x00000008
|
1
|
Enables use of micro of 0 plus channel of 0 encoder. (if the hw has encoder channel read input)
|
|
|
Returns:
|
|
> 0
|
Photo ID
|
0
|
Capture disabled
|
< 0
|
Error Code
|
-1
|
Photo hw not executable or error at photo startup or continuous mode not supported
|
-2
|
Photo already running
|
-6
|
Illegal axis number
|
|
|
Rule, Task
|
|
RTE 33.3.4
|
|
|
To be used in conjunction with the pos_capture_sts() function.
It can be used only with transducers that allow it ie:
•Incremental encoder
•CAN402 with Parker S.B.C. drive type (type HID 1) (requires cot hidrive_ipmode_3)
•CAN402 with Parker S.B.C. drive type (SLVD type 1) (requires cot slvdn_ipmode_3)
•EtherCAT with Parker S.B.C. drive type (needs Unique XML)
•EtherCAT/CANopen with Robox IMD20 drive type
•CAN402 with Sinamics drive type (RCB)
•EtherCAT/CANopen with Phase AXM drive type (requires PLC program loaded on AXM)
•EtherCAT/CANopen with drive type Phase TW (not yet implemented, does not require PLC program loaded on TW)