CALL PLCINIT Statement
Purpose:
This command is used to initialize communication with the SY/MAX. CALL
PLCINIT must be issued prior to any other communication (reading or
writing) to the specified PLC. CALL PLCINIT auto detects the baud rate and
parity. Either COM 1 or COM 2 can be specified. Note that on T-60 ’s
only COM 1 is available (T-60 ’s only have one RS422 port). A single
non-networked route is specified by the id, see comments below. If the
CALL PLCINIT command fails, the T-60 Series unit will break your program
and generate the error message “PLC link not established.” If this happens,
make sure that the connections and communications configurations are
correct. If they are OK, check to make sure that the SY/MAX is powered up
and ready to accept commands.
Syntax:
CALL PLCINIT(id,cmd)
Comments:
id specifies the route for the SY/MAX. Specifying an id of 0 will specify an
route of 0,100, an id of 1 will specify a route of 1,101. Networking route
specifications will be available in future versions of this interface, check with
EMERSON EMC for more details.
cmd specifies the communications mode:
1 - RS422, COM 1
2 - RS422, COM 2 - T-61 only
Examples:
10 CALL PLCINIT(0,1)
Establish communications with the PLC via the T-60 Series COM 1 RS422
Port, specifying a route of 0,100.
CALL PLCREAD Statement
Purpose:
This command is used to read the value(s) in the SY/MAX PLC’s registers. It
can read words or bits in all allowable addresses for a specific SY/MAX PLC.
Syntax:
CALL PLCREAD(id,start address,[bit position],# of
registers/bits,variable/array )
PLC Interface Commands PLC Specific Information
99