10.07.2015 Views

cubloc_manual2.pdf

cubloc_manual2.pdf

cubloc_manual2.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EndSub BitWrite(K As Integer, D As Integer)Dim LRC As IntegerPutstr 1,":0305"Putstr 1,Hp(k,4,1)If D=0 ThenPutstr 1,"0000"LRC = -(3+5+K.Byte1+K.Byte0)'Calculate LRCElsePutstr 1,"00FF"LRC = -(3+5+K.Byte1+K.Byte0+0xFF) 'Calculate LRCEnd IfPutstr 1,Hex2(LRC),13,10 'SendEnd Sub슬레이브쪽에는 아래 소스를 입력하세요!‘ Slave SourceConst Device = cb280Opencom 1,115200,3,80,80set modbus 0,3Usepin 2, OutUsepin 3, OutUsepin 4, OutSet Ladder OnMasterRS232CH1TXRXGNDCB280SlaveRXTXGNDRS232CH1CB280P2P3P4267

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!