Get-EcBoxes

SYNOPSIS

Gets the EtherCAT Boxes actually loaded on the specified target system.

SYNTAX

Get-EcBoxes [-InputObject] <EcMaster> [-Configured] [-Timeout <Int32>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

This command list the EtherCAT Boxes actually loaded on the target system.

EXAMPLES

EXAMPLE 1

PS> $m = Get-EcMaster -NetId 5.62.192.46.1.1
PS> $m | Get-EcBoxes

Pos Name             Type                 Port  State CrcError        FW   HW    Production
--- ----             ----                 ----  ----- ---------       --   --    ----------
2   Term 2 (EL1808)  EL1808-0000-0018     1001  PreOp A:0,B:0          7    0    2021-5-29
3   Term 3 (EL2088)  EL2088-0000-0018     1002  PreOp A:0,B:0          9    0    2021-6-04
4   Term 4 (EL2624)  EL2624-0000-0018     1003  PreOp A:0,B:0          12   1    2021-5-25
5   Term 5 (EL3064)  EL3064-0000-0020     1004  PreOp A:0,B:0          15   9    2021-6-01
6   Term 6 (EL4004)  EL4004-0000-0020     1005  PreOp A:0,B:0          19   4    2021-5-31
7   Term 7 (EL6021)  EL6021-0000-0021     1006  PreOp A:0,B:0          13   9    2021-6-01
8   Term 8 (EL9110)  EL9110-0000-0018     1007  PreOp A:0,B:0          14   0    2021-5-17
9   Term 9 (EL1004)  EL1004-0000-0016     1008  PreOp A:0,B:0          0    0    2000-1-02
10  Term 10 (EL2008) EL2008-0000-0016     1009  PreOp A:0,B:0          0    0    2000-1-02

Get the EtherCAT Master from NetID 5.62.192.46.1.1 and scan the connected (online) Boxes below this master

EXAMPLE 2

PS> $m = Get-EcMaster -NetId 5.62.192.46.1.1
PS> $m | Get-EcBoxes -configured

Pos Name             Type                 Port  State CrcError         FW   HW   Production
--- ----             ----                 ----  ----- ------------     --   --   ----------
2   Term 2 (EL1808)  EL1808-0000-0018     1001  PreOp A:0,B:0          7    0    2021-5-29
3   Term 3 (EL2088)  EL2088-0000-0018     1002  PreOp A:0,B:0          9    0    2021-6-04
4   Term 4 (EL2624)  EL2624-0000-0018     1003  PreOp A:0,B:0          12   1    2021-5-25
5   Term 5 (EL3064)  EL3064-0000-0020     1004  PreOp A:0,B:0          15   9    2021-6-01
6   Term 6 (EL4004)  EL4004-0000-0020     1005  PreOp A:0,B:0          19   4    2021-5-31
7   Term 7 (EL6021)  EL6021-0000-0021     1006  PreOp A:0,B:0          13   9    2021-6-01
8   Term 8 (EL9110)  EL9110-0000-0018     1007  PreOp A:0,B:0          14   0    2021-5-17
9   Term 9 (EL1004)  EL1004-0000-0016     1008  PreOp A:0,B:0          0    0    2000-1-02
10  Term 10 (EL2008) EL2008-0000-0016     1009  PreOp A:0,B:0          0    0    2000-1-02

Get the EtherCAT Master from NetID 5.62.192.46.1.1 and scan the configured Boxes below this master

PARAMETERS

-InputObject

The EtherCAT master where to scan the slaves.

Type: EcMaster
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Configured

The List of Configured Boxes will be returned if specified.

If not specified, this Cmdlet will return the Online Boxes.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Timeout

The communication ADS timeout in milliseconds.

A value of 0 disables the timeout.

A value \<= 0 sets the Default (5000 ms).

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 5000
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

EtherCAT.EcMaster

The EtherCAT master where to scan the slaves.

OUTPUTS

NOTES