Dreamine.PLC.Mitsubishi.MxComponent 1.0.1
Dreamine.PLC.Mitsubishi.MxComponent 산업 자동화 및 I/O 기능을 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter 클래스 참조

더 자세히 ...

정적 Public 멤버 함수

static string Format (PlcAddress address)
static string FormatOffset (PlcAddress address, int delta)

상세한 설명

Dreamine PLC 주소를 MX Component 장치 문자열로 변환합니다.

MitsubishiMxDeviceNameFormatter.cs 파일의 14 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ Format()

string Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.Format ( PlcAddress address)
inlinestatic

PLC 주소를 MX Component 장치 문자열로 변환합니다.

매개변수
address변환할 PLC 주소입니다. PlcAddress.Offset은 정규화된 숫자 오프셋이며 X/Y/B/W 오프셋은 16진수로 표시됩니다.
반환값
MX Component 장치 문자열입니다.
예외
NotSupportedException주소의 장치 형식을 MX Component가 지원하지 않을 때 발생합니다.

MitsubishiMxDeviceNameFormatter.cs 파일의 48 번째 라인에서 정의되었습니다.

49 {
50 var prefix = address.DeviceType switch
51 {
52 PlcDeviceType.D => "D",
53 PlcDeviceType.M => "M",
54 PlcDeviceType.X => "X",
55 PlcDeviceType.Y => "Y",
56 PlcDeviceType.B => "B",
57 PlcDeviceType.W => "W",
58 PlcDeviceType.R => "R",
59 PlcDeviceType.ZR => "ZR",
60 _ => throw new NotSupportedException($"Unsupported MX Component device type: {address.DeviceType}")
61 };
62
63 var offset = address.DeviceType is PlcDeviceType.X or PlcDeviceType.Y or PlcDeviceType.B or PlcDeviceType.W
64 ? address.Offset.ToString("X", CultureInfo.InvariantCulture)
65 : address.Offset.ToString(CultureInfo.InvariantCulture);
66
67 return address.BitOffset.HasValue
68 ? $"{prefix}{offset}.{address.BitOffset.Value}"
69 : $"{prefix}{offset}";
70 }

다음에 의해서 참조됨 : FormatOffset(), Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.ReadBitsCoreAsync(), Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.ReadWordsCoreAsync(), Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.WriteWordsCoreAsync().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ FormatOffset()

string Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.FormatOffset ( PlcAddress address,
int delta )
inlinestatic

오프셋 증분을 적용한 PLC 주소를 MX Component 장치 문자열로 변환합니다.

매개변수
address시작 PLC 주소입니다.
delta주소에 더할 증분입니다.
반환값
증분이 적용된 MX Component 장치 문자열입니다.
예외
NotSupportedException주소의 장치 형식을 MX Component가 지원하지 않을 때 발생합니다.

MitsubishiMxDeviceNameFormatter.cs 파일의 112 번째 라인에서 정의되었습니다.

113 {
114 return Format(address with { Offset = address.Offset + delta });
115 }

다음을 참조함 : Format().

다음에 의해서 참조됨 : Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.ReadBitsOneByOne(), Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.ReadWordsOneByOne(), Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.WriteBitsCoreAsync(), Dreamine.PLC.Mitsubishi.MxComponent.Clients.MitsubishiMxComponentPlcClient.WriteWordsCoreAsync().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: