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

더 자세히 ...

정적 Public 멤버 함수

static byte Map (PlcAddress address, bool bitAccess)
static PlcDeviceType ToDeviceType (byte areaCode)
static bool IsBitArea (byte areaCode)

상세한 설명

Dreamine PLC 장치 형식과 Omron FINS 메모리 영역 코드를 상호 매핑합니다.

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

멤버 함수 문서화

◆ IsBitArea()

bool Dreamine.PLC.Omron.Fins.Devices.OmronFinsMemoryAreaMapper.IsBitArea ( byte areaCode)
inlinestatic

메모리 영역 코드가 비트 접근을 나타내는지 확인합니다.

매개변수
areaCode검사할 FINS 메모리 영역 코드입니다.
반환값
비트 영역이면 true, 아니면 false입니다.

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

131 {
132 return areaCode is OmronFinsMemoryAreaCode.CioBit
133 or OmronFinsMemoryAreaCode.WorkBit
134 or OmronFinsMemoryAreaCode.HoldingBit
135 or OmronFinsMemoryAreaCode.DmBit;
136 }

다음을 참조함 : Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.CioBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.DmBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.HoldingBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.WorkBit.

다음에 의해서 참조됨 : Dreamine.PLC.Omron.Fins.Simulation.OmronFinsSimulatorProtocol.TryParseRequest().

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

◆ Map()

byte Dreamine.PLC.Omron.Fins.Devices.OmronFinsMemoryAreaMapper.Map ( PlcAddress address,
bool bitAccess )
inlinestatic

PLC 주소를 FINS 메모리 영역 코드로 매핑합니다.

매개변수
address매핑할 PLC 주소입니다.
bitAccess비트 접근 코드가 필요한지 여부입니다.
반환값
대응하는 FINS 메모리 영역 코드입니다.
예외
NotSupportedExceptionPLC 장치 형식을 FINS가 지원하지 않을 때 발생합니다.

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

57 {
58 return address.DeviceType switch
59 {
60 PlcDeviceType.D => bitAccess ? OmronFinsMemoryAreaCode.DmBit : OmronFinsMemoryAreaCode.DmWord,
61 PlcDeviceType.W => bitAccess ? OmronFinsMemoryAreaCode.WorkBit : OmronFinsMemoryAreaCode.WorkWord,
62 PlcDeviceType.R => bitAccess ? OmronFinsMemoryAreaCode.HoldingBit : OmronFinsMemoryAreaCode.HoldingWord,
63 PlcDeviceType.M => bitAccess ? OmronFinsMemoryAreaCode.CioBit : OmronFinsMemoryAreaCode.CioWord,
64 PlcDeviceType.X => bitAccess ? OmronFinsMemoryAreaCode.CioBit : OmronFinsMemoryAreaCode.CioWord,
65 PlcDeviceType.Y => bitAccess ? OmronFinsMemoryAreaCode.CioBit : OmronFinsMemoryAreaCode.CioWord,
66 _ => throw new NotSupportedException($"Unsupported FINS device type: {address.DeviceType}.")
67 };
68 }

다음을 참조함 : Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.CioBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.CioWord, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.DmBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.DmWord, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.HoldingBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.HoldingWord, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.WorkBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.WorkWord.

다음에 의해서 참조됨 : Dreamine.PLC.Omron.Fins.Protocol.OmronFinsFrameBuilder.BuildMemoryCommandBody().

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

◆ ToDeviceType()

PlcDeviceType Dreamine.PLC.Omron.Fins.Devices.OmronFinsMemoryAreaMapper.ToDeviceType ( byte areaCode)
inlinestatic

FINS 메모리 영역 코드를 Dreamine PLC 장치 형식으로 매핑합니다.

매개변수
areaCode매핑할 FINS 메모리 영역 코드입니다.
반환값
대응하는 PLC 장치 형식이며 알 수 없는 코드는 PlcDeviceType.Unknown입니다.

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

95 {
96 return areaCode switch
97 {
98 OmronFinsMemoryAreaCode.DmBit or OmronFinsMemoryAreaCode.DmWord => PlcDeviceType.D,
99 OmronFinsMemoryAreaCode.WorkBit or OmronFinsMemoryAreaCode.WorkWord => PlcDeviceType.W,
100 OmronFinsMemoryAreaCode.HoldingBit or OmronFinsMemoryAreaCode.HoldingWord => PlcDeviceType.R,
101 OmronFinsMemoryAreaCode.CioBit or OmronFinsMemoryAreaCode.CioWord => PlcDeviceType.M,
102 _ => PlcDeviceType.Unknown
103 };
104 }

다음을 참조함 : Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.CioBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.CioWord, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.DmBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.DmWord, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.HoldingBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.HoldingWord, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.WorkBit, Dreamine.PLC.Omron.Fins.Protocol.OmronFinsMemoryAreaCode.WorkWord.

다음에 의해서 참조됨 : Dreamine.PLC.Omron.Fins.Simulation.OmronFinsSimulatorProtocol.TryParseRequest().

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

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