beckhoff TE1000 — 6.21 Close-TcSession

TcXaeMgmt Version 7.X | Close-TcSession 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 OUTPUTS NOTES 6.21 Close-TcSession | Close-TcSession SYNOPSIS Closes the specified session.

SYNTAX Default (Default) Close-TcSession -Id [ ] Session Close-TcSession -InputObject [ ] DESCRIPTION This Cmdlet closes the specified Point-To-Point Connection to the TwinCAT Target that is represented by the returned session object. All registered SessionProvider types of Sessions can be used here. If using ADS as protocol, this Cmdlet is equivalent to Close/Dispose/Disconnect an ADS Client. EXAMPLES Example 1 PS> $session = New-TcSession -NetId '1.2.3.4.1.1' -port 10000 PS> $session | Get-AdsState Target NetId Port State Latency (ms) ------ ----- ---- ----- ------- CX_1234 1.2.3.4.1.1 10000 Config 3 PS> $session | Close-TcSession Opens a session to the registered route with AmsNetId:

1.2.3.4.1.1 and closes the ADS Session again.: PARAMETERS -Id The session object to close is specified by this session ID. The net id. TE1000 114 Version: 1.5.0