Exemple #1
0
        private void ReleaseSymhandleInternal(uint symhandle)
        {
            // Run the release command.
            var adsCommand = new AdsWriteCommand(0x0000F006, 0x00000000, BitConverter.GetBytes(symhandle));

            adsCommand.Run(this.ams);
        }
Exemple #2
0
 /// <summary>
 /// Write the value to the handle returned by GetSymhandleByName
 /// </summary>
 /// <param name="varHandle">The handle returned by GetSymhandleByName</param>
 /// <param name="varValue">The byte[] value to be sent</param>
 public void WriteBytes(uint varHandle, IEnumerable <byte> varValue)
 {
     AdsWriteCommand adsCommand = new AdsWriteCommand(0x0000F005, varHandle, varValue);
     var             result     = adsCommand.Run(this.ams);
 }
Exemple #3
0
 /// <summary>
 /// Release symhandle
 /// </summary>
 /// <param name="symhandle">The handle returned by GetSymhandleByName</param>
 public void ReleaseSymhandle(uint symhandle)
 {
     activeSymhandles.Remove(symhandle);
     AdsWriteCommand adsCommand = new AdsWriteCommand(0x0000F006, 0x00000000, BitConverter.GetBytes(symhandle));
     var             result     = adsCommand.Run(this.ams);
 }