Vision and Logic Master Programming Advanced34.docx

上传人:b****4 文档编号:1081418 上传时间:2022-10-16 格式:DOCX 页数:13 大小:2.05MB
下载 相关 举报
Vision and Logic Master Programming Advanced34.docx_第1页
第1页 / 共13页
Vision and Logic Master Programming Advanced34.docx_第2页
第2页 / 共13页
Vision and Logic Master Programming Advanced34.docx_第3页
第3页 / 共13页
Vision and Logic Master Programming Advanced34.docx_第4页
第4页 / 共13页
Vision and Logic Master Programming Advanced34.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

Vision and Logic Master Programming Advanced34.docx

《Vision and Logic Master Programming Advanced34.docx》由会员分享,可在线阅读,更多相关《Vision and Logic Master Programming Advanced34.docx(13页珍藏版)》请在冰豆网上搜索。

Vision and Logic Master Programming Advanced34.docx

VisionandLogicMasterProgrammingAdvanced34

VisionandLogicMasterProgrammingAdvanced

Lesson3&4

TableofContents

ModbusProtocol2

ControlModbusLighting4

FeedbackandSynchronous9

 

ModbusProtocol

1.ToUnderstandModbusProtocol

PlantoControlaDimmerPanelwithRS-485ModbusProtocol

2.SummarizeWhatNeedtoControl

CommunicationPortSet

1)Serial:

RS-485(RTX+,RTX-)

2)PortSetup:

9600bps,NonParity,8data,1stop

3)CheckSum:

CRC-16

0110300100010200015642-1ChannelOn

0110300100010200009782-1ChannelOff

0110300200010200015671-2ChannelOn

01103002000102000097B1-2ChannelOff

01103003000102000157A0-3ChannelOn

0110300300010200009660-3ChannelOff

0110300400010200015617-4ChannelOn

01103004000102000097D7-4ChannelOff

01103000000102000FD657-4ChannelAllOn

01103000000102003FD643-6ChannelAllon

011030000001020003D652-1/2ChannelOn,3/4/5/6Off

011030000001020003D652-1/2ChannelOn

0110300000010200009653-1/2ChannelOff

0110301100010200009512-1DimChannel0%

01103011000102003214C7-1DimChannel50%

01103011000102006494F9-1DimChannel100%

0110301200010200009521-2DimChannel0%

01103012000102001C94E8-2DimChannel28%

01103012000102006494CA-2DimChannel100%

0110301000010200015503-1SceneOn

01103010000102000094C3-1SceneOff

AnalysisOneCommand:

ACRCChecksumToolsMayNeedtoTestControlCode.

ControlModbusLighting

1.DesignandMakeUI

2.CreateLMProject

ConfigControllerwithRS-485onCOME

 

3.NameUISignals

4.InterlockandToggleFeedback

 

 

5.ConsiderProgramStructure

 

6.UnderstandAnalogtoSerialModule

 

7.InitialEachByteofCommandString

 

8.ScaleAnalogFrom65536to100

 

9.OutputandDebug

 

FeedbackandSynchronous

1.GetFeedbackString

RS-232/422/485SerialCommunicationareEssentiallyDataFlow.TheFlowMayNotConsecutive,itisalwaysoneSegmentbyAnother.SoneedGather.

 

TheSerialGatherModuleevaluatesitsserialinputstringuntilitfindsthecharacterspecifiedintheparameter.Thenittransmitsthedelimitedportionofthestring(includingthe)andthefollowingspecifiedcharactersasanewstringto.

parametershouldabidetostringformat.Itcanbedefinedasoneormultiplecharacters.

Theparametershouldnotexceedthestringlengthbymorethan64.Thatistherangewith0dto64d.

TheSerialGathersymbolisusefulfortakingdatathatmayarriveinpieces,suchasdatafromaCOMport,andreissuingthedatainonepiece(Package).

 

2.DIMFeedbacktoUI

3.DIMFeedbacktoUIChannel2

 

4.HeartbeatOSCSentRequestStringtoDIMMER

 

5.USEBUFFERModuleSolveMultipleDefinition

 

6.TimingConditionToGateOscillator

TheTargetControlledDIMMERRestricttoContinuousCommand.ProgramShouldIntervalRequestCommandandControlCommand

7.TimingConditionToSendCommand

UpdateAnalogVariableValuebeforeSendingNewCommand

 

8.FeedbackofON/OFFStatus

TheSerialtoAnalogsymbolevaluatesitsserialinputstringuntilitfindsanexactmatchwiththestring(orstringfragment)thatisdefinedbythe

parameters.

Theexpectedinputstringmustbeofafixedlengthandinaknownformat,andeach

parametermustcorrespondtoonebyteoftheinputstring.

1.     

=0000hsignifiesthatthecharacterisirrelevantandcanbeignored.

2.     

=01xxhsignifiesthatthecharactermustmatchxx.

3.     

=0200hidentifiesacharacterthatistobeextractedandtransmitted.

9.

FeedbackStatustoToggle

KeepToggleModuleallInputSignalTransient“High”

10.COMOutputMethodTwo

MakeSureCOMOutputCommandNotJammed:

AlwaysOnebyOne

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 经管营销 > 经济市场

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1