INTERBUS Command Services
(Original Document)
At a Glance
This service is used to send the following INTERBUS commands to the TSX IBY 100 /TSX IBX 100 module:
NOTE: The SEND_REQ function can only be used for INTERBUS-S services. For further information, refer to the Phoenix Contact documentation. PCP services are not authorized.
Syntax
A command is sent using the SEND_REQ communication function:
SEND_REQ(ADDR('r.m.0.SYS'), 16#83, %KWi:L, %MWk:4, %MWj:4)
The following table describes the various parameters of the function.
Parameter
Description
ADDR('r.m.0.SYS')
Address of the destination entity of the exchange.
  • r.m: rack, module,
  • 0: channel (always 0),
  • SYS: server of the module.
16#83
Function code, always 16#83 to perform IBS commands.
%KWi:L
Data to be sent.
%MWk:4
Exchange management parameters: four words identifying the address of the Control Expert data used to control the SEND_REQ function.
%MWj:4
4-word report.
Data to Be Sent
The following table shows the coding of data to be sent %KWi:L.
Word number
Value
Meaning
%KWi
16#1807
-
%KWi+1
16#0500
-
%KWi+2
16#0000
-
%KWi+3
16#FF00
-
%KWi+4
16#00xx
Number of following bytes.
%KWi+5
16#07xx
INTERBUS command code.
%KWi+6
16#00xx
Number of words parameters.
%KWi+7
16#xxxx
Parameters.
The data %KWi+4 to %KWi+7 are coded according to the type of command that you wish to perform.
The following table shows the coding of these data.
Start Bus
Fault acknowledgment
Segment activation
Segment deactivation
Command code
16#0701
16#0760
16#0713
Number of parameters (in words)
16#0000
16#0000
16#00xx
16#00xx
Parameters
-
16#0001
16#0000
Number of segments (16#00xx).
First segment word.
Second segment word.
Third segment word.
Report
The following table shows the coding of the 4 response words.
Word number
Value
Meaning
%MWj
16#0005
-
%MWj+1
16#0000
-
%MWj+2
16#00xx
Number of bytes of the request.
%MWj+3
16#00xx
Report:
  • 16#0000: command executed,
  • 16#0001: illegal parameters,
  • 16#0003: current command,
  • 16#000C: command refused.
NOTE: This report only indicates that the command has been taken into account by the TSX IBY 100/IBX 100 module. On no account does it correspond to the confirmation of commands according to the INTERBUS standard.
Management Parameters
The following table gives details of %MWk:4 words.
Word number
Most significant byte
Least significant byte
Data managed by
%MWk
Exchange number
Activity bit
system
%MWk+1
Operation report
Communication report
%MWk+2
Timeout
you
%MWk+3
Length: number of bytes of the request (initialization compulsory to activate the function)