|
Protocol Macro For HostLink The protocol consists of 10 sequences, numbered 050 to 059 as follows:
Output & Input Words for All Read Sequences Note: The output words are the middle operand of PMCR and are also known as source words and read words. The input words are the 3rd operand of PMCR and are also known as destination words and write words.
Recommended Method to Perform A Read
Note 2: Never try to read more than 30 items in one message. Read Operation Example The master PLC wants to read 3 words of DM starting at DM0123 from slave unit 16. The first output word in the PMCR is set to DM0000. The first input word is set to DM0010. DM0000= Size of table= 0004
DM0001= Unit number= 0016
DM0002= Start address= 0123
DM0003= Number of words= 0003
After the successful execution of PMCR:
DM0010= Size of table= 0006
DM0011= End code= 0000
DM0012= Value from slave DM0125
DM0013= Value from slave DM0124
DM0014= Value from slave DM0123
Output & Input Words for All Write Sequences
Recommended Method to Perform A Write
Write Operation Example The master PLC wants to write a value of 1234 to DM0200 in slave unit 3. The first output word in the PMCR is set to DM0000. The first input word is set to DM0010. DM0000= Size of table= 0004
DM0001= Unit number= 0003
DM0002= Address= 0200
DM0003= New value= 1234
After the successful execution of PMCR:
DM0010= Size of table= 0002
DM0011= End code= 0000
Timeout & Retry Values All the sequences have a one second timeout for sending the commands and another one second timeout for receiving the reply. If the sequence times out or an unexpected reply is received the sequence will automatically retry up to two times. After this the sequence will abort. Attached are several protocol macros for HostLink. Link: |
| Comments | ||
|
||