Home Products Download Area Price List Application Notes Support QR Codes FAQs SY/MAX Primer QSPXM Configuration Tool NR&D Distributors | SY/MAX PLC Communication PrimerNOTE: This primer isn't finished yet. The Square D SY/MAX PLC has remarkable communication features that can allow for quite complicated messaging. There are four message ladder elements used by the SY/MAX PLC:
TREAD Message Structure| Trig +--------ROUTE--STAT--LOCAL--REMOTE-COUNT-+ |--| |----------|TREAD1 001 101 0501 0050 1001 20 | | +-----------------------------------------+ The TREAD1 at the start of the message indicates the PLC port for the read. The possible values for this number depend upon the specific SY/MAX PLC.
The ROUTE fields may include up to 8 drops. The first drop is the number of the network port to which the PLC is connected. This drop number will be in the range of 000 through 199 or the special drop number 201 is sometimes used. 201 is the "don't care" drop number which tells the network card to substitute its own drop number in the route. 201 is handy in redundant CPU configurations. The memaining drops direct the message to its final target. The STAT field is an internal register that the PLC uses to keep track of the status of the outstanding message. Each communication message must have a unique STAT register. There are a number of bits used by the PLC in the STAT register but the ones of interest are as follows:
The STAT bits are all cleared when the logic that turns on the TREAD is opened. Thus it is important to trigger any operation off of the STAT bits before the TREAD is opened. Bit 1 comes on if an error was returned by a network module, remote device, or the PLC itself. Bit 16 comes on when a good reply is received from the remote device. Bit 22 is normally used to latch the TREAD once it is triggered. Bit 23 is used as a failsafe in case an error reply never comes. The LOCAL field is the internal starting register where the remote data is to be stored in the PLC. This value must be within the valid range of data registers for the specific PLC. The REMOTE field is the starting register in the remote device. This value must be within the range of 1-8192. The COUNT field is the number of registers to be read. The maximum value depends upon the limitations of the remote device but must be 128 or less. TWRITE Message Structure| Trig +--------ROUTE--STAT--LOCAL--REMOTE-COUNT-+ |--| |----------|TWRITE1 001 101 0501 0050 1001 20 | | +-----------------------------------------+ The TWRITE1 at the start of the message indicates the PLC port for the write. The possible values for this number depend upon the specific SY/MAX PLC.
The ROUTE fields may include up to 8 drops. The first drop is the number of the network port to which the PLC is connected. This drop number will be in the range of 000 through 199 or the special drop number 201 is sometimes used. 201 is the "don't care" drop number which tells the network card to substitute its own drop number in the route. 201 is handy in redundant CPU configurations. The memaining drops direct the message to its final target. The STAT field is an internal register that the PLC uses to keep track of the status of the outstanding message. Each communication message must have a unique STAT register. There are a number of bits used by the PLC in the STAT register but the ones of interest are as follows:
The STAT bits are all cleared when the logic that turns on the TWRITE is opened. Thus it is important to trigger any operation off of the STAT bits before the TREAD is opened. Bit 1 comes on if an error was returned by a network module, remote device, or the PLC itself. Bit 16 comes on when a good reply is received from the remote device. Bit 22 is normally used to latch the TWRITE once it is triggered. Bit 23 is used as a failsafe in case an error reply never comes. The LOCAL field is the internal starting register where the data for the remote device is stored in the PLC. This value must be within the valid range of data registers for the specific PLC. The REMOTE field is the starting register in the remote device. This value must be within the range of 1-8192. The COUNT field is the number of registers to be written. The maximum value depends upon the limitations of the remote device but must be 128 or less. TriggersThe T at the beginning of each element indicates that it is a transitional operation. Transitional operations in a Square D PLC only happen on the transition from off to on. So if a TREAD is tied to the left rail in a ladder then it will only send the read once and never again. Therefore, some sort of trigger input is required to control the power flow to the communication element. |