13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 151CLINKExecution controlPauseAbortCOMMUNICATION LINK INSTRUCTIONFUN 151(WHICH MAKES PLC ACT AS THE MASTER STATION IN CPU LINK NETWORKCLINKTHROUGH PORT 1~4)Ladder symbol151P.CLINKPt : Assign the port, 1~4EN Pt :ACTMD : Communication mode, MD0~MD3PAUSR : Starting register of communication tableMD :(see example for its explanation)SR :ERRWR : Starting register for instruction operation (seeWR :example for its explanation). It controls 8 registers,ABTDNthe other programs can not repeat in using.RangeOperandPtMDHR ROR DR KR0∣R3839R5000∣R8071D0∣D4095SR ○ ○ ○WR ○ ○* ○1~40~3Description● This instruction provides 4 instruction modes MD0~MD3. Of which, three instruction modes MD0~MD2, are“regular link network”, and the MD3 is the “high speed link network”. The following are the function description ofrespective modes. For the details, please refer to section 12.1.2 for explanation.hMD0 : Master station mode for FATEK CPU LINK.For any PLC, whose ladder program contains the FUN151:MD0 instruction, will become masterstation of FATEK CPU LINK network. The master station PLC will base on the communicationprogram stored in data registers in which the target station, data type, data length, etc, werespecified to read or write slave station via “FATEK FB-PLC Communication Protocol” command.With this approach up to 254 PLC stations can share the data each otherhMD1 : Active ASCII data transmission mode.With this mode, the FUN151 instruction will parse the communication program stored in dataregisters and base on the parsing result send the data from port2 to ASCII peripherals (such ascomputer, other brand PLC, inverter, moving sign, etc, this kind of device can command by ASCIImessage). The operation can set to be (1) transmit only, which ignores the response fromperipherals, (2) transmit and then to receive the response from peripherals. When operate withmode (2) then the user must base on the communication protocol of peripheral to parsing andprepare the response message by writing the ladder instructions.hMD2 : Passive ASCII data receiving mode.With this mode, the FUN151 will first wait to receive ASCII messages sent by external ASCIIperipherals (such as computer, other brand PLC, card reader, bar code reader, electronic weight,etc. this kind of device can send ASCII message). Upon receiving the message, the user can baseon the communication protocol of peripheral to parsing and react accordingly. The operation canset to (1) receive only without responding, or (2) receive then responding. For operation mode (2)the user can use the table driver method to write a communication program and after received amessage this instruction can base on this communication program automatically reply themessage to peripheral.hMD3 : Master station mode of FATEK high speed CPU LINK.The most distinguished difference between this mode and MD0 is that the communicationresponse of MD3 is much faster than MD0. With The introduction of MD3 mode CPU LINK, TheFATEK PLC can easily to implement the application of distributed control and real time datamonitoring.7-123

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

Saved successfully!

Ooh no, something went wrong!